From: Cesar Velez Date: Thu, 24 Aug 2017 21:17:11 +0000 (-0400) Subject: LP#1710512 - OPAC js strings need to be i18n-izable X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a53539602a68cedcbf55578868e13cba8805ec63;p=working%2FEvergreen.git 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 Signed-off-by: Jason Stephenson Signed-off-by: Galen Charlton Conflicts: Open-ILS/src/templates/opac/parts/js.tt2 --- diff --git a/Open-ILS/src/templates/opac/i18n_strings.tt2 b/Open-ILS/src/templates/opac/i18n_strings.tt2 new file mode 100644 index 0000000000..d92c2b5f63 --- /dev/null +++ b/Open-ILS/src/templates/opac/i18n_strings.tt2 @@ -0,0 +1,9 @@ + + diff --git a/Open-ILS/src/templates/opac/parts/js.tt2 b/Open-ILS/src/templates/opac/parts/js.tt2 index 2e878c784d..5b0540deda 100644 --- a/Open-ILS/src/templates/opac/parts/js.tt2 +++ b/Open-ILS/src/templates/opac/parts/js.tt2 @@ -1,6 +1,7 @@ +[% INCLUDE "opac/i18n_strings.tt2" %]