Skip to content

Commit

Permalink
Add Chinese lang support
Browse files Browse the repository at this point in the history
Move the Korean files into Regional folder under py, and add
Chinese lang support
  • Loading branch information
edanmzh committed Jul 24, 2020
1 parent 69aa3c3 commit a2064f9
Show file tree
Hide file tree
Showing 37 changed files with 16,399 additions and 167 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
77 changes: 77 additions & 0 deletions py/Regional/ZH/Interface.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
@ECHO OFF
:TOP_INIT
set "prog_dir=%~dp0"
set "bat_name=%~n0"
set "ofile_name=%bat_name%_options.cmd"
Title NSC_Builder v1.00c -- Profile: %ofile_name% -- by JulesOnTheRoad
set "list_folder=%prog_dir%lists"
::-----------------------------------------------------
::编辑此变量以链接其他选项文件
::-----------------------------------------------------
set "op_file=%~dp0zconfig\%ofile_name%"

::-----------------------------------------------------
::从选项文件复制选项
::-----------------------------------------------------
setlocal
if exist "%op_file%" call "%op_file%"
endlocal & (
REM environment
set "pycommand=%pycommand%"
set "start_minimized=%start_minimized%"
set "browserpath=%browserpath%"
set "videoplayback=%videoplayback%"
set "height=%height%"
set "width=%width%"
set "port=%port%"
set "host=%host%"
set "noconsole=%noconsole%"
set "pycommandw=%pycommandw%"
REM 程序
set "squirrel=%nut%"
REM 文件
set "dec_keys=%dec_keys%"
)
::-----------------------------------------------------
::设置绝对路径
::-----------------------------------------------------
::程序完整路径
if exist "%~dp0%squirrel%" set "squirrel=%~dp0%squirrel%"

::重要文件完整路径
if exist "%~dp0%dec_keys%" set "dec_keys=%~dp0%dec_keys%"
::输出文件夹
CD /d "%~dp0"
if not exist "%dec_keys%" ( goto missing_things )

if "%start_minimized%" EQU "yes" ( goto minimize )
goto start
:minimize
if not "%1" == "min" start /MIN cmd /c %0 min & exit/b >nul 2>&1
:start
if "%noconsole%" == "false" (%pycommand% "%squirrel%" -lib_call nutdb check_files )
if "%noconsole%" == "false" goto n1
start %pycommandw% "%squirrel%" -lib_call workers back_check_files
start %pycommandw% "%squirrel%" -lib_call workers scrape_local_libs
start %pycommandw% "%squirrel%" -lib_call workers scrape_remote_libs
:n1
if "%noconsole%" == "false" (%pycommand% "%squirrel%" -lib_call Interface start -xarg "%browserpath%" "%videoplayback%" "%height%" "%width%" "%port%" "%host%" )
if "%noconsole%" == "false" goto salida
start %pycommandw% "%squirrel%" -lib_call Interface start -xarg "%browserpath%" "%videoplayback%" "%height%" "%width%" "%port%" "%host%" "%noconsole%"
goto salida

:missing_things
echo ....................................
echo 您缺少以下内容:
echo ....................................
echo.
::文件完整路径
if not exist "%dec_keys%" echo - "keys.txt"文件指向不正确或者丢失。
echo.
pause
echo 程序即将退出
PING -n 2 127.0.0.1 >NUL 2>&1
goto salida
:salida
::暂停
exit
Loading

0 comments on commit a2064f9

Please sign in to comment.