2011-02-23 02:43:06 +01:00
|
|
|
@echo off
|
|
|
|
set "LAMEXP_ERROR=1"
|
|
|
|
echo ----------------------------------------------------------------
|
|
|
|
echo Updating Translation files
|
|
|
|
echo ----------------------------------------------------------------
|
2011-04-19 16:21:19 +02:00
|
|
|
call "%~dp0\_paths.bat"
|
2011-02-23 02:43:06 +01:00
|
|
|
if not "%LAMEXP_ERROR%"=="0" GOTO:EOF
|
2011-04-21 20:35:03 +02:00
|
|
|
REM -----------------------------------------------------------------
|
|
|
|
set "LAMEXP_ERROR=1"
|
2011-02-23 02:43:06 +01:00
|
|
|
REM -----------------------------------------------------------------
|
|
|
|
call "%PATH_MSVC90%\VC\bin\vcvars32.bat" x86
|
2011-04-19 16:28:25 +02:00
|
|
|
call "%PATH_QTMSVC%\bin\qtenv2.bat"
|
2011-02-23 02:43:06 +01:00
|
|
|
REM -----------------------------------------------------------------
|
|
|
|
set "LAMEXP_ERROR=1"
|
2011-04-22 22:10:55 +02:00
|
|
|
set "LST_FILE=%TEMP%\~list.%RANDOM%%RANDOM%.tmp"
|
2011-02-23 02:43:06 +01:00
|
|
|
echo %LST_FILE%
|
|
|
|
REM -----------------------------------------------------------------
|
|
|
|
del "%LST_FILE%" 2> NUL
|
2011-04-19 16:21:19 +02:00
|
|
|
for %%f in ("%~dp0\..\..\gui\*.ui") do (
|
2011-02-23 02:43:06 +01:00
|
|
|
echo %%f >> "%LST_FILE%"
|
|
|
|
)
|
2011-04-19 16:21:19 +02:00
|
|
|
for %%f in ("%~dp0\..\..\src\*.cpp") do (
|
2011-02-23 02:43:06 +01:00
|
|
|
echo %%f >> "%LST_FILE%"
|
|
|
|
)
|
2011-04-19 16:21:19 +02:00
|
|
|
for %%f in ("%~dp0\..\..\src\*.h") do (
|
2011-02-23 02:43:06 +01:00
|
|
|
echo %%f >> "%LST_FILE%"
|
|
|
|
)
|
|
|
|
REM -----------------------------------------------------------------
|
2011-04-19 16:21:19 +02:00
|
|
|
for %%f in ("%~dp0\..\Translation\*.ts") do (
|
2011-02-23 02:43:06 +01:00
|
|
|
del %%f.bak 2> NUL
|
|
|
|
copy %%f %%f.bak
|
|
|
|
lupdate.exe "@%LST_FILE%" -no-obsolete -ts %%f
|
|
|
|
)
|
|
|
|
del "%LST_FILE%"
|
|
|
|
echo ----------------------------------------------------------------
|
2011-04-19 16:21:19 +02:00
|
|
|
for %%f in ("%~dp0\..\Translation\LameXP_??.ts") do (
|
|
|
|
lrelease.exe %%f -qm "%~dp0\..\..\res\localization\%%~nf.qm"
|
2011-02-23 02:43:06 +01:00
|
|
|
)
|
|
|
|
echo ----------------------------------------------------------------
|
|
|
|
set "LST_FILE="
|
|
|
|
set "LAMEXP_ERROR=0"
|