fix: translation syntax

This commit is contained in:
Jannat Patel
2023-02-23 13:04:47 +05:30
parent 54827edd7e
commit 296a7e6023
2 changed files with 29 additions and 28 deletions

View File

@@ -46,7 +46,9 @@ def add_student(email, class_name):
"parentfield": "students",
}
if frappe.db.exists("Class Student", filters):
frappe.throw(_(f"Student {frappe.bold(email)} has already been added to this class."))
frappe.throw(
_("Student {0} has already been added to this class.").format(frappe.bold(email))
)
frappe.get_doc(
{

View File

@@ -20,7 +20,7 @@
"list_columns": [],
"login_required": 1,
"max_attachment_size": 0,
"modified": "2022-02-26 17:05:30.851122",
"modified": "2023-02-23 13:04:00.405266",
"modified_by": "Administrator",
"module": "LMS",
"name": "evaluation",
@@ -31,7 +31,6 @@
"show_attachments": 0,
"show_list": 1,
"show_sidebar": 0,
"success_message": "Evaluation has been submitted successfully.",
"title": "Evaluation",
"web_form_fields": [
{
@@ -121,6 +120,18 @@
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "rating",
"fieldtype": "Rating",
"hidden": 0,
"label": "Rating",
"max_length": 0,
"max_value": 0,
"read_only": 0,
"reqd": 1,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "status",
@@ -135,29 +146,17 @@
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "rating",
"fieldtype": "Rating",
"hidden": 0,
"label": "Rating",
"max_length": 0,
"max_value": 0,
"read_only": 0,
"reqd": 1,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "class",
"fieldtype": "Link",
"hidden": 0,
"label": "Class",
"max_length": 0,
"max_value": 0,
"options": "LMS Class",
"read_only": 1,
"reqd": 0,
"show_in_filter": 0
}
"allow_read_on_all_link_options": 0,
"fieldname": "class",
"fieldtype": "Link",
"hidden": 1,
"label": "Class",
"max_length": 0,
"max_value": 0,
"options": "LMS Class",
"read_only": 1,
"reqd": 0,
"show_in_filter": 0
}
]
}
}