Dear ALL,
Hi. I have written a multi-language application following the directions provided in the excellent tutorial
Step-by-step instructions for creating multi-language applications (
http://wiki.freepascal.org/Step-by-step_instructions_for_creating_multi-language_applications).
I have added a menu option "Languages" with two items which allow to change the interface language between English (the default) and Brazilian Portuguese. I created a .po file for each language (myapplication.en.po and myapplication.pt-br.po), jusing Poedit to translate the strings.
When I start my application, the interface is displayed in English. Choosing the "Portuguese" option in the Language menu, it immediately switches to that language. However, if I want to switch back to English, using the "English" option in the Language menu, nothing happens (that is, the interface does not switch back to English).
My Language menu options are implemented just as recommended in the above cited tutorial:
procedure TMainForm.MEnglishlanguageClick(Sender: TObject);
begin
SetDefaultLang('en');
end;
procedure TMainForm.MPortugueseLanguageClick(Sender: TObject);
begin
SetDefaultLang('pt-br');
end;
Any hints?
Thanks in advance for any assistance you can provide.
Best regards,