1. #1
    Sencha User kryo's Avatar
    Join Date
    Jan 2010
    Costa Rica
    Vote Rating
    kryo is on a distinguished road


    Lightbulb [3.x] Ext.locale.Format

    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. Documentation, and demo are included in the attached file. Please post with comments/suggestions.

    Download here: Ext.locale.Format-0.1rc.zip
    Demo here: http://jsfiddle.net/kWJgU/

    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.
    Attached Images
    Last edited by kryo; 20 Feb 2011 at 12:06 PM. Reason: Added demo link
    Hans Doller
    Senior Web Developer & Consultant

    Contributed Plugins: Ext.date.RangeField, Ext.money.Exchange, Ext.locale.Format, Ext.ux.Bootstrap

  2. #2
    Sencha User
    Join Date
    Oct 2011
    Vote Rating
    cahit is on a distinguished road



    Following errors occur when tried in google chrome.
    [COLOR=red !important]

    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.[/COLOR]

    [COLOR=red !important]fiddle.jshell.net:90Uncaught TypeError: Cannot read property 'Format' of undefined[/COLOR]
    [COLOR=red !important]http://www.s3forge.org/js/LocaleFormat.min.jsFailed to load resource[/COLOR]
    [COLOR=red !important]fiddle.jshell.net:90Uncaught TypeError: Cannot read property 'Format' of undefined[/COLOR]

Similar Threads

  1. [FIXED][3.0.0] Locale el-GR: incorrect date format
    By discon in forum Ext 3.x: Bugs
    Replies: 0
    Last Post: 7 Sep 2009, 1:41 AM
  2. locale
    By fother in forum Ext GWT: Help & Discussion (1.x)
    Replies: 1
    Last Post: 17 Nov 2008, 4:20 AM
  3. How do you use Locale?
    By Layne in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 7 Dec 2007, 11:12 AM
  4. date format on grid. Format is not displayed as expected.
    By mcrusty in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 26 Jan 2007, 4:05 PM

Thread Participants: 1

Tags for this Thread