Hello,
I am currently using Lazarus 1.8.0RC3 on a Raspberry Pi, Raspbian Jessie. Application I am working on requires me to localize dialog buttons.
I have searched for the subject, but I could not find something as a solution/link provided in forum posts. Moreover, most of the questions were several years old and we have fpc 3.1.1 and Lazarus 1.8.0 today.
One of the things I have tried was to use TranslateUnitResourceStrings() function to localize. But, it did not work for me using as follows:
uses
Translations;
procedure TfrmMain.FormCreate(Sender: TObject);
begin
TranslateUnitResourceStrings('LCLStrConsts', 'lclstrconsts.tr.po');
end;
Above code, project compiles OK. However, MessageDlg() continues to display button captions in English.
I appreciate any help.
Thanks & regards,
Ertan