1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    13
    Vote Rating
    0
    cbox is on a distinguished road

      0  

    Default Translation of big projects

    Translation of big projects


    Hi,

    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 - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,833
    Vote Rating
    609
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    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.

    Code:
    var Lang = {
        foo: 'Text 1',
        bar: 'Text 2'
    };
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

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

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi