summaryrefslogtreecommitdiff
path: root/langpacks/ukrainian
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/ukrainian
parent5a9900711573edc1aefadde779a623e39a345644 (diff)
langpacks: unification
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