PDA

View Full Version : [3.x] Ext.locale.Format



kryo
20 Feb 2011, 12:38 AM
Another useful renderer class which properly formats float/integer numbers into localized strings. This is able to import a php localeconv result and transform it into properly formatted strings. Includes a little gizmo that lets you test various settings. ~o) Documentation, and demo are included in the attached file. Please post with comments/suggestions.

Download here: 24767
Demo here: http://jsfiddle.net/kWJgU/

Note:
The download version contains a php script (locale.php) which reads the locale information from the host sytem, this was made to simplify the demo. The online demo uses locally defined conversion information, since jsfiddle doesn't let me use webservices.

cahit
11 Jan 2012, 12:53 PM
Following errors occur when tried in google chrome.


Unsafe JavaScript attempt to access frame with URL http://jsfiddle.net/kWJgU/ from frame with URL http://fiddle.jshell.net/kryo/kWJgU/show/. Domains, protocols and ports must match.
fiddle.jshell.net:90 (http://fiddle.jshell.net/kryo/kWJgU/show/)Uncaught TypeError: Cannot read property 'Format' of undefined
http://www.s3forge.org/js/LocaleFormat.min.jsFailed to load resource
fiddle.jshell.net:90 (http://fiddle.jshell.net/kryo/kWJgU/show/)Uncaught TypeError: Cannot read property 'Format' of undefined