Jump to content

How to internationalize ?


alasoft

Recommended Posts

Hi everybody ..

 

The more I use and try UniGUI, the more I like it. So far, there was nothing I really can't do with this fantastic tool.

 

Now, I want/need to internationalize (english/spanish application)

 

Please, can anibody give sime advice ?

 

Thanks !

 

Rober

Link to comment
Share on other sites

For native Ext JS strings set ServerModule->locale to your language.

For other strings in your app use a localization tool for Delphi.

 

Great !! ..

 

Now, will you recommend me some localization tool for Delphi (appart from ExtJS strings) ?

 

Thanks Farjad, your product works fantastic.

Link to comment
Share on other sites

  • 1 year later...
  • 5 months later...

For this thing, i have a "String table" in the DataBase where i have all strings used in forms for multiple languages

, When start the application and choose the language, i load all strings from database according to the language ID

 

then i have a function that loops through controls and set the caption for each control

 

I use the TAG property of the control(such as LABEL.tag)

 

String table Example

     stringID   LanguageID   String Description

        1                   1                         Hello

        1                   2                         ¡hola

        2                   1                         OK

        2                   2                         bueno

 

then, the Hello label tag will be 1 

  • Upvote 1
Link to comment
Share on other sites

This is a Sample Project of using String Table as mentioned in my last replay

 

 

String table Example

     stringID   LanguageID   String Description

        1                   1                         Hello

        1                   2                         ¡hola

        2                   1                         OK

        2                   2                         bueno

 

in this sample i used the ClientDataset to load the String table,  so you can replace that from Data Base as you need

 

Note:

   Look at the control Tag Property

                  the Hello labe tag = 1    -- meets the Hello string ID

                  the OK button tag = 2    --  meet the OK string ID

 

 

 

Project10.rar

Link to comment
Share on other sites

  • 1 year later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...