-
26 Feb 2008 9:53 AM #1
Basic multilingual support
Basic multilingual support
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.
Any comments or suggestions?
-
26 Feb 2008 3:04 PM #2
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:
Each Ext.ux.literalItem must be suscribed to a global class that expose the traslate functions.PHP Code:new Ext.ux.language.literalItem({
spanish: 'hola',
english: 'hello',
chinese:'....
....
})
For example:With this way you can integrate multilanguage easy in your Ext applications.PHP Code:Ext.ux.language.init({language: 'spanish',....});
Greetings,



Reply With Quote