summaryrefslogtreecommitdiff
path: root/langpacks/czech
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-06-18 15:35:57 +0000
committerRobert Pösel <robyer@seznam.cz>2013-06-18 15:35:57 +0000
commit86b46853d8fa3d0447534e991bbe33af1d52b8a2 (patch)
tree98a51b6f182d0dd72abae61aa0351b6eafd4b1cc /langpacks/czech
parent4a3f10d8e8775a530f5e00f1ceb2d787a8960867 (diff)
Czech generation script is now more awesome.
git-svn-id: http://svn.miranda-ng.org/main/trunk@5018 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'langpacks/czech')
-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