summaryrefslogtreecommitdiff
path: root/langpacks/russian
diff options
context:
space:
mode:
Diffstat (limited to 'langpacks/russian')
-rw-r--r--langpacks/russian/Refresh.bat18
-rw-r--r--langpacks/russian/UpdateLang.bat3
2 files changed, 20 insertions, 1 deletions
diff --git a/langpacks/russian/Refresh.bat b/langpacks/russian/Refresh.bat
new file mode 100644
index 0000000000..4ec527bbdd
--- /dev/null
+++ b/langpacks/russian/Refresh.bat
@@ -0,0 +1,18 @@
+@echo off
+
+REM ====== VARIABLES ========
+
+set "language=russian"
+set "oldLangpackPath=Deprecated\langpack_russian_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/russian/UpdateLang.bat b/langpacks/russian/UpdateLang.bat
index 15ad6e89c0..a063036d82 100644
--- a/langpacks/russian/UpdateLang.bat
+++ b/langpacks/russian/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