[open-ils-commits] r12050 - trunk/Open-ILS/web/conify/global
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Feb 3 15:54:07 EST 2009
Author: dbs
Date: 2009-02-03 15:54:03 -0500 (Tue, 03 Feb 2009)
New Revision: 12050
Modified:
trunk/Open-ILS/web/conify/global/admin.js
Log:
Dojo wants locales in xx-yy format, not xx-YY.
Avoids #39 + 1.
Modified: trunk/Open-ILS/web/conify/global/admin.js
===================================================================
--- trunk/Open-ILS/web/conify/global/admin.js 2009-02-03 20:49:54 UTC (rev 12049)
+++ trunk/Open-ILS/web/conify/global/admin.js 2009-02-03 20:54:03 UTC (rev 12050)
@@ -3,9 +3,9 @@
if (location.href.match(/^.*conify\/(.+)\/global.*$/, "$1")) {
var _url_locale = location.href.replace(/^.*conify\/(.+)\/global.*$/, "$1").replace(/_/,'-','g');
- if (_url_locale) djConfig.locale = _url_locale;
+ if (_url_locale) djConfig.locale = _url_locale.toLowerCase();
} else {
var _url_locale = '<!--#echo var="locale"-->';
- if (_url_locale != '(none)') djConfig.locale = _url_locale;
+ if (_url_locale != '(none)') djConfig.locale = _url_locale.toLowerCase();
}
More information about the open-ils-commits
mailing list