dojo.locale is the preferred method of determining Dojo's current locale; avoids...
authordbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 5 Feb 2009 23:21:57 +0000 (23:21 +0000)
committerdbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 5 Feb 2009 23:21:57 +0000 (23:21 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1653 9efc2488-bf62-4759-914b-345cdb29e865

src/javascript/DojoSRF.js

index e02ac98..fd02bfd 100644 (file)
@@ -18,7 +18,7 @@ if(!dojo._hasResource['DojoSRF']){
        }
 
         localeRE = /^(\w\w)(-\w\w)?$/;
-        localeMatch = localeRE.exec(dojo.config.locale);
+        localeMatch = localeRE.exec(dojo.locale);
 
         if (!localeMatch[1]) {
                 OpenSRF.locale = dojo.isIE ? navigator.userLanguage : navigator.language;