summaryrefslogtreecommitdiff
path: root/langpacks/serbian
diff options
context:
space:
mode:
Diffstat (limited to 'langpacks/serbian')
-rw-r--r--langpacks/serbian/Refresh.bat5
-rw-r--r--langpacks/serbian/UpdateLang.bat10
2 files changed, 4 insertions, 11 deletions
diff --git a/langpacks/serbian/Refresh.bat b/langpacks/serbian/Refresh.bat
index da7f958199..0605a5c486 100644
--- a/langpacks/serbian/Refresh.bat
+++ b/langpacks/serbian/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/serbian/UpdateLang.bat b/langpacks/serbian/UpdateLang.bat
deleted file mode 100644
index a063036d82..0000000000
--- a/langpacks/serbian/UpdateLang.bat
+++ /dev/null
@@ -1,10 +0,0 @@
-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" /langpack:%OldLangpackPath%
-popd \ No newline at end of file