How to enforce rebuild PO language file lazarus / 31-LCL ---------------------------------------------------------------------- Milsa · 2016-03-23 14:54 I have translations in xxx.sk.po file. Many texts missing in this file. How to enforce rebuild this file? Texts missing in xxx.po file too. ---------------------------------------------------------------------- wp · 2016-03-23 16:31 Doesn't recompilation of the application update the po file and the translated files? ---------------------------------------------------------------------- Bart · 2016-03-23 17:14 There is a updatepofiles project in ($lazars)/tools Build that first. Then use a script like this: Code: [Select]@echo off REM This script REM - converts all compiled .rst files to .po files, REM - updates all translated xx.po files set LazInstall=C:\lazarus\ set myrsj=C:\path\to\rsjfile  ;normally in lib\$target\$project.rsj set mypoloc=C:\pathto\pofiles set mypofile=%mypoloc%\myproject.po echo. REM Compile tools if updatepofiles is missing if exist %LazInstall%\tools\updatepofiles.exe goto SkipTools echo The updatepofiles tool was not found, compiling tools ... echo. cd %LazInstall%\tools make updatepofiles.exe cd %mypoloc% if not exist %LazInstall%\tools\updatepofiles.exe echo updatepofiles.exe does not exist if not exist %LazInstall%\tools\updatepofiles.exe goto Exit_Error :SkipTools echo Updating language files ... if exist %myrsj% echo RSJ found if not exist %PO_RSJ% echo Error: RSJ not found "%PO_RST%" if not exist %PO_RSJ% goto Exit_Error echo on %LazInstall%\tools\updatepofiles %PO_RSJ% %mypofile% @goto Exit :Exit_Error echo Unable to compile updatepofiles tool :Exit You can find several scripts like that in Lazarus sources, adapt one to your liking. Bart ---------------------------------------------------------------------- Milsa · 2016-03-25 09:45 I haven't RST files. I foung RSJ file but it is file created from unit with resource texts. I have problem with texts in MainForm components (DBGrid). ---------------------------------------------------------------------- Bart · 2016-03-25 09:56 Quote from: Milsa on March 25, 2016, 10:45:30 amI haven't RST files. It will use RSJ files (comment is wrong in batchfile, but see the source). I use it to update pochecker po-files whenever a resourcestring was altered or added. Bart ---------------------------------------------------------------------- Milsa · 2016-03-25 10:34 Yes, my comment was edited. But my PO file containing all resource texts from units. It does not containing texts from DBGrid (column titles inserted by visual form editor in Lazarus). RSJ file from visual part of MainForm does not exists. I think it is normally. How I can move translations from visual part of MainForm to PO file? Any texts from DBGrid are in PO file, but others from same DBGrid not. I do not know why. ---------------------------------------------------------------------- Milsa · 2016-04-14 18:36 I have new information about this problem. Translation does not work with TColumn.Caption in DBGrid. I reported it to bugtracker: http://bugs.freepascal.org/view.php?id=30013