>> qx.locale.Manager.getInstance().getLocale() is the better API here.

>
> Hi T,
> Sorry, but that's wrong! ;)
>
> This method should set the locale based on the client-browser setting!

This method doesn't set anything, it is a getter.

>
> This method is intended to "guess" (hence the name) the most probable

There is no "guess" in the name!?

> locale-setting that the user might like _before_ we have user-specific
> information (e.g. before login)

Maybe what you mean is it returns the default locale, which is usually the
locale of the browser.

>
> And by the way, if we would use your call, this method would just be a
> "mgr.setLocale(mgr.getLoocale())" ...senseless, eh?

You're probably mixin up .getLocale() with .setLocale.

T.



>
> /Peter
>
>>>       // Client locale not supported?
>>>       if (!qx.lang.Array.contains(["de", "en", "fr"], locale)) {
>>>         locale = "en"; // ...fall back to 'en' (default)
>>>       }
>>>
>>>       qx.locale.Manager.getInstance().setLocale(locale);
>>>     },
>>> </code>
>>>
>>> /Peter
>>>
>>> On 2010-09-07 12:57 Stefan Andersson wrote:
>>>> Does anyone have a good solution to set the language of an application
>>>> before the main is run, such that it is possible to retrieve this from
>>>> the HTML site's information?
>>>>
>>>> I am using a CMS which decides the language and it must tell qooxdoo
>>>> what language version to use in HTML text or in any other way.
>>>>
>>>> Stefan
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>



------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to