refactor: translate error message
This commit is contained in:
parent
d7e9ef60b8
commit
1426b2d4b9
1 changed files with 1 additions and 1 deletions
|
|
@ -187,7 +187,7 @@ def upload_file():
|
|||
import mimetypes
|
||||
filetype = mimetypes.guess_type(filename)[0]
|
||||
if filetype not in ALLOWED_MIMETYPES:
|
||||
frappe.throw("You can only upload JPG, PNG, PDF, or Microsoft documents.")
|
||||
frappe.throw(_("You can only upload JPG, PNG, PDF, or Microsoft documents."))
|
||||
|
||||
if method:
|
||||
method = frappe.get_attr(method)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue