summaryrefslogtreecommitdiff
path: root/langpacks/ukrainian
diff options
context:
space:
mode:
Diffstat (limited to 'langpacks/ukrainian')
-rw-r--r--langpacks/ukrainian/Refresh.bat18
-rw-r--r--langpacks/ukrainian/UpdateLang.bat4
2 files changed, 21 insertions, 1 deletions
diff --git a/langpacks/ukrainian/Refresh.bat b/langpacks/ukrainian/Refresh.bat
new file mode 100644
index 0000000000..d167782eeb
--- /dev/null
+++ b/langpacks/ukrainian/Refresh.bat
@@ -0,0 +1,18 @@
+@echo off
+
+REM ====== VARIABLES ========
+
+set "language=ukrainian"
+set "oldLangpackPath=Deprecated\langpack_ukrainian_old.txt"
+set "mirandaPath="
+
+REM =========================
+
+cd "..\..\tools\lpgen\"
+call refresher.bat %language% "%oldLangpackPath%"
+
+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/ukrainian/UpdateLang.bat b/langpacks/ukrainian/UpdateLang.bat
index 296cc1df5d..a063036d82 100644
--- a/langpacks/ukrainian/UpdateLang.bat
+++ b/langpacks/ukrainian/UpdateLang.bat
@@ -1,8 +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