how to internationalize my application in Delphi X

2019-02-27 11:48发布

问题:

I am using the Translation Manager Included in Delphi (xe8, but should be the same in older version)

I go to Projet->langages->add (choose english).

Then I translate the texts(here the button)

I update it all and compile it all: I got the .exe and .enu file and it is french.

When I go to Projet->languages->set Active and I choose english, I compile it all and my application is now in english (button says hello)

That's great.

However my goal is that my application AUTOMATICALLY swicthes from french->english when computer config changes ex : I change my PC settings to english:

(I do the same with keyboard setting)

However my applicatin ALWAYS stays withe the default langage I put in Project->Langages->Set Active

How to make my Project.exe automatically choose the right langage depending on my PC configuration ?

回答1:

Take a look at http://dxgettext.po.dk/ replacement for standart Translation Manager.

This adds the support of well-known gettext toolset to your project.