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", "parentfield": "students",
} }
if frappe.db.exists("Class Student", filters): 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( frappe.get_doc(
{ {

View File

@@ -20,7 +20,7 @@
"list_columns": [], "list_columns": [],
"login_required": 1, "login_required": 1,
"max_attachment_size": 0, "max_attachment_size": 0,
"modified": "2022-02-26 17:05:30.851122", "modified": "2023-02-23 13:04:00.405266",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "LMS", "module": "LMS",
"name": "evaluation", "name": "evaluation",
@@ -31,7 +31,6 @@
"show_attachments": 0, "show_attachments": 0,
"show_list": 1, "show_list": 1,
"show_sidebar": 0, "show_sidebar": 0,
"success_message": "Evaluation has been submitted successfully.",
"title": "Evaluation", "title": "Evaluation",
"web_form_fields": [ "web_form_fields": [
{ {
@@ -121,6 +120,18 @@
"reqd": 0, "reqd": 0,
"show_in_filter": 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, "allow_read_on_all_link_options": 0,
"fieldname": "status", "fieldname": "status",
@@ -134,23 +145,11 @@
"reqd": 1, "reqd": 1,
"show_in_filter": 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, "allow_read_on_all_link_options": 0,
"fieldname": "class", "fieldname": "class",
"fieldtype": "Link", "fieldtype": "Link",
"hidden": 0, "hidden": 1,
"label": "Class", "label": "Class",
"max_length": 0, "max_length": 0,
"max_value": 0, "max_value": 0,