thron7-2 wrote:
> 
>>
>> Hello Gabi
>>
>> I have set in my config.json the variable LOCALES to ["en", "de"].
>> If I set the string general.useragent.locale to "en" getAvailableLocales
>> returns "en", if I set general.useragent.locale to "de" it returns "de".
>> The same happens also within the feedreader from the current 1.3-sdk
>> download.
> 
> The Feedreader is special, in that it uses a specific feature that makes
> locale data available through *parts*. The corresponding config.json entry
> is
> 
>   packages/i18n-with-boot : false
> 
> This results in the configured locales (number of 8 in the case of
> Feedreader) to be generated as individual qooxdoo parts, which are *not
> loaded* by default. Only the current browser locale is directly loaded
> when the application starts. The other locale parts are only loaded on
> request, namely when the user switches to the corresponding language in
> the "Preferences" dialog. getAvailableLocales will only return those
> locales that have been already loaded.
> 
> If your application uses the same config option, it will show the same
> behavior. In that case you have to explicitly load the desired locale part
> with qx.io.PartLoader, and then you can see it with getAvailableLocales.
> 
> T.
> 
Ok, thank you.
I've got it now. It is working now.

/Kind regards

Christian
-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/getAvailableLocales-not-returning-all-languages-tp5894849p5901184.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to