From 2ff5482c973eb2f1835a3e372bcee6f16c4a9445 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Fri, 2 Feb 2018 09:45:42 +0200 Subject: [PATCH] Bug 20124: Make "Save configuration" translatable on "did you mean?" config 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 Signed-off-by: Jonathan Druart --- 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 96043164ea..70ef7c199f 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.39.5