]> git.evergreen-ils.org Git - working/Evergreen.git/commit
TPAC: Make locale picker match default locale
authorDan Scott <dscott@laurentian.ca>
Mon, 21 Jan 2013 22:02:42 +0000 (17:02 -0500)
committerBen Shum <bshum@biblio.org>
Wed, 6 Feb 2013 04:05:57 +0000 (23:05 -0500)
commit25f8ba16c8825e42c3a154b61b3ee0b0b4a6ab10
tree89f53898ad6de20f936f306179d1d66958c43941
parent828b202a99b5cc97fcea53a0409f298acc3bd546
TPAC: Make locale picker match default locale

As noted by Pasi Kallinen, the language picker would not reflect the
chosen locale unless your cookie had been set or there was an explicit
CGI parameter with the locale name.

Accordingly, get the default locale from the context vars and use that
to set the selected value for the language picker in the absence of
anything else, to prevent the picker from possibly confusingly showing
the first language alphabetically rather than the currently displayed
language in the rest of the UI.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Pasi Kallinen <pasi.kallinen@pttk.fi>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/templates/opac/parts/locale_picker.tt2