2021-04-16 16:14:49 +00:00
|
|
|
import frappe
|
|
|
|
from frappe import msgprint, throw, _
|
|
|
|
|
|
|
|
|
2021-05-25 08:36:10 +00:00
|
|
|
# ruleid: frappe-missing-translate-function-python
|
2021-04-16 16:14:49 +00:00
|
|
|
throw("Error Occured")
|
|
|
|
|
2021-05-25 08:36:10 +00:00
|
|
|
# ruleid: frappe-missing-translate-function-python
|
2021-04-16 16:14:49 +00:00
|
|
|
frappe.throw("Error Occured")
|
|
|
|
|
2021-05-25 08:36:10 +00:00
|
|
|
# ruleid: frappe-missing-translate-function-python
|
2021-04-16 16:14:49 +00:00
|
|
|
frappe.msgprint("Useful message")
|
|
|
|
|
2021-05-25 08:36:10 +00:00
|
|
|
# ruleid: frappe-missing-translate-function-python
|
2021-04-16 16:14:49 +00:00
|
|
|
msgprint("Useful message")
|
|
|
|
|
|
|
|
|
2021-05-25 08:36:10 +00:00
|
|
|
# ok: frappe-missing-translate-function-python
|
2021-04-16 16:14:49 +00:00
|
|
|
translatedmessage = _("Hello")
|
|
|
|
|
2021-05-25 08:36:10 +00:00
|
|
|
# ok: frappe-missing-translate-function-python
|
2021-04-16 16:14:49 +00:00
|
|
|
throw(translatedmessage)
|
|
|
|
|
2021-05-25 08:36:10 +00:00
|
|
|
# ok: frappe-missing-translate-function-python
|
2021-04-16 16:14:49 +00:00
|
|
|
msgprint(translatedmessage)
|
|
|
|
|
2021-05-25 08:36:10 +00:00
|
|
|
# ok: frappe-missing-translate-function-python
|
2021-04-16 16:14:49 +00:00
|
|
|
msgprint(_("Helpful message"))
|
|
|
|
|
2021-05-25 08:36:10 +00:00
|
|
|
# ok: frappe-missing-translate-function-python
|
2021-04-16 16:14:49 +00:00
|
|
|
frappe.throw(_("Error occured"))
|