[Opensrf-commits] r1374 - in trunk/src: java/org/opensrf javascript
python/osrf
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Jul 27 12:46:28 EDT 2008
Author: miker
Date: 2008-07-27 12:46:21 -0400 (Sun, 27 Jul 2008)
New Revision: 1374
Modified:
trunk/src/java/org/opensrf/Session.java
trunk/src/javascript/DojoSRF.js
trunk/src/python/osrf/ses.py
Log:
removing overly agressive locale normalization
Modified: trunk/src/java/org/opensrf/Session.java
===================================================================
--- trunk/src/java/org/opensrf/Session.java 2008-07-27 13:06:45 UTC (rev 1373)
+++ trunk/src/java/org/opensrf/Session.java 2008-07-27 16:46:21 UTC (rev 1374)
@@ -27,7 +27,7 @@
/** Session locale */
protected String locale;
/** Default session locale */
- protected static String defaultLocale = "en_US";
+ protected static String defaultLocale = "en-US";
/**
* The thread is used to link messages to a given session.
Modified: trunk/src/javascript/DojoSRF.js
===================================================================
--- trunk/src/javascript/DojoSRF.js 2008-07-27 13:06:45 UTC (rev 1373)
+++ trunk/src/javascript/DojoSRF.js 2008-07-27 16:46:21 UTC (rev 1374)
@@ -17,5 +17,5 @@
return this.session_cache[app];
}
- OpenSRF.locale = dojo.config.locale || (dojo.isIE ? navigator.userLanguage : navigator.language).toLowerCase();
+ OpenSRF.locale = dojo.config.locale || dojo.isIE ? navigator.userLanguage : navigator.language;
}
Modified: trunk/src/python/osrf/ses.py
===================================================================
--- trunk/src/python/osrf/ses.py 2008-07-27 13:06:45 UTC (rev 1373)
+++ trunk/src/python/osrf/ses.py 2008-07-27 16:46:21 UTC (rev 1374)
@@ -84,7 +84,7 @@
class ClientSession(Session):
"""Client session object. Use this to make server requests."""
- def __init__(self, service, locale='en_US'):
+ def __init__(self, service, locale='en-US'):
# call superclass constructor
Session.__init__(self)
More information about the opensrf-commits
mailing list