diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-07-09 14:07:41 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-07-09 14:07:41 +0000 |
commit | 6ea844fd51084c2e78fe400e1a9034c7960a922a (patch) | |
tree | befc0187cdab4dfb83faa712fec934146f85e37a /tools/lpgen | |
parent | 203597b513941330e6c65a636c53d06e6fb5431b (diff) |
Langpack Refresher: Update to fit latest translate.js
Czech langpacks: Added weather translations, Slovnicek.txt and updated Refresh.bat script
git-svn-id: http://svn.miranda-ng.org/main/trunk@5297 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'tools/lpgen')
-rw-r--r-- | tools/lpgen/refresher.bat | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/tools/lpgen/refresher.bat b/tools/lpgen/refresher.bat index 2bbcffbb09..75dc30b9e1 100644 --- a/tools/lpgen/refresher.bat +++ b/tools/lpgen/refresher.bat @@ -72,33 +72,39 @@ cd "..\..\tools\lpgen\" mkdir "Plugins" mkdir "Untranslated" +mkdir "Weather" if "%phase%" == "0" ( echo Loading strings from old langpack... - cscript /nologo translate.js /out:"Plugins" /untranslated:"Untranslated" /outfile:"langpack_%language%.txt" /path:"..\..\langpacks\%language%\Plugins" /core:"..\..\langpacks\%language%\=CORE=.txt" /langpack:"..\..\langpacks\%language%\%oldLangpackPath%" + cscript /nologo translate.js /out:".\" /untranslated:"Untranslated" /outfile:"Langpack_%language%.txt" /path:"..\..\langpacks\%language%\" /langpack:"..\..\langpacks\%language%\%oldLangpackPath%" ) else ( - REM load strings from recently created langpack (also to distribute strings between files) - cscript /nologo translate.js /out:"Plugins" /untranslated:"Untranslated" /outfile:"langpack_%language%.txt" /path:"..\..\langpacks\%language%\Plugins" /core:"..\..\langpacks\%language%\=CORE=.txt" /langpack:"..\..\langpacks\%language%\Langpack_%language%.txt" + REM load strings from recently created langpack (also to distribute strings between files) and create final langpack + cscript /nologo translate.js /out:".\" /untranslated:"Untranslated" /outfile:"Langpack_%language%.txt" /sourcelang:"czech" ) - + +rm -r "../../langpacks/%language%/Weather" rm -r "../../langpacks/%language%/Plugins" rm -r "../../langpacks/%language%/Untranslated" rm -r "../../langpacks/%language%/=CORE=.txt" rm -r "../../langpacks/%language%/Langpack_%language%.txt" +mkdir "..\..\langpacks\%language%\Weather" mkdir "..\..\langpacks\%language%\Plugins" mkdir "..\..\langpacks\%language%\Untranslated" +copy "Weather\" "..\..\langpacks\%language%\Weather\" copy "Plugins\" "..\..\langpacks\%language%\Plugins\" copy "Untranslated\" "..\..\langpacks\%language%\Untranslated\" copy "=CORE=.txt" "..\..\langpacks\%language%\=CORE=.txt" +copy "Langpack_%language%.txt" "..\..\langpacks\%language%\Langpack_%language%.txt" +rm -r "Weather" rm -r "Plugins" rm -r "Untranslated" rm "=CORE=.txt" rm "Langpack_%language%.txt" -cd "..\..\langpacks\tool\" -LangpackSuite.exe \q \p%language% +REM cd "..\..\langpacks\tool\" +REM LangpackSuite.exe \q \p%language% if not "%phase%" == "1" ( echo Loading strings from new langpack... @@ -109,4 +115,4 @@ if not "%phase%" == "1" ( :end echo Refreshing finished! -REM =========================
\ No newline at end of file +REM ========================= |