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


Reply With Quote