~修复多语言化导致的一系列显示错误

This commit is contained in:
juewuy
2026-04-04 18:44:47 +08:00
parent cff3479213
commit c304ec8271
13 changed files with 223 additions and 136 deletions

View File

@@ -11,9 +11,11 @@ TOOLS_ENABLE="Enable"
TOOLS_CONFIGURED="Configured"
TOOLS_SSH_ONLY_OPENWRT="This feature only works on OpenWrt devices and does not depend on services"
TOOLS_SSH_UNSUPPORTED_SYSTEM="This feature does not support mirrored systems like Redmi AX6S. Do not try it!"
TOOLS_SSH_PORT_ITEM="1) \033[32mChange\033[0m WAN SSH port: \033[36m$ssh_port\033[0m"
TOOLS_SSH_PORT_ITEM_PREFIX="1) \033[32mChange\033[0m WAN SSH port:"
TOOLS_SSH_PORT_ITEM_SUFFIX=""
TOOLS_SSH_PASS_ITEM="2) \033[32mChange\033[0m SSH password (enter twice, then press Enter)"
TOOLS_SSH_TOGGLE_ITEM="3) \033[33m$ssh_ol\033[0m WAN SSH access"
TOOLS_SSH_TOGGLE_ITEM_PREFIX="3) "
TOOLS_SSH_TOGGLE_ITEM_SUFFIX=" WAN SSH access"
TOOLS_PROMPT_PORT="Please enter a port number (1000-65535)> "
TOOLS_WARN_COMPAT="This page may not be compatible with all Linux devices. Use at your own discretion!"
TOOLS_DISK_USAGE="Disk usage / current directory:"
@@ -21,10 +23,14 @@ TOOLS_MENU_TEST_ITEM="1) ShellCrash \033[33mTest Menu\033[0m"
TOOLS_MENU_GUIDE_ITEM="2) ShellCrash \033[32mGetting Started\033[0m"
TOOLS_MENU_LOG_ITEM="3) \033[36mLogs and Push Tools\033[0m"
TOOLS_MENU_SSH_ITEM="4) \033[32mConfigure\033[0m WAN SSH access"
TOOLS_MENU_MI_UPDATE_ITEM="5) \033[33m$mi_update\033[0m Xiaomi system auto-update"
TOOLS_MENU_MI_AUTO_SSH_ITEM="6) Xiaomi device SSH hardening —— \033[$mi_mi_autoSSH_type \033[0m"
TOOLS_MENU_MI_TUN_FIX_ITEM="8) Xiaomi device Tun module repair —— \033[$mi_tunfix \033[0m"
TOOLS_MI_UPDATE_MSG="Xiaomi router auto-update has been \033[33m$mi_update\033[0m. If it does not take effect, sync the setting in the official app!"
TOOLS_MENU_MI_UPDATE_ITEM_PREFIX="5) "
TOOLS_MENU_MI_UPDATE_ITEM_SUFFIX=" Xiaomi system auto-update"
TOOLS_MENU_MI_AUTO_SSH_ITEM_PREFIX="6) Xiaomi device SSH hardening —— "
TOOLS_MENU_MI_AUTO_SSH_ITEM_SUFFIX=""
TOOLS_MENU_MI_TUN_FIX_ITEM_PREFIX="8) Xiaomi device Tun module repair —— "
TOOLS_MENU_MI_TUN_FIX_ITEM_SUFFIX=""
TOOLS_MI_UPDATE_MSG_PREFIX="Xiaomi router auto-update has been "
TOOLS_MI_UPDATE_MSG_SUFFIX=". If it does not take effect, sync the setting in the official app!"
TOOLS_UNSUPPORTED_DEVICE="Unsupported device!"
TOOLS_FETCHING_SCRIPT="Fetching online script..."
TOOLS_DOWNLOAD_FAIL="File download failed!"
@@ -46,16 +52,25 @@ TOOLS_AUTO_SSH_WARN2="If you have issues, please report in the group:"
TOOLS_AUTO_SSH_PWD_HINT1="Please enter the SSH password to restore (current password will not be affected)"
TOOLS_AUTO_SSH_PWD_HINT2="(Press Enter to skip)"
TOOLS_AUTO_SSH_INPUT="Please enter> "
TOOLS_LOG_TG="1) Telegram push\t——\033[$stat_TG\033[0m"
TOOLS_LOG_DEER="2) PushDeer push\t——\033[$stat_Deer\033[0m"
TOOLS_LOG_BARK="3) Bark push-IOS\t——\033[$stat_bark\033[0m"
TOOLS_LOG_PO="4) Passover push\t——\033[$stat_Po\033[0m"
TOOLS_LOG_PP="5) PushPlus push\t——\033[$stat_PP\033[0m"
TOOLS_LOG_SYNO="6) SynoChat push\t——\033[$stat_SynoChat\033[0m"
TOOLS_LOG_GOTIFY="7) Gotify push\t ——\033[$stat_Gotify\033[0m"
TOOLS_LOG_TG_PREFIX="1) Telegram push\t——"
TOOLS_LOG_TG_SUFFIX=""
TOOLS_LOG_DEER_PREFIX="2) PushDeer push\t——"
TOOLS_LOG_DEER_SUFFIX=""
TOOLS_LOG_BARK_PREFIX="3) Bark push-IOS\t——"
TOOLS_LOG_BARK_SUFFIX=""
TOOLS_LOG_PO_PREFIX="4) Passover push\t——"
TOOLS_LOG_PO_SUFFIX=""
TOOLS_LOG_PP_PREFIX="5) PushPlus push\t——"
TOOLS_LOG_PP_SUFFIX=""
TOOLS_LOG_SYNO_PREFIX="6) SynoChat push\t——"
TOOLS_LOG_SYNO_SUFFIX=""
TOOLS_LOG_GOTIFY_PREFIX="7) Gotify push\t ——"
TOOLS_LOG_GOTIFY_SUFFIX=""
TOOLS_LOG_VIEW="a) View \033[36mruntime logs\033[0m"
TOOLS_LOG_TASK="b) Push task logs\t——\033[$stat_task\033[0m"
TOOLS_LOG_DEVICE="c) Set device name\t——\033[$device_s\033[0m"
TOOLS_LOG_TASK_PREFIX="b) Push task logs\t——"
TOOLS_LOG_TASK_SUFFIX=""
TOOLS_LOG_DEVICE_PREFIX="c) Set device name\t——"
TOOLS_LOG_DEVICE_SUFFIX=""
TOOLS_LOG_CLEAR="d) Clear log files"
TOOLS_CONFIRM_CLOSE_TG="Are you sure you want to disable TG log push?"
TOOLS_CONFIRM_CLOSE_DEER="Are you sure you want to disable PushDeer log push?"
@@ -120,17 +135,22 @@ TOOLS_PROXY_NOTE="Note: depends on curl (wget is not supported), and the test re
TOOLS_PROXY_OK="Connection successful! Response time: "
TOOLS_PROXY_TIMEOUT="Connection timed out! Please retry or check the node configuration!"
TOOLS_DEBUG_WARN1="Note: Debug mode will stop the original kernel service"
TOOLS_DEBUG_WARN2="Background log path: \033[32m$TMPDIR/debug.log\033[0m"
TOOLS_DEBUG_WARN2_PREFIX="Background log path: "
TOOLS_DEBUG_WARN2_SUFFIX=""
TOOLS_DEBUG_WARN3="For long-running background monitoring, error is recommended as the log level to avoid oversized files!"
TOOLS_DEBUG_WARN4="You can also use: \033[33mcrash -s debug 'warning'\033[0m to select another log level"
TOOLS_DEBUG_ITEM_1="1) Only test the availability of the \033[32m$config_tmp\033[0m config file"
TOOLS_DEBUG_ITEM_2="2) Run the \033[32m$config_tmp\033[0m config file in foreground without firewall hijacking (\033[33muse Ctrl+C to stop manually\033[0m)"
TOOLS_DEBUG_ITEM_1_PREFIX="1) Only test the availability of the "
TOOLS_DEBUG_ITEM_1_SUFFIX=" config file"
TOOLS_DEBUG_ITEM_2_PREFIX="2) Run the "
TOOLS_DEBUG_ITEM_2_SUFFIX=" config file in foreground without firewall hijacking (use Ctrl+C to stop manually)"
TOOLS_DEBUG_ITEM_3="3) Run the full startup flow in background with firewall hijacking, log level: \033[31merror\033[0m"
TOOLS_DEBUG_ITEM_4="4) Run the full startup flow in background with firewall hijacking, log level: \033[32minfo\033[0m"
TOOLS_DEBUG_ITEM_5="5) Run the full startup flow in background with firewall hijacking, log level: \033[33mdebug\033[0m"
TOOLS_DEBUG_ITEM_6="6) Run the full startup flow in background with firewall hijacking and print error logs to flash: \033[32m$CRASHDIR/debug.log\033[0m"
TOOLS_DEBUG_ITEM_6_PREFIX="6) Run the full startup flow in background with firewall hijacking and print error logs to flash: "
TOOLS_DEBUG_ITEM_6_SUFFIX=""
TOOLS_DEBUG_ITEM_8="8) Run the full startup flow in background, print execution errors and inspect context, then close the process"
TOOLS_DEBUG_ITEM_9="9) Merge the json files under \033[32m$config_tmp\033[0m into $TMPDIR/debug.json"
TOOLS_DEBUG_ITEM_9_PREFIX="9) Merge the json files under "
TOOLS_DEBUG_ITEM_9_SUFFIX=" into "
TOOLS_FLASH_WARN="Frequent flash writes will shorten flash lifespan. Unless you are dealing with a bug that would otherwise crash or reboot the device, do not use this feature!"
TOOLS_FLASH_CONFIRM="Confirm enabling this feature?"
TOOLS_MERGE_OK="Merged successfully!"