LP#1710512 - OPAC js strings need to be i18n-izable user/cesardv/lp1710512-OPAC_i18n_js_strings
authorCesar Velez <cesar.velez@equinoxinitiative.org>
Thu, 24 Aug 2017 21:17:11 +0000 (17:17 -0400)
committerCesar Velez <cesar.velez@equinoxinitiative.org>
Thu, 24 Aug 2017 21:17:11 +0000 (17:17 -0400)
commit83a4e5e39995f7150dcfd57af66fa4f81ee127e0
treea07fa989c05adb641884ee9f3e79d6eb12a8d83e
parented74d3a738932f88bf7eaed4e68e727f898257ac
LP#1710512 - OPAC js strings need to be i18n-izable

Adds a way to translate displayed string messages, in OPAC
JS source code alerts and other outputs. This is done by having
js.tt2 include i18n-strings.tt2 which contains an explosed/global
JS blob variable called eg_opac_i18n. This is intended to work
in similar fashion as base_js.tt2 in the webstaff ng client.

Signed-off by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Open-ILS/src/templates/opac/i18n_strings.tt2 [new file with mode: 0644]
Open-ILS/src/templates/opac/parts/js.tt2
Open-ILS/web/js/ui/default/opac/holds-validation.js