fuel-scm/intl/convert.bat
kostas 50fee5aab1 Added localization conversion script for windows build
FossilOrigin-Name: 5de753035ea0f6c277123f36d25a2d35fb5c63c9
2012-12-20 14:04:22 +00:00

24 lines
516 B
Batchfile
Executable File

@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