summaryrefslogtreecommitdiff
path: root/langpacks/spanish
diff options
context:
space:
mode:
authordartraiden <wowemuh@gmail.com>2018-04-28 19:16:47 +0300
committerdartraiden <wowemuh@gmail.com>2018-04-28 19:16:47 +0300
commit69efdcb7f914b5fc66f83773eca1d555c7a9a145 (patch)
tree74465152f2e0039ac27de26e8a4d6a8f34ff3d19 /langpacks/spanish
parent5a9900711573edc1aefadde779a623e39a345644 (diff)
langpacks: unification
Diffstat (limited to 'langpacks/spanish')
-rw-r--r--langpacks/spanish/Refresh.bat5
-rw-r--r--langpacks/spanish/UpdateLang.bat3
2 files changed, 6 insertions, 2 deletions
diff --git a/langpacks/spanish/Refresh.bat b/langpacks/spanish/Refresh.bat
index d8c1fc5e86..709703f062 100644
--- a/langpacks/spanish/Refresh.bat
+++ b/langpacks/spanish/Refresh.bat
@@ -11,5 +11,8 @@ REM =========================
cd "..\..\tools\lpgen\"
call refresher.bat %language% "%oldLangpackPath%"
-REM copy and reload langpack in your Miranda (uncoment next line + enable cmdline.dll plugin to use it)
+REM if previous command failed, exit
+if %ERRORLEVEL% NEQ 0 exit /B 1
+
+REM copy and reload langpack in your Miranda (uncomment next line + enable cmdline.dll plugin to use it)
REM call installer.bat %language% "%mirandaPath%"
diff --git a/langpacks/spanish/UpdateLang.bat b/langpacks/spanish/UpdateLang.bat
index 15ad6e89c0..a063036d82 100644
--- a/langpacks/spanish/UpdateLang.bat
+++ b/langpacks/spanish/UpdateLang.bat
@@ -1,9 +1,10 @@
for %%* in (.) do set CurrDirName=%%~n*
set langdir=%CD%
set lang=%CurrDirName%
+set OldLangpackPath=
del /f /q %langdir%\Untranslated\*.txt
pushd ..\..\tools\lpgen
-cscript /nologo translate.js /sourcelang:"%lang%" /noref:"yes" /popuntranslated:"yes" /out:"%langdir%" /untranslated:"%langdir%\Untranslated"
+cscript /nologo translate.js /sourcelang:"%lang%" /noref:"yes" /popuntranslated:"yes" /out:"%langdir%" /untranslated:"%langdir%\Untranslated" /langpack:%OldLangpackPath%
popd \ No newline at end of file