From eb0349b7d31e51ec97caa3dbc5732fbb498c59fb Mon Sep 17 00:00:00 2001 From: mahsem <137205921+mahsem@users.noreply.github.com> Date: Sun, 23 Jun 2024 15:49:56 +0200 Subject: [PATCH 1/2] fix: translation in form_tour.js fix: translation in form_tour.js --- frappe/public/js/frappe/form/form_tour.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frappe/public/js/frappe/form/form_tour.js b/frappe/public/js/frappe/form/form_tour.js index 94f37876bd..82933350de 100644 --- a/frappe/public/js/frappe/form/form_tour.js +++ b/frappe/public/js/frappe/form/form_tour.js @@ -11,8 +11,10 @@ frappe.ui.form.FormTour = class FormTour { padding: 10, overlayClickNext: true, keyboardControl: true, - nextBtnText: "Next", - prevBtnText: "Previous", + nextBtnText: __("Next"), + prevBtnText: __("Previous"), + doneBtnText: __("Done"), + closeBtnText: __("Close"), opacity: 0.25, onHighlighted: (step) => { // if last step is to save, then attach a listener to save button @@ -135,7 +137,7 @@ frappe.ui.form.FormTour = class FormTour { return { element, name, - popover: { title, description, position: frappe.router.slug(position || "Bottom") }, + popover: { title: __(title), description: __(description), position: frappe.router.slug(position || "Bottom") }, onNext: on_next, onPrevious: on_prev, }; From 413c6d9301c0028de215eab141392c246e6cd785 Mon Sep 17 00:00:00 2001 From: Sumit Bhanushali Date: Sat, 13 Jul 2024 10:46:19 +0530 Subject: [PATCH 2/2] fix: precommit check --- frappe/public/js/frappe/form/form_tour.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frappe/public/js/frappe/form/form_tour.js b/frappe/public/js/frappe/form/form_tour.js index 82933350de..61f9ec07e2 100644 --- a/frappe/public/js/frappe/form/form_tour.js +++ b/frappe/public/js/frappe/form/form_tour.js @@ -137,7 +137,11 @@ frappe.ui.form.FormTour = class FormTour { return { element, name, - popover: { title: __(title), description: __(description), position: frappe.router.slug(position || "Bottom") }, + popover: { + title: __(title), + description: __(description), + position: frappe.router.slug(position || "Bottom"), + }, onNext: on_next, onPrevious: on_prev, };