LP1802593: Correct formatting of language code in Angularjs, KPAC user/sandbergja/LP1802593_angular_js_web_client_invalid_lang_attributes
authorJane Sandberg <sandbej@linnbenton.edu>
Mon, 29 Jul 2019 18:56:31 +0000 (11:56 -0700)
committerJane Sandberg <sandbej@linnbenton.edu>
Mon, 29 Jul 2019 19:07:01 +0000 (12:07 -0700)
commit2166efdde0d025ef5dd3c130ecf38342d6e8abc1
tree5f80861b8a1230385af09d7a5737bd370a046be0
parent96e819bd9c3d6d53d1f4321f250eab69a4c080a4
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>
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