Search code examples
lazarusfreepascal

Lazarus messagebox: how to localize buttons


I want to localize buttons of MesssageBox, MessageDlg, InputQuery, etc. I see resourcestring exist for this in lclstrconsts: "OK"/"Cancel".... but I want to set button strings using asssignments.

How to do it?

I need it on Win32. I see that German/Rus OS shows En buttons.


Solution

  • That's how it is done for MessageDlg: http://delphi.xcjc.net/viewthread.php?tid=47562.

    Variables with rs prefix should be defined.

    Other components could be localized the same way.