summaryrefslogtreecommitdiff
path: root/langpacks
diff options
context:
space:
mode:
Diffstat (limited to 'langpacks')
-rw-r--r--langpacks/czech/Generate.bat28
1 files changed, 23 insertions, 5 deletions
diff --git a/langpacks/czech/Generate.bat b/langpacks/czech/Generate.bat
index 91a4b8560b..d5a928528d 100644
--- a/langpacks/czech/Generate.bat
+++ b/langpacks/czech/Generate.bat
@@ -1,11 +1,20 @@
-rem echo off
+@echo off
+
+set phase=0
+
+:start
+
cd "..\..\tools\lpgen\"
mkdir "Plugins"
mkdir "Untranslated"
-cscript /nologo translate.js /log:"yes" /out:"Plugins" /untranslated:"Untranslated" /outfile:"langpack_czech.txt" /path:"..\..\langpacks\czech\Plugins" /core:"..\..\langpacks\czech\=CORE=.txt" /langpack:"..\..\langpacks\czech\Deprecated\old langpack\langpack_czech2.txt"
-
+if "%phase%" == "0" (
+ cscript /nologo translate.js /log:"yes" /out:"Plugins" /untranslated:"Untranslated" /outfile:"langpack_czech.txt" /path:"..\..\langpacks\czech\Plugins" /core:"..\..\langpacks\czech\=CORE=.txt" /langpack:"..\..\langpacks\czech\Deprecated\old langpack\langpack_czech2.txt"
+) else (
+ cscript /nologo translate.js /log:"yes" /out:"Plugins" /untranslated:"Untranslated" /outfile:"langpack_czech.txt" /path:"..\..\langpacks\czech\Plugins" /core:"..\..\langpacks\czech\=CORE=.txt" /langpack:"..\..\langpacks\czech\Langpack_czech.txt"
+)
+
rm -r "../../langpacks/czech/Plugins"
rm -r "../../langpacks/czech/Untranslated"
rm -r "../../langpacks/czech/=CORE=.txt"
@@ -20,7 +29,16 @@ copy "=CORE=.txt" "..\..\langpacks\czech\=CORE=.txt"
rm -r "Plugins"
rm -r "Untranslated"
rm "=CORE=.txt"
-rm "langpack_czech.txt"
+rm "Langpack_czech.txt"
cd "..\..\langpacks\tool\"
-LangpackSuite.exe \ No newline at end of file
+LangpackSuite.exe \q \pczech
+
+if "%phase%" == "1" (
+ goto end
+) else (
+ set phase=1
+ goto start
+)
+
+:end