I need to translate the program into other languages, in fact I have the same program in three languages ββ(English, Spanish, Portuguese), but I translated, recompiled, and I have 3 separate executable files. And add more languages, and save links, and adding new features is driving me crazy.
So, now I decided to save one executable file and an external language file, so adding new languages ββdoes not require recompilation, just editing the language file using a text editor, and everything is in order.
I want to save all languages ββin one external file. e.g. international.lang
[portuguese] greeting="Bem-vindo" [spanish] greeting="Ben venido"
if the international.lang file is not present, or your language is not in the file, the program starts in English by default, without errors. Like most programs in multiple resource-based languages.
So the question is: how to determine the Windows language in delphi? Any thoughts on my approach? Is there any way to programmatically replace all captions with dialogs?
ps: I am using delphi7 and I cannot find any free component.
source share