I didn't know what to do to get around this bug using Qooxdoo so this is what
I am using as a solution:

 var locale = drmobile.StringUtil.getLocaleDetails(
qx.locale.Manager.getInstance().getLocale() );
 if( typeof locale.label == 'undefined' )
 {
          var lang = window.navigator.language;
          qx.locale.Manager.getInstance().setLocale( lang.replace("-","_" )
);
  }

where getLocaleDetails() performs a quick analysis on the string returned
from Qooxdoo and returns the following structure:

{ code: code, territory: territory, label: language, value: locale }

So yes, the browser supplied variables contain the correct locale.  Perhaps
your code isn't handling the "-" or the territory case and is messing up as
a result since the browser returns the string as "xx-xx"



--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Weird-Mobile-App-Locale-String-tp7586485p7586497.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to