I need to develop a multilingual program. Depending on the user who logs on to the program, all labels, qrlabels, showmessage texts, menu captions, and whatever should be presented in the language of the user.
For instance: for an English user, the label TForm1.label5 shows "enter the quantity", for a German user the same label shows "geben Sie die Quantitat ein" and for a French user that label shows "entrez la quantite".
I'm thinking of a conversion routine; when the user user logs on, all text in the program is converted according to the language of this user.
I need a flexible way to define all captions or text in my program, with all the translations. I'm thinking of a text file where all this information is stored, that way it's very easy to add new texts and translations.
For the above example, the line in this text file will look like this:
TForm1.label5.caption , enter the quantity , geben Sie die Quantitat ein , entrez la quantite
Now, of course, my question is: how can I assign the string my program reads form the text file (like "enter the quantity") to the other string that's read: "TForm1.label5.caption"? In other words: I need to convert the string "TForm1.label5.caption" to the name my Delphi program is using, and then assign the value "enter the quantity" to it.
Or, if that's not possible, is there another flexible way to make my program multiligual?
Thanks for all information,