From 69efdcb7f914b5fc66f83773eca1d555c7a9a145 Mon Sep 17 00:00:00 2001 From: dartraiden Date: Sat, 28 Apr 2018 19:16:47 +0300 Subject: langpacks: unification --- langpacks/russian/Refresh.bat | 18 ++++++++++++++++++ langpacks/russian/UpdateLang.bat | 3 ++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 langpacks/russian/Refresh.bat (limited to 'langpacks/russian') 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 -- cgit v1.2.3