Hak
Hak

Reputation: 99

Delphi localization support

I am trying to localize a VCL application, but I can't seem to find LoadNewResourceModule and ReinitializeForms. What unit(s) do I need to add to the uses clause for Delphi 10.3.4? Or is there another way to switch language dynamically?

Reference: http://docwiki.embarcadero.com/RADStudio/Sydney/en/Dynamic_Switching_of_Resource_DLLs

Upvotes: 2

Views: 1086

Answers (1)

Jaska
Jaska

Reputation: 1037

LoadNewResourceModule and ReinitializeForms are only for an example purposes. They are not very practical because it recreates the form.

Here is a complete Delphi localization document. It also shows how to make the runtime language switch in the right way.

You can localize your application in many way

  • One exe for each language. The application always start in the language of the EXE. Deploy the EXE matching the user's language.
  • Original EXE plus one resource DLL for each language. You can have runtime language switch or just select a language at the time when the application starts. Deploy the EXE and any number of resource DLLs.
  • One multilingual EXE. Windows will select the language. You have no control for it. Deploy only the multilingual EXE.

Upvotes: 1

Related Questions