mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-23 18:59:17 +02:00
converted localize.sh for win32 from Razvan
git-svn-id: trunk@7614 -
This commit is contained in:
parent
44ec744e10
commit
c19e53442e
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -1899,6 +1899,7 @@ lcl/widgetset/wsspin.pp svneol=native#text/pascal
|
||||
lcl/widgetset/wsstdctrls.pp svneol=native#text/pascal
|
||||
lcl/widgetset/wstoolwin.pp svneol=native#text/pascal
|
||||
lcl/xmlpropstorage.pas svneol=native#text/pascal
|
||||
/localize.bat svneol=native#text/plain
|
||||
/localize.sh -text svneol=native#application/x-sh
|
||||
packager/addfiletoapackagedlg.lfm svneol=native#text/plain
|
||||
packager/addfiletoapackagedlg.lrs svneol=native#text/pascal
|
||||
|
62
localize.bat
Normal file
62
localize.bat
Normal file
@ -0,0 +1,62 @@
|
||||
@echo off
|
||||
REM
|
||||
REM Make sure you have your setings correctly
|
||||
REM
|
||||
REM Usage: localize
|
||||
REM
|
||||
REM This script should be executed after adding new resource strings and after
|
||||
REM udating the translated .po files.
|
||||
REM
|
||||
REM This script
|
||||
REM - converts all compiled .rst files to .po files,
|
||||
REM - updates all translated xx.po files
|
||||
REM
|
||||
|
||||
set LazInstall=C:\lazarus\
|
||||
set ArchOS=i386-win32
|
||||
|
||||
echo.
|
||||
|
||||
REM Compile tools if updatepofiles if missing
|
||||
|
||||
if exist tools\updatepofiles.exe goto SkipTools
|
||||
echo The updatepofiles tool was not found, compiling tools ...
|
||||
echo.
|
||||
cd tools
|
||||
make
|
||||
cd..
|
||||
:SkipTools
|
||||
|
||||
echo Updating language files ...
|
||||
|
||||
echo on
|
||||
|
||||
@REM IDE
|
||||
@set IDE_RST=units\%ArchOS%\LazarusIDEStrConsts.rst
|
||||
rstconv -i %IDE_RST% -o languages\lazaruside.po
|
||||
tools\updatepofiles languages\lazaruside.po
|
||||
|
||||
@REM IDEIntf
|
||||
@set ObjInsp_RST=ideintf\units\%ArchOS%\ObjInspStrConsts.rst
|
||||
rstconv -i %ObjInsp_RST% -o languages\objinspstrconsts.po
|
||||
tools\updatepofiles languages\objinspstrconsts.po
|
||||
|
||||
@REM CodeTools
|
||||
@set CodeTools_RST=components\codetools\units\%ArchOS%\CodeToolsStrConsts.rst
|
||||
rstconv -i %CodeTools_RST% -o components\codetools\languages\codetools.po
|
||||
tools\updatepofiles components\codetools\languages\codetools.po
|
||||
|
||||
@REM SynEdit
|
||||
@set SynEdit_RST=components\synedit\units\%ArchOS%\SynEditStrConst.rst
|
||||
rstconv -i %SynEdit_RST% -o components\synedit\languages\synedit.po
|
||||
tools\updatepofiles components\synedit\languages\synedit.po
|
||||
|
||||
@REM SynMacroRecorder
|
||||
@set SynMacroRec_RST=components\synedit\units\%ArchOS%\synmacrorecorder.rst
|
||||
rstconv -i %SynMacroRec_RST% -o components\synedit\languages\synmacrorecorder.po
|
||||
tools\updatepofiles components\synedit\languages\synmacrorecorder.po
|
||||
|
||||
@REM LCL
|
||||
@set LCL_RST=lcl\units\%ArchOS%\lclstrconsts.rst
|
||||
rstconv -i %LCL_RST% -o lcl\languages\lcl.po
|
||||
tools\updatepofiles lcl\languages\lcl.po
|
Loading…
Reference in New Issue
Block a user