From: dbs Date: Tue, 3 Feb 2009 20:54:03 +0000 (+0000) Subject: Dojo wants locales in xx-yy format, not xx-YY. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ee28ece43f9b62a98d0aef8595ed7124d91380f1;p=evergreen%2Ftadl.git Dojo wants locales in xx-yy format, not xx-YY. Avoids #39 + 1. git-svn-id: svn://svn.open-ils.org/ILS/trunk@12050 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/conify/global/admin.js b/Open-ILS/web/conify/global/admin.js index ac22a21dd1..58a7e4a910 100644 --- a/Open-ILS/web/conify/global/admin.js +++ b/Open-ILS/web/conify/global/admin.js @@ -3,9 +3,9 @@ var djConfig = { parseOnLoad : true }; 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 = ''; - if (_url_locale != '(none)') djConfig.locale = _url_locale; + if (_url_locale != '(none)') djConfig.locale = _url_locale.toLowerCase(); }