1. #1
    Ext User para's Avatar
    Join Date
    Apr 2007
    Location
    Redmond, WA
    Posts
    918
    Vote Rating
    -2
    para has a little shameless behaviour in the past

      0  

    Default 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?
    Attached Files

  2. #2
    Sencha User galdaka's Avatar
    Join Date
    Mar 2007
    Location
    Spain
    Posts
    1,166
    Vote Rating
    -1
    galdaka is an unknown quantity at this point

      0  

    Default


    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:

    PHP Code:
       new Ext.ux.language.literalItem({
         
    spanish'hola',
         
    english'hello',
         
    chinese:'....
         ....
       }) 
    Each Ext.ux.literalItem must be suscribed to a global class that expose the traslate functions.

    For example:
    PHP Code:
    Ext.ux.language.init({language'spanish',....}); 
    With this way you can integrate multilanguage easy in your Ext applications.

    Greetings,

Thread Participants: 1