Bug 9493: confirmations for user holds in opac are not translatable
authorFridolyn SOMERS <fridolyn.somers@biblibre.com>
Fri, 25 Jan 2013 15:03:05 +0000 (16:03 +0100)
committerChris Cormack <chris@bigballofwax.co.nz>
Fri, 8 Feb 2013 23:49:51 +0000 (12:49 +1300)
commit6376a5ac5a5d529948d636a44103c66c51472777
tree06d83f8190dca43977abf0d0ce88f5a1a58cd6ae
parent01f952c6241f0d8e1f6fbab0ce9df7ac5a202526
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 <oleonard@myacpl.org>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt