From: dbs Date: Thu, 5 Feb 2009 23:21:57 +0000 (+0000) Subject: dojo.locale is the preferred method of determining Dojo's current locale; avoids... X-Git-Tag: osrf_rel_2_0_1~404 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e8623bb5e9ee52a60c126bb09682539d2dd77710;p=OpenSRF.git dojo.locale is the preferred method of determining Dojo's current locale; avoids having to explicitly set djConfig.locale git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1653 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/javascript/DojoSRF.js b/src/javascript/DojoSRF.js index e02ac98..fd02bfd 100644 --- a/src/javascript/DojoSRF.js +++ b/src/javascript/DojoSRF.js @@ -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;