Lazreport: How to translate the print dialog box from English into Italian lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- pasquale · 2012-03-16 06:44 Hi, everybody. I'm learning how to use Lazreport and I would like to know which source file(s) I have to edit in order to translate the captions of the labels and buttons that you get in the print dialogbox from English into Italian. Any help will be appreciated. Thanks in advance. Pasquale Perugia, Italy ---------------------------------------------------------------------- Bart · 2012-03-16 09:59 Translating the lclstrconst resource strings (using TranslateUnitResourceStrings from the Translation unit) does not help? Bart ---------------------------------------------------------------------- pasquale · 2012-03-16 12:15 Thanks for your reply. Could you please provide me with the path to the translation unit where I can find the resource strings? Please consider that I started using Lazarus a few days ago. Thanks again. ---------------------------------------------------------------------- Francisco Macá · 2012-04-02 20:29 Hi pasquale! Another day I had a similar problem like this. Into IDE I hadn't no problem. After run the program, the strings was in English, including with Lazarus. I put the two files in the same path it was my application: lclstrconsts.pb.po and lr_const.pb.po and solved the problem (I am Brasilian, so I used pb. You have to use lclstrconsts.it.po and lr_const.it.po). The first you will find in ...lazarus/lcl/languages and the second in ...lazarus/components/lazreport/source/languages (in Windows enviroment). In my project I use in FormCreate: procedure TFormDADOS.FormCreate(Sender: TObject); var   Lang, FallbackLang: string; begin   Lang := 'pb';   FallBackLang := '';   TranslateUnitResourceStrings('LclStrConsts', //    {$ifdef win32} //       'c:\lazarus\lcl\languages\lclstrconsts.pb.po', Lang, FallbackLang); //    {$endif} //    {$ifdef unix} //       '/usr/share/lazarus/lcl/languages/lclstrconsts.pb.po', Lang, FallbackLang); //    {$endif}   'lclstrconsts.pb.po', Lang, FallbackLang);   TranslateUnitResourceStrings('lr_const','lr_const.pb.po', Lang, FallbackLang); end; In the code above you will see why I put the files in the same place where was the application: simplicity and facility. I hope I help you. Best regards. ---------------------------------------------------------------------- Francisco Macá · 2012-04-02 20:31 Remember to put in the uses clauses: Translations.