[Opensrf-commits] r1653 - trunk/src/javascript (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Feb 5 18:22:02 EST 2009
Author: dbs
Date: 2009-02-05 18:21:57 -0500 (Thu, 05 Feb 2009)
New Revision: 1653
Modified:
trunk/src/javascript/DojoSRF.js
Log:
dojo.locale is the preferred method of determining Dojo's current locale; avoids having to explicitly set djConfig.locale
Modified: trunk/src/javascript/DojoSRF.js
===================================================================
--- trunk/src/javascript/DojoSRF.js 2009-02-04 03:57:04 UTC (rev 1652)
+++ trunk/src/javascript/DojoSRF.js 2009-02-05 23:21:57 UTC (rev 1653)
@@ -18,7 +18,7 @@
}
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;
More information about the opensrf-commits
mailing list