dolfnoordman / datejs

Automatically exported from code.google.com/p/datejs
Other
0 stars 0 forks source link

Datejs should allow changing the locale during the execution. #130

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In some applications, it is useful to change the locale dynamically (for 
example when the user changes its user preferences).

This should be trivial, the only problem is that Datejs uses a shorcut to 
access the CultureInfo ($C = $D.CultureInfo) object that makes this impossible 
(you can't reload the core module neither, that will produce infinite loops in 
some functions).

I simply removed that shortcut, here is a patch, please merge it, that would be 
useful.

Original issue reported on code.google.com by n...@openerp.com on 22 Aug 2011 at 3:14

Attachments:

GoogleCodeExporter commented 8 years ago
fixed in the current build of my fork: https://github.com/abritinthebay/datejs/

Original comment by darkcr...@gmail.com on 16 Sep 2013 at 12:18