Added localization conversion script for windows build

FossilOrigin-Name: 5de753035ea0f6c277123f36d25a2d35fb5c63c9
This commit is contained in:
kostas
2012-12-20 14:04:22 +00:00
parent 6e054c778d
commit 50fee5aab1
3 changed files with 31 additions and 6 deletions

24
intl/convert.bat Executable file
View File

@ -0,0 +1,24 @@
@echo off
setlocal EnableDelayedExpansion
set SCRIPTDIR=%CD%
set PRJDIR=%SCRIPTDIR%\..
set INTLDIR=%SCRIPTDIR%
set QTPATH=C:\Qt\QtSDK\Desktop\Qt\4.8.1\mingw
echo Converting localizations
del %PRJDIR\rsrc\intl\*
if not exist %PRJDIR\rsrc\intl\ mkdir %PRJDIR\rsrc\intl\
for %i in ( %INTLDIR%\*.ts ) do (
set BASE=%~ni
REM Convert all except the en_US which is
REM the original text in the code
if not "!BASE!"=="en_US" (
echo !BASE!
%QTPATH%\bin\lrelease %i -qm %PRJDIR\rsrc\intl\!BASE!.qm
)
)
endlocal