Results 1 to 3 of 3

Thread: howto localize MVC application.

  1. #1
    Sencha User
    Join Date
    Feb 2008
    Vote Rating

    Default howto localize MVC application.

    How to translate an MVC application?

    I tried to download the file "ext-lang-fr.js" after "ext-debug.js"
    But an exception is thrown because Ext.view is not defined.
    in effent Ext.Loader support component after.

    I tried on onReady but again fails the assessment for the same reason.

    I tried the method "launch" of the application without success

    The problem is that if I support the local after the launch of my application, the "view" components are defined, but the view is created in English.
    If I load the local before the launch of the application view is not yet defined but component not

    how to load the components in the language of the user.

    I tried to use ext-all-debug instead of ext-debug since all components are well defined before loading the local and launch the application.
    but then MVC does not work.

    A + JYT

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    The way that the locale files do it is just an override. There usually are if statements to check to make sure the class is present and then it will execute an override. Not my favorite way of locale so I created a simplistic means of it:
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:

  3. #3
    Sencha User
    Join Date
    Feb 2008
    Vote Rating


    Hello and thank you.

    I just have a look at "Ext.LocaleManager" but I'm not sure that answers my question.

    I'll take a closer look. My problem is not locating my components but those of "Ext.core"

    such as how to schedule a "DatePicker" either in the language of the user.

    For this purpose in view I add a DateField
    Ext.Loader support the DateField component but it is in English.
                         xtype: 'DateField'
                         fieldLabel: lm.get ('fields.dateofbirth') ',
                         name: 'dob'
                         allowBlank: false
    The label is well translated but the DatePicker?
    This would require that the local file to be loaded outside of Ext I can not commprendre how.
    ExtJS locale file assumes that all ExtJS components are set out with the MVC pattern is not the case.

    I will study Ext.LocaleManager.
    PS: sorry for my approximative english

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts