]> git.evergreen-ils.org Git - evergreen/tadl.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:28:57 +0000 (17:28 -0400)
commit074066df74ec3bf67ae75998d3df5b2210b61e4f
tree344f927b83baa446cd562ddeb3edc5f101d52e68
parent08b0e40de01a80035d5f4ab5ec7827d102d39fb8
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>
Conflicts:

Open-ILS/web/css/skin/default/opac/style.css
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