fix: Cancel All and Dashboard views title translations (#20173) (#20175)

(cherry picked from commit 7253a10d07e7ad27f8b473af7e10fecd88080409)

Co-authored-by: gsi-joel <126265080+gsi-joel@users.noreply.github.com>
This commit is contained in:
mergify[bot] 2023-02-28 11:41:13 +05:30 committed by GitHub
parent 9324fcecaf
commit 133b3bce7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -64,9 +64,9 @@ class Dashboard {
let title = this.dashboard_name;
if (!this.dashboard_name.toLowerCase().includes(__("dashboard"))) {
// ensure dashboard title has "dashboard"
title = __("{0} Dashboard", [title]);
title = __("{0} Dashboard", [__(title)]);
}
this.page.set_title(title);
this.page.set_title(__(title));
this.set_dropdown();
this.container.empty();
this.refresh();

View file

@ -906,13 +906,13 @@ frappe.ui.form.Form = class FrappeForm {
.filter((link) => link.doctype == doctype)
.map((link) => frappe.utils.get_form_link(link.doctype, link.name, true))
.join(", ");
links_text += `<li><strong>${doctype}</strong>: ${docnames}</li>`;
links_text += `<li><strong>${__(doctype)}</strong>: ${docnames}</li>`;
}
}
links_text = `<ul>${links_text}</ul>`;
let confirm_message = __("{0} {1} is linked with the following submitted documents: {2}", [
me.doc.doctype.bold(),
__(me.doc.doctype).bold(),
me.doc.name,
links_text,
]);
@ -940,7 +940,7 @@ frappe.ui.form.Form = class FrappeForm {
// if user can cancel all linked docs, add action to the dialog
if (can_cancel) {
d.set_primary_action("Cancel All", () => {
d.set_primary_action(__("Cancel All"), () => {
d.hide();
frappe.call({
method: "frappe.desk.form.linked_with.cancel_all_linked_docs",