fix: translations
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user