diff --git a/lms/lms/doctype/lms_certificate_evaluation/lms_certificate_evaluation.py b/lms/lms/doctype/lms_certificate_evaluation/lms_certificate_evaluation.py index 7485d135..2bf59b74 100644 --- a/lms/lms/doctype/lms_certificate_evaluation/lms_certificate_evaluation.py +++ b/lms/lms/doctype/lms_certificate_evaluation/lms_certificate_evaluation.py @@ -2,6 +2,7 @@ # For license information, please see license.txt import frappe +from frappe import _ from frappe.model.document import Document from frappe.model.mapper import get_mapped_doc from lms.lms.utils import has_course_moderator_role @@ -13,7 +14,7 @@ class LMSCertificateEvaluation(Document): def validate_rating(self): if self.status not in ["Pending", "In Progress"] and self.rating == 0: - frappe.throw("Rating cannot be 0") + frappe.throw(_("Rating cannot be 0")) def has_website_permission(doc, ptype, user, verbose=False):