From 5a204906d9eb492788f1efa32cb242b2b1dcb9fe Mon Sep 17 00:00:00 2001 From: Fridolyn SOMERS Date: Fri, 25 Jan 2013 16:03:05 +0100 Subject: [PATCH] Bug 9493: confirmations for user holds in opac are not translatable In opac-user.tt, javascript for user holds confirmations (cancel, suspend, resume) are not translatable. This is because text is in onclick attribute, withtout javascript method for translatable strings : _(). This patch moves those strings as variables into script tag and sets them translatable. Test plan : - set a hold for a user - Go to OPAC user page "my summary" - click on "Cancel" => you get a confirmation message - click on "Suspend all holds" => you get a confirmation message - click on "Resume all suspended holds" => you get a confirmation message Test this is 'en' and another language. Signed-off-by: Owen Leonard Signed-off-by: Jonathan Druart Signed-off-by: Jared Camins-Esakov Signed-off-by: Chris Cormack --- koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt index 43b8329e89..ffb0bf2071 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt @@ -7,7 +7,10 @@