View Full Version : Basic multilingual support

26 Feb 2008, 9:53 AM
I have the need to have my own separate language files. This is a basic implementation of my translation object, which I use for every piece of text on the page.
This is a JS object, with a PHP(4+) script doing the server processing.

Like I said, it's basic, but it should be an easy plugin for any noob who needs simple translation.

Here's a light demo. (http://www.gadberry.com/travis/legacy/LanguageLoader/index.html)

Any comments or suggestions?

26 Feb 2008, 3:04 PM
Good start!

Sorry for my English.

I think in a "Ext.ux.language.literalItem". When you want to put a multilanguage literal must be use this class.

For example:

new Ext.ux.language.literalItem({
spanish: 'hola',
english: 'hello',

Each Ext.ux.literalItem must be suscribed to a global class that expose the traslate functions.

For example:
Ext.ux.language.init({language: 'spanish',....});

With this way you can integrate multilanguage easy in your Ext applications.