-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@echo off | ||
setlocal EnableDelayedExpansion | ||
|
||
::These variables can be change by yourself | ||
set SEVENZIP_HOME="C:\Program Files\7-Zip" | ||
set TRANSLATION_LANGUAGE=Chinese | ||
::End | ||
|
||
set TARGET_FOLDER=target | ||
set TRANSLATION_LANGUAGE_NAME=%TRANSLATION_LANGUAGE% | ||
|
||
for %%a in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do ( | ||
set "TRANSLATION_LANGUAGE_NAME=!TRANSLATION_LANGUAGE_NAME:%%a=%%a!" | ||
) | ||
|
||
cd %TARGET_FOLDER% | ||
if exist "English" ren English %TRANSLATION_LANGUAGE% | ||
if exist "english_startup.csv" ren english_startup.csv %TRANSLATION_LANGUAGE_NAME%_startup.csv | ||
cd %TRANSLATION_LANGUAGE% | ||
if exist "english.csv" ren english.csv %TRANSLATION_LANGUAGE_NAME%.csv | ||
if exist "english_dnd.csv" ren english_dnd.csv %TRANSLATION_LANGUAGE_NAME%_dnd.csv | ||
|
||
cd .. | ||
if not exist "README.md" copy ..\README.md .\ | ||
if not exist "%TRANSLATION_LANGUAGE_NAME%.zip" %SEVENZIP_HOME%\7z.exe a %TRANSLATION_LANGUAGE_NAME%.zip * | ||
|
||
@echo Finished! | ||
pause |