Jump to content

Recommended Posts

Posted

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

Posted

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.

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

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
Posted

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

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...