Results 1 to 2 of 2

Thread: Translation of big projects

  1. #1
    Sencha User
    Join Date
    May 2010
    Vote Rating

    Default Translation of big projects


    I'm developing a project with alot of elements and i need it to be multilingual.

    The translations are done in the PHP area where the customer are able to create new languages and translate by a webinterface with a key/value system which are cached into eg. a json object.

    In the project there will be more than 200 objects and i find the Ext.apply/Ext.override method to be a mess with that many translations or prehaps i just didn't find a good way to do it yet.

    My thoughts was to simply include the translations as a variable and define the translation in the js defintion of the objects.

    Well, i hope someone can point me in the right direction for solving this in a good and simple way.

  2. #2
    Sencha User evant's Avatar
    Join Date
    Apr 2007
    Sydney, Australia
    Vote Rating


    The only reason the Ext locale files do it that way is because certain components may or may not exist. You can just use a simple object literal.

    var Lang = {
        foo: 'Text 1',
        bar: 'Text 2'
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

Similar Threads

  1. Example Projects
    By aconran in forum Ext Designer: Help & Discussion
    Replies: 61
    Last Post: 10 Jan 2012, 4:49 PM
  2. How big is your project? What do you consider a big app?
    By bbxx in forum Community Discussion
    Replies: 38
    Last Post: 2 Dec 2009, 6:17 AM
  3. How to apply a big IMAGE on a BIG BUTTON
    By realtebo2 in forum Ext 3.x: Help & Discussion
    Replies: 9
    Last Post: 14 Oct 2009, 7:44 AM
  4. Speed decrease in big projects ?
    By Rushleader in forum Community Discussion
    Replies: 6
    Last Post: 28 May 2009, 6:44 AM
  5. Are you using DWR in your projects?
    By sfwalter in forum Community Discussion
    Replies: 6
    Last Post: 11 Feb 2008, 10:16 AM

Posting Permissions

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