1. #51
    Sencha User
    Join Date
    Sep 2009
    Location
    Germany
    Posts
    34
    Vote Rating
    0
    SnakeMedia is on a distinguished road

      0  

    Exclamation


    Great Job, but i see different like Qooxdoo and Extjs

    Extjs:
    Need part of locale java script files like:
    lang_de is German's Version
    lang_en is English's Version
    /MyApp
    ../locales/lang_<country>.js

    For Qooxdoo:
    /MyApp
    ../translation/myapp_<country>.js

    But i find because implement is not sure for me. Please change to like this:
    Code:
    this.tr(<Instance Name>.text = "Hello World");
    it is very better than localeManager by Extjs .

    I find Translation / Location by Qooxdoo because it is stability.

    Look at Qooxdoo and Extjs are different for Translation and Location:
    http://manual.qooxdoo.org/1.4.x/pages/tutorials/tutorial-part-4-3.html

    A
    nd Example for Qooxdoo: http://demo.qooxdoo.org/current/showcase/#i18n

    F
    or Extjs:
    Example: http://dev.sencha.com/deploy/ext-4.0.2a/examples/locale/dutch-form.html

    S
    o waht is framework different?
    Implement for Qooxdoo is better than Extjs Please improve again!
    this.tr(); = better than Extjs's Code

    Code:
    Ext.LocaleManager.get('Ext') // This will return the LocaleBundle stored under the "Ext" key
    Ext.LocaleManager.addEventListener("change", ..... ); // The method will be called when the locale changes// Be able to do the same directly on the LocaleBundleExt.LocaleManager.get('Ext').addEventListener("change", ..... );// To store a new LocaleBundleExt.LocaleManager.add('myKey', new Ext.LocaleBundle(...));
    I hope your location and translation while you make sure

    Thanks
    I am deaf.
    SnakeMedia Inc:
    Ext Demo Browser: http://sm-extjs.zxq.net/facebook/extdemobrowser/
    Ext Book - coming soon!
    Ext Twitter - coming soon!
    and Ext nice applications - coming soon....

  2. #52
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,224
    Vote Rating
    859
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Already been discussed. I don't develop based on what other frameworks are doing.

    Also, this is not part of the framework... it's a 3rd party extension even tho I work for Sencha.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #53
    Sencha User
    Join Date
    Mar 2010
    Posts
    51
    Vote Rating
    2
    koblass is on a distinguished road

      0  

    Default


    Fully agree with Mitchell,

    Moreover the qooxdoo solution is not very nice because you need to run a translations generator which is not always possible for modular applications.

    If you really like the "this.tr" solution you can always overwrite the Ext.Component in order to add this method...


    Mitchell, as you work for Sencha, do you think that a general solution for handling Locales is in the pipeline ?
    My concern is that, we can easily develop a way to manage the translation of the entire application, even reload dynamically the Locale files in order to overwrite the components, but then we should be able to re-render those components if we want the changes to be applied (like for the date picker for instance). Would be nice to have a sencha's defined way of doing it...

    Best
    Daniel

  4. #54
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,224
    Vote Rating
    859
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Quote Originally Posted by koblass View Post
    Mitchell, as you work for Sencha, do you think that a general solution for handling Locales is in the pipeline ?
    My concern is that, we can easily develop a way to manage the translation of the entire application, even reload dynamically the Locale files in order to overwrite the components, but then we should be able to re-render those components if we want the changes to be applied (like for the date picker for instance). Would be nice to have a sencha's defined way of doing it...
    To be honest... performance is out main concern in 4.1. Will we do something... hopefully
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  5. #55
    Sencha User
    Join Date
    Sep 2009
    Location
    Germany
    Posts
    34
    Vote Rating
    0
    SnakeMedia is on a distinguished road

      0  

    Smile


    Yeah you are rights...

    I find you say becasue qooxdoo isn't nice. I know because Extjs is better than Qooxdoo

    Okay.. i will learn with Extjs Thanks for solution!

    Regards, SnakeMedia
    I am deaf.
    SnakeMedia Inc:
    Ext Demo Browser: http://sm-extjs.zxq.net/facebook/extdemobrowser/
    Ext Book - coming soon!
    Ext Twitter - coming soon!
    and Ext nice applications - coming soon....