chore: rewrite user-facing JS messages in Support module

Conservative cleanup of frappe.throw/msgprint messages per the message style
guide; meaning, severity, and .format() arguments are unchanged:

- index bare {} placeholders as {0}/{1}/... so translators can reorder
- move f-strings / .format() / concatenation out of _() (they break gettext
  extraction and never translate)
- wrap translatable dynamic values (DocType/Select labels) in _()
- fix grammar and colloquialisms
- drop no-op _() wrapping runtime-built strings

Part of #53976.
This commit is contained in:
Mihir Kandoi
2026-06-25 17:30:47 +05:30
parent b0887e03fe
commit 660fc4191c

View File

@@ -123,7 +123,9 @@ frappe.ui.form.on("Issue", {
},
(r) => {
frappe.msgprint(
`New issue created: <a href="/app/issue/${r.message}">${r.message}</a>`
__("New issue created: {0}", [
`<a href="/app/issue/${r.message}">${r.message}</a>`,
])
);
frm.reload_doc();
dialog.hide();