Recent

Author Topic: Polish buttons at MessageDlg  (Read 5706 times)

ensimek

  • Jr. Member
  • **
  • Posts: 55
Polish buttons at MessageDlg
« on: July 04, 2010, 06:56:47 pm »
Hi,
Where can I change captions of buttons [mbYes][mbNo] so i could get in polish language Tak/Nie instead of Yes/No

krexon

  • Jr. Member
  • **
  • Posts: 80
Re: Polish buttons at MessageDlg
« Reply #1 on: July 04, 2010, 08:57:31 pm »
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: [Select]
TranslateUnitResourceStrings('LclStrConsts','lclstrconsts.%s.po','pl','');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

  • Guest
Re: Polish buttons at MessageDlg
« Reply #2 on: July 04, 2010, 10:44:20 pm »
dlgO:=QuestionDlg('Program','Jakies pytanko ?',mtConfirmation,[6,Tak,7,Nie,3,Anuluj],0);

krexon

  • Jr. Member
  • **
  • Posts: 80
Re: Polish buttons at MessageDlg
« Reply #3 on: July 05, 2010, 11:24:41 am »
You forgot about apostrophes in 'Tak' 'Nie' 'Anuluj' strings :) Unless they are variables ...
Code: [Select]
dlgO:=QuestionDlg('Program','Jakies pytanko ?',mtConfirmation,[6,'Tak',7,'Nie',3,'Anuluj'],0);

ensimek

  • Jr. Member
  • **
  • Posts: 55
Re: Polish buttons at MessageDlg
« Reply #4 on: July 05, 2010, 06:32:20 pm »
Thanks, Works just great

 

TinyPortal © 2005-2018