Search code examples
delphidelphi-10.2-tokyo

Delphi localize VCL program with built in tool


While in C# it's pretty easy, in Delphi it seems that it's not. I have this test project in french:

enter image description here

And I have added italian and english as languages in this part of the IDE following the steps:

enter image description here

I've followed the steps I've found in the doc about resource dlls. Now I have this

enter image description here

But now, how do I translate the caption of the buttons? I haven't found useful info in the documentation, it seemed pretty confusing to me.


I have done the following with ITA

enter image description here

And ENG

enter image description here

But in Project > Languages I set ITALIAN as active but still I see everything in english. Am I missing something?

I already know that there are localization tools like TsiLang, TLanguages, DKLang and so (I already rely on them) but I wanted to try this built in feature.


Solution

  • All you need to do is to compile and build the whole group not just the project, you can find this under:

    Project > Compile All Projects
    Project > Build All Projects
    

    Then run your project again, it should run the language you have been set as Active