Hello Hugh,
> I'm not really up on the localisation stuff. However, I'm putting some date
> stuff into our application, and the default format for the date using a
> date-picker is coming up as M/d/YY.
>
> This is not how we do things here (UK) - it is d/M/YY (and Australia and
> probably other places as well).
>
> I've set the locale to "en" at startup:
>
> qx.locale.Manager.getInstance().setLocale("en");
>
> thinking that I would get English settings, not en_US. However, the wrong
> format string is in en.js:
>
> cldr_date_format_short: "M/d/yy",
>
> What is needed here - a simple correction of the short format string? Where
> is en_US.js found - is that dynamically downloaded from the web if needed?
>
> You can see this at http://demo.qooxdoo.org/current/showcase/ on the
> Localization tab. In fact, the short date format isn't shown in the list on
> the right.
>
The locale "en" just contains the basic settings for all english speaking
countries. What you need to set is 'setLocale("en_GB")' additionally you will
have to add "en_GB" to the list of APPLICATION_LOCALES in your makefile. This
will automatically fetch the locale data file from CLDR. This locale contains
all the correct date formats for the UK.
I hope this helped,
Best Fabian
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel