Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 
 

32 rindas
764 B

  1. import frappe
  2. from frappe import msgprint, throw, _
  3. # ruleid: frappe-missing-translate-function-python
  4. throw("Error Occured")
  5. # ruleid: frappe-missing-translate-function-python
  6. frappe.throw("Error Occured")
  7. # ruleid: frappe-missing-translate-function-python
  8. frappe.msgprint("Useful message")
  9. # ruleid: frappe-missing-translate-function-python
  10. msgprint("Useful message")
  11. # ok: frappe-missing-translate-function-python
  12. translatedmessage = _("Hello")
  13. # ok: frappe-missing-translate-function-python
  14. throw(translatedmessage)
  15. # ok: frappe-missing-translate-function-python
  16. msgprint(translatedmessage)
  17. # ok: frappe-missing-translate-function-python
  18. msgprint(_("Helpful message"))
  19. # ok: frappe-missing-translate-function-python
  20. frappe.throw(_("Error occured"))