]> git.evergreen-ils.org Git - Evergreen.git/commit
LP1802593: Correct formatting of language code in Angularjs, KPAC
authorJane Sandberg <sandbej@linnbenton.edu>
Mon, 29 Jul 2019 18:56:31 +0000 (11:56 -0700)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 5 Aug 2019 14:52:16 +0000 (10:52 -0400)
commitfc89e1c2b9e0706cd1070c5ea2b06bb06ec25c5b
tree7782844cd527bb1ebf038a9cb4e1ebea57d5c706
parent4dae6f59a55675f7cc487be6fc626133fd357ea3
LP1802593: Correct formatting of language code in Angularjs, KPAC

EgWeb offers two different formats of the current locale: ctx.locale and
ctx.eg_locale.  This commit configures the lang attribute in AngularJS
staff client, OPAC, and KPAC to use eg_locale, since it has the
appropriate format (e.g. en-US, fr-CA).

Also adds some tests for EgWeb's handling of language codes.

Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/perlmods/t/15-OpenILS-WWW.t
Open-ILS/src/templates/base.tt2
Open-ILS/src/templates/kpac/parts/base.tt2
Open-ILS/src/templates/opac/parts/base.tt2
Open-ILS/src/templates/staff/base.tt2