this.session_cache[app] = new OpenSRF.ClientSession ( app );
return this.session_cache[app];
}
+
+ OpenSRF.locale = dojo.config.locale || (dojo.isIE ? navigator.userLanguage : navigator.language).toLowerCase();
}
var OSRF_STATUS_VERSIONNOTSUPPORTED = 505;
var OpenSRF = {};
+OpenSRF.locale = null;
/* makes cls a subclass of pcls */
OpenSRF.set_subclass = function(cls, pcls) {
OpenSRF.ClientSession = function(service) {
this.service = service
this.remote_id = null;
- this.locale = 'en-US';
+ this.locale = OpenSRF.locale || 'en-US';
this.last_id = 0;
this.thread = Math.random() + '' + new Date().getTime();
this.requests = [];