Translation conversion is now automatically called from the project file
Improved the translation converion script on Windows FossilOrigin-Name: e574454625a7701da9d1959fa72e54036d5ab7c3
This commit is contained in:
@ -1,23 +1,20 @@
|
||||
@echo off
|
||||
setlocal EnableDelayedExpansion
|
||||
set SCRIPTDIR=%CD%
|
||||
set PRJDIR=%SCRIPTDIR%\..
|
||||
set QTPATH=C:\Qt\5.4\mingw491_32
|
||||
set SCRIPTDIR=%~dp0%
|
||||
set PRJDIR=%SCRIPTDIR%..
|
||||
set QTPATH=C:\Qt\5.5\mingw492_32
|
||||
|
||||
if NOT "%QTDIR%"=="" set QTPATH=%QTDIR%
|
||||
|
||||
echo Using QT at %QTDIR%
|
||||
echo Converting localizations
|
||||
del /q %PRJDIR%\rsrc\intl\*
|
||||
if not exist %PRJDIR%\rsrc\intl\ mkdir %PRJDIR%\rsrc\intl\
|
||||
|
||||
REM Convert all except the en_US which is the original text in the code
|
||||
|
||||
%QTPATH%\bin\lrelease de_DE.ts -qm ..\rsrc\intl\de_DE.qm
|
||||
%QTPATH%\bin\lrelease el_GR.ts -qm ..\rsrc\intl\el_GR.qm
|
||||
%QTPATH%\bin\lrelease es_ES.ts -qm ..\rsrc\intl\es_ES.qm
|
||||
%QTPATH%\bin\lrelease fr_FR.ts -qm ..\rsrc\intl\fr_FR.qm
|
||||
%QTPATH%\bin\lrelease ru_RU.ts -qm ..\rsrc\intl\ru_RU.qm
|
||||
%QTPATH%\bin\lrelease pt_PT.ts -qm ..\rsrc\intl\pt_PT.qm
|
||||
%QTPATH%\bin\lrelease it_IT.ts -qm ..\rsrc\intl\it_IT.qm
|
||||
%QTPATH%\bin\lrelease nl_NL.ts -qm ..\rsrc\intl\nl_NL.qm
|
||||
%QTPATH%\bin\lrelease ko_KR.ts -qm ..\rsrc\intl\ko_KR.qm
|
||||
for %%i in (de_DE el_GR es_ES fr_FR ru_RU pt_PT it_IT nl_NL ko_KR) do (
|
||||
%QTPATH%\bin\lrelease %PRJDIR%\intl\%%i.ts -qm %PRJDIR%\rsrc\intl\%%i.qm
|
||||
)
|
||||
|
||||
endlocal
|
||||
|
Reference in New Issue
Block a user