]> git.evergreen-ils.org Git - Evergreen.git/commit
TPAC: Implement a locale picker
authorDan Scott <dscott@laurentian.ca>
Tue, 17 Jul 2012 21:37:54 +0000 (17:37 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Tue, 24 Jul 2012 21:25:30 +0000 (17:25 -0400)
commit06e77b31369e770708f907fa7e0b7b4506310cf2
tree84c8545760466d3e09727deace3c3fbb5ba0d1d2
parent9390b25f1904ff01093409ff8f29f49b6a2f1289
TPAC: Implement a locale picker

In situations in which more than a single locale is configured, display
a locale picker in the TPAC header based on the registered locales. We
set the eg_locale cookie if passed a set_eg_locale GET param. Default
the selection to the currently selected locale (if any) and resubmit the
current page request.

Grabs the localized locale names, if available, from the database;
otherwise falls back to the en-US version of the locale names.

The locale picker form resubmits the current page with any variables
that were present in the current page request, so that switching locales
should still maintain state.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0723.function.get_locale_name.sql [new file with mode: 0644]
Open-ILS/src/templates/opac/parts/locale_picker.tt2 [new file with mode: 0644]
Open-ILS/src/templates/opac/parts/topnav.tt2
Open-ILS/web/css/skin/default/opac/style.css