how to internationalize my application in Delphi XE?

岁酱吖の 提交于 2019-12-31 02:58:13

问题


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.



来源:https://stackoverflow.com/questions/31903056/how-to-internationalize-my-application-in-delphi-xe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!