From 884f34ec8485e6701fb764c64c68868640474b95 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Fri, 2 Feb 2018 09:45:42 +0200 Subject: [PATCH] Bug 20124: Allow translating did you mean config save message When saving the "Did you mean?" setting, a popup with the message "Successfully saved configuration" is shown, but it cannot be translated. Make it translatable. Test plan: 1) Go to Home -> Administration -> Did you mean? 2) Change the settings, click on "Save configuration" 3) Popup with "Successfully saved configuration" 4) Apply patch, update po-files, etc. 5) Check that the msgid "Successfully saved configuration" is in fi-FI-staff-prog.po, and translate the message 6) install the fi-FI language 7) Change your UI language to finnish 8) Repeat 1, 2, 3. You should now see the same popup message translated. Signed-off-by: Pasi Kallinen Signed-off-by: Roch D'Amour --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/didyoumean.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/didyoumean.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/didyoumean.tt index 9604316..70ef7c1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/didyoumean.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/didyoumean.tt @@ -97,7 +97,7 @@ data: data, type: 'POST', url: '/cgi-bin/koha/svc/config/systempreferences/', - success: function () { alert("Successfully saved configuration"); }, + success: function () { alert(_("Successfully saved configuration")); }, }); return false; } -- 2.7.4