Forum > General

Polish buttons at MessageDlg

(1/1)

ensimek:
Hi,
Where can I change captions of buttons [mbYes][mbNo] so i could get in polish language Tak/Nie instead of Yes/No

krexon:
I do it in such way:
I put lclstrconsts.pl.po file with Polish translations in project directory, add 'translations' to uses section and add line:

--- Code: ---TranslateUnitResourceStrings('LclStrConsts','lclstrconsts.%s.po','pl','');
--- End code ---
after 'begin' and before 'Application.Initialize' in .lpr file

There is only one important thing. You must add .po file with your exe file in the same directory when you distribute executable :)

faber:
dlgO:=QuestionDlg('Program','Jakies pytanko ?',mtConfirmation,[6,Tak,7,Nie,3,Anuluj],0);

krexon:
You forgot about apostrophes in 'Tak' 'Nie' 'Anuluj' strings :) Unless they are variables ...

--- Code: ---dlgO:=QuestionDlg('Program','Jakies pytanko ?',mtConfirmation,[6,'Tak',7,'Nie',3,'Anuluj'],0);
--- End code ---

ensimek:
Thanks, Works just great

Navigation

[0] Message Index

Go to full version