Hi Joffrey,

did you already added the locale "fr" in the "LOCALES" macro in the "let" block 
of your "config.json" file?

This way you can inform qooxdoo about the available locales and the 
corresponding CLDR (common language data repository) data is generated after a 
run of "./generate.py translation" and "./generate.py source"

Regards,
  Alex

> I'm facing some trouble while trying to force dates to be displayed
> with the rules of the client locale in our application.
> I'm using the following code:
> 
> 
>      if (datai.date != null) {
>          var formatString = qx.locale.Date.getDateFormat("short",
> qx.bom.client.Locale.LOCALE);
>          this.debug("formatString = " + formatString);
>          var dateFormat = new qx.util.format.DateFormat(formatString,
> qx.bom.client.Locale.LOCALE);
>          tmp[dateIndex] = dateFormat.format(datai.date);
>      }
> 
> 
> Printing qx.bom.client.Locale.LOCALE on the console correctly outputs
> "fr", unfortunately, the formatString still shows "formatString = M/d/yy" 
> (while it should
> be d/M/yy for France.)
> 
> I guess I'm doing something wrong but I fail to see what. Thus, any
> hint at the solution would be appreciated.


------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to