From 97ce2c49182d7e4ea5988a4f9202f22a6a590b1c Mon Sep 17 00:00:00 2001 From: UUBulb <35923940+uubulb@users.noreply.github.com> Date: Sat, 14 Dec 2024 17:03:43 +0800 Subject: [PATCH] Ask before uninstallation (#32) --- install.sh | 22 ++ install_en.sh | 22 ++ nezha/template.pot | 214 +++++++++--------- nezha/template.sh | 22 ++ nezha/translations/en_US/LC_MESSAGES/nezha.mo | Bin 7611 -> 7891 bytes nezha/translations/en_US/LC_MESSAGES/nezha.po | 158 +++++++------ nezha/translations/zh_CN/LC_MESSAGES/nezha.mo | Bin 7234 -> 7487 bytes nezha/translations/zh_CN/LC_MESSAGES/nezha.po | 152 +++++++------ 8 files changed, 343 insertions(+), 247 deletions(-) diff --git a/install.sh b/install.sh index 269b0a0..eac39ad 100644 --- a/install.sh +++ b/install.sh @@ -14,6 +14,10 @@ err() { printf "${red}%s${plain}\n" "$*" >&2 } +warn() { + printf "${red}%s${plain}\n" "$*" +} + success() { printf "${green}%s${plain}\n" "$*" } @@ -453,6 +457,7 @@ restart_and_update() { restart_and_update_docker() { sudo $DOCKER_COMPOSE_COMMAND -f ${NZ_DASHBOARD_PATH}/docker-compose.yaml pull sudo $DOCKER_COMPOSE_COMMAND -f ${NZ_DASHBOARD_PATH}/docker-compose.yaml down + sleep 2 sudo $DOCKER_COMPOSE_COMMAND -f ${NZ_DASHBOARD_PATH}/docker-compose.yaml up -d } @@ -491,6 +496,8 @@ restart_and_update_standalone() { sudo wget -qO $NZ_DASHBOARD_PATH/app.zip "$NZ_DASHBOARD_URL" >/dev/null 2>&1 && sudo unzip -qq -o $NZ_DASHBOARD_PATH/app.zip -d $NZ_DASHBOARD_PATH && sudo mv $NZ_DASHBOARD_PATH/dashboard-linux-$os_arch $NZ_DASHBOARD_PATH/app && sudo rm $NZ_DASHBOARD_PATH/app.zip sudo chmod +x $NZ_DASHBOARD_PATH/app + sleep 2 + if [ "$INIT" = "systemd" ]; then sudo systemctl enable nezha-dashboard sudo systemctl restart nezha-dashboard @@ -529,6 +536,21 @@ show_dashboard_log_standalone() { uninstall() { echo "> 卸载" + warn "警告:卸载前请备份您的文件。" + printf "继续? [y/N] " + read -r input + case $input in + [yY][eE][sS] | [yY]) + info "卸载中…" + ;; + [nN][oO] | [nN]) + return + ;; + *) + return + ;; + esac + if [ "$IS_DOCKER_NEZHA" = 1 ]; then uninstall_dashboard_docker elif [ "$IS_DOCKER_NEZHA" = 0 ]; then diff --git a/install_en.sh b/install_en.sh index 1092e24..cea3256 100644 --- a/install_en.sh +++ b/install_en.sh @@ -14,6 +14,10 @@ err() { printf "${red}%s${plain}\n" "$*" >&2 } +warn() { + printf "${red}%s${plain}\n" "$*" +} + success() { printf "${green}%s${plain}\n" "$*" } @@ -453,6 +457,7 @@ restart_and_update() { restart_and_update_docker() { sudo $DOCKER_COMPOSE_COMMAND -f ${NZ_DASHBOARD_PATH}/docker-compose.yaml pull sudo $DOCKER_COMPOSE_COMMAND -f ${NZ_DASHBOARD_PATH}/docker-compose.yaml down + sleep 2 sudo $DOCKER_COMPOSE_COMMAND -f ${NZ_DASHBOARD_PATH}/docker-compose.yaml up -d } @@ -491,6 +496,8 @@ restart_and_update_standalone() { sudo wget -qO $NZ_DASHBOARD_PATH/app.zip "$NZ_DASHBOARD_URL" >/dev/null 2>&1 && sudo unzip -qq -o $NZ_DASHBOARD_PATH/app.zip -d $NZ_DASHBOARD_PATH && sudo mv $NZ_DASHBOARD_PATH/dashboard-linux-$os_arch $NZ_DASHBOARD_PATH/app && sudo rm $NZ_DASHBOARD_PATH/app.zip sudo chmod +x $NZ_DASHBOARD_PATH/app + sleep 2 + if [ "$INIT" = "systemd" ]; then sudo systemctl enable nezha-dashboard sudo systemctl restart nezha-dashboard @@ -529,6 +536,21 @@ show_dashboard_log_standalone() { uninstall() { echo "> Uninstall" + warn "WARNING: Please backup your files before proceeding uninstallation." + printf "Proceed? [y/N] " + read -r input + case $input in + [yY][eE][sS] | [yY]) + info "Uninstalling..." + ;; + [nN][oO] | [nN]) + return + ;; + *) + return + ;; + esac + if [ "$IS_DOCKER_NEZHA" = 1 ]; then uninstall_dashboard_docker elif [ "$IS_DOCKER_NEZHA" = 0 ]; then diff --git a/nezha/template.pot b/nezha/template.pot index c338ee9..3227dd1 100644 --- a/nezha/template.pot +++ b/nezha/template.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-12-03 13:42+0800\n" +"POT-Creation-Date: 2024-12-14 15:39+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,283 +17,295 @@ msgstr "" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" -#: nezha/template.sh:35 +#: nezha/template.sh:39 msgid "" "ERROR: sudo is not installed on the system, the action cannot be proceeded." msgstr "" -#: nezha/template.sh:47 +#: nezha/template.sh:51 msgid "Run '$*' failed." msgstr "" -#: nezha/template.sh:57 +#: nezha/template.sh:61 msgid "$dep not found, please install it first." msgstr "" -#: nezha/template.sh:117 +#: nezha/template.sh:121 msgid "Unknown architecture: $uname" msgstr "" -#: nezha/template.sh:130 nezha/template.sh:144 +#: nezha/template.sh:134 nezha/template.sh:148 msgid "Docker image with nezha repository exists:" msgstr "" -#: nezha/template.sh:136 nezha/template.sh:150 +#: nezha/template.sh:140 nezha/template.sh:154 msgid "No Docker images with the nezha repository were found." msgstr "" -#: nezha/template.sh:163 +#: nezha/template.sh:167 msgid "Select your installation method:" msgstr "" -#: nezha/template.sh:165 +#: nezha/template.sh:169 msgid "2. Standalone" msgstr "" -#: nezha/template.sh:167 +#: nezha/template.sh:171 msgid "Please enter [1-2]: " msgstr "" -#: nezha/template.sh:179 +#: nezha/template.sh:183 msgid "Please enter the correct number [1-2]" msgstr "" -#: nezha/template.sh:196 +#: nezha/template.sh:200 msgid "" "According to the information provided by various geoip api, the current IP " "may be in China" msgstr "" -#: nezha/template.sh:197 +#: nezha/template.sh:201 msgid "" "Will the installation be done with a Chinese Mirror? [Y/n] (Custom Mirror " "Input 3): " msgstr "" -#: nezha/template.sh:201 +#: nezha/template.sh:205 msgid "Use Chinese Mirror" msgstr "" -#: nezha/template.sh:206 nezha/template.sh:220 +#: nezha/template.sh:210 nezha/template.sh:224 msgid "Do Not Use Chinese Mirror" msgstr "" -#: nezha/template.sh:210 +#: nezha/template.sh:214 msgid "Use Custom Mirror" msgstr "" -#: nezha/template.sh:211 +#: nezha/template.sh:215 msgid "" "Please enter a custom image (e.g. :dn-dao-github-mirror.daocloud.io). If " "left blank, it won't be used: " msgstr "" -#: nezha/template.sh:244 +#: nezha/template.sh:248 msgid "> Update Script" msgstr "" -#: nezha/template.sh:246 +#: nezha/template.sh:250 msgid "https://${GITHUB_RAW_URL}/install_en.sh" msgstr "" -#: nezha/template.sh:249 nezha/template.sh:266 +#: nezha/template.sh:253 nezha/template.sh:270 msgid "Execute new script after 3s" msgstr "" -#: nezha/template.sh:274 +#: nezha/template.sh:278 msgid "* Press Enter to return to the main menu *" msgstr "" -#: nezha/template.sh:279 +#: nezha/template.sh:283 msgid "> Install" msgstr "" -#: nezha/template.sh:285 +#: nezha/template.sh:289 msgid "" "You may have already installed the dashboard, repeated installation will " "overwrite the data, please pay attention to backup." msgstr "" -#: nezha/template.sh:286 +#: nezha/template.sh:290 msgid "Exit the installation? [Y/n]" msgstr "" -#: nezha/template.sh:290 nezha/template.sh:297 +#: nezha/template.sh:294 nezha/template.sh:301 msgid "Exit the installation" msgstr "" -#: nezha/template.sh:294 +#: nezha/template.sh:298 msgid "Continue" msgstr "" -#: nezha/template.sh:311 +#: nezha/template.sh:315 msgid "Modify Configuration" msgstr "" -#: nezha/template.sh:315 +#: nezha/template.sh:319 msgid "Download Docker Script" msgstr "" -#: nezha/template.sh:318 nezha/template.sh:329 +#: nezha/template.sh:322 nezha/template.sh:333 msgid "" "Script failed to get, please check if the network can link ${GITHUB_RAW_URL}" msgstr "" -#: nezha/template.sh:322 +#: nezha/template.sh:326 msgid "" "Please install docker-compose manually. https://docs.docker.com/compose/" "install/linux/" msgstr "" -#: nezha/template.sh:333 +#: nezha/template.sh:337 msgid "Please enter the site title: " msgstr "" -#: nezha/template.sh:335 +#: nezha/template.sh:339 msgid "Please enter the exposed port: (default 8008)" msgstr "" -#: nezha/template.sh:337 +#: nezha/template.sh:341 msgid "" "Please specify the preset nezha-agent host in install commands: (e.g. " "example.com:443)" msgstr "" -#: nezha/template.sh:339 +#: nezha/template.sh:343 msgid "Do you prefer to connect Agent via TLS? [y/N]" msgstr "" -#: nezha/template.sh:352 +#: nezha/template.sh:356 msgid "Please specify the backend locale" msgstr "" -#: nezha/template.sh:357 +#: nezha/template.sh:361 msgid "Please enter [1-3]: " msgstr "" -#: nezha/template.sh:373 +#: nezha/template.sh:377 msgid "Please enter the correct number [1-3]" msgstr "" -#: nezha/template.sh:379 +#: nezha/template.sh:383 msgid "All options cannot be empty" msgstr "" -#: nezha/template.sh:405 +#: nezha/template.sh:409 msgid "Downloading service file" msgstr "" -#: nezha/template.sh:409 nezha/template.sh:415 +#: nezha/template.sh:413 nezha/template.sh:419 msgid "" "File failed to get, please check if the network can link ${GITHUB_RAW_URL}" msgstr "" -#: nezha/template.sh:423 +#: nezha/template.sh:427 msgid "" "Dashboard configuration modified successfully, please wait for Dashboard " "self-restart to take effect" msgstr "" -#: nezha/template.sh:433 +#: nezha/template.sh:437 msgid "> Restart and Update" msgstr "" -#: nezha/template.sh:442 +#: nezha/template.sh:446 msgid "Nezha Monitoring Restart Successful" msgstr "" -#: nezha/template.sh:443 +#: nezha/template.sh:447 msgid "Default address: domain:site_access_port" msgstr "" -#: nezha/template.sh:445 +#: nezha/template.sh:449 msgid "" "The restart failed, probably because the boot time exceeded two seconds, " "please check the log information later" msgstr "" -#: nezha/template.sh:472 +#: nezha/template.sh:477 msgid "" "Fail to obtain Dashboard version, please check if the network can link " "https://api.github.com/repos/nezhahq/nezha/releases/latest" msgstr "" -#: nezha/template.sh:475 +#: nezha/template.sh:480 msgid "The current latest version is: ${_version}" msgstr "" -#: nezha/template.sh:504 +#: nezha/template.sh:511 msgid "> View Log" msgstr "" -#: nezha/template.sh:530 +#: nezha/template.sh:537 msgid "> Uninstall" msgstr "" -#: nezha/template.sh:569 -msgid "Nezha Monitor Management Script Usage: " +#: nezha/template.sh:539 +msgid "WARNING: Please backup your files before proceeding uninstallation." msgstr "" -#: nezha/template.sh:571 -msgid "./nezha.sh - Show Menu" +#: nezha/template.sh:540 +msgid "Proceed? [y/N] " msgstr "" -#: nezha/template.sh:572 -msgid "./nezha.sh install - Install Dashboard" -msgstr "" - -#: nezha/template.sh:573 -msgid "./nezha.sh modify_config - Modify Dashboard Configuration" -msgstr "" - -#: nezha/template.sh:574 -msgid "./nezha.sh restart_and_update - Restart and Update the Dashboard" -msgstr "" - -#: nezha/template.sh:575 -msgid "./nezha.sh show_log - View Dashboard Log" -msgstr "" - -#: nezha/template.sh:576 -msgid "./nezha.sh uninstall - Uninstall Dashboard" -msgstr "" - -#: nezha/template.sh:581 -msgid "${green}Nezha Monitor Management Script${plain}" -msgstr "" - -#: nezha/template.sh:583 -msgid "${green}1.${plain} Install Dashboard" -msgstr "" - -#: nezha/template.sh:584 -msgid "${green}2.${plain} Modify Dashboard Configuration" -msgstr "" - -#: nezha/template.sh:585 -msgid "${green}3.${plain} Restart and Update Dashboard" -msgstr "" - -#: nezha/template.sh:586 -msgid "${green}4.${plain} View Dashboard Log" -msgstr "" - -#: nezha/template.sh:587 -msgid "${green}5.${plain} Uninstall Dashboard" -msgstr "" - -#: nezha/template.sh:589 -msgid "${green}6.${plain} Update Script" +#: nezha/template.sh:544 +msgid "Uninstalling..." msgstr "" #: nezha/template.sh:591 -msgid "${green}0.${plain} Exit Script" +msgid "Nezha Monitor Management Script Usage: " msgstr "" #: nezha/template.sh:593 +msgid "./nezha.sh - Show Menu" +msgstr "" + +#: nezha/template.sh:594 +msgid "./nezha.sh install - Install Dashboard" +msgstr "" + +#: nezha/template.sh:595 +msgid "./nezha.sh modify_config - Modify Dashboard Configuration" +msgstr "" + +#: nezha/template.sh:596 +msgid "./nezha.sh restart_and_update - Restart and Update the Dashboard" +msgstr "" + +#: nezha/template.sh:597 +msgid "./nezha.sh show_log - View Dashboard Log" +msgstr "" + +#: nezha/template.sh:598 +msgid "./nezha.sh uninstall - Uninstall Dashboard" +msgstr "" + +#: nezha/template.sh:603 +msgid "${green}Nezha Monitor Management Script${plain}" +msgstr "" + +#: nezha/template.sh:605 +msgid "${green}1.${plain} Install Dashboard" +msgstr "" + +#: nezha/template.sh:606 +msgid "${green}2.${plain} Modify Dashboard Configuration" +msgstr "" + +#: nezha/template.sh:607 +msgid "${green}3.${plain} Restart and Update Dashboard" +msgstr "" + +#: nezha/template.sh:608 +msgid "${green}4.${plain} View Dashboard Log" +msgstr "" + +#: nezha/template.sh:609 +msgid "${green}5.${plain} Uninstall Dashboard" +msgstr "" + +#: nezha/template.sh:611 +msgid "${green}6.${plain} Update Script" +msgstr "" + +#: nezha/template.sh:613 +msgid "${green}0.${plain} Exit Script" +msgstr "" + +#: nezha/template.sh:615 msgid "Please enter [0-6]: " msgstr "" -#: nezha/template.sh:617 +#: nezha/template.sh:639 msgid "Please enter the correct number [0-6]" msgstr "" diff --git a/nezha/template.sh b/nezha/template.sh index 07b777c..a087d7d 100644 --- a/nezha/template.sh +++ b/nezha/template.sh @@ -14,6 +14,10 @@ err() { printf "${red}%s${plain}\n" "$*" >&2 } +warn() { + printf "${red}%s${plain}\n" "$*" +} + success() { printf "${green}%s${plain}\n" "$*" } @@ -453,6 +457,7 @@ restart_and_update() { restart_and_update_docker() { sudo $DOCKER_COMPOSE_COMMAND -f ${NZ_DASHBOARD_PATH}/docker-compose.yaml pull sudo $DOCKER_COMPOSE_COMMAND -f ${NZ_DASHBOARD_PATH}/docker-compose.yaml down + sleep 2 sudo $DOCKER_COMPOSE_COMMAND -f ${NZ_DASHBOARD_PATH}/docker-compose.yaml up -d } @@ -491,6 +496,8 @@ restart_and_update_standalone() { sudo wget -qO $NZ_DASHBOARD_PATH/app.zip "$NZ_DASHBOARD_URL" >/dev/null 2>&1 && sudo unzip -qq -o $NZ_DASHBOARD_PATH/app.zip -d $NZ_DASHBOARD_PATH && sudo mv $NZ_DASHBOARD_PATH/dashboard-linux-$os_arch $NZ_DASHBOARD_PATH/app && sudo rm $NZ_DASHBOARD_PATH/app.zip sudo chmod +x $NZ_DASHBOARD_PATH/app + sleep 2 + if [ "$INIT" = "systemd" ]; then sudo systemctl enable nezha-dashboard sudo systemctl restart nezha-dashboard @@ -529,6 +536,21 @@ show_dashboard_log_standalone() { uninstall() { echo _("> Uninstall") + warn _("WARNING: Please backup your files before proceeding uninstallation.") + printf _("Proceed? [y/N] ") + read -r input + case $input in + [yY][eE][sS] | [yY]) + info _("Uninstalling...") + ;; + [nN][oO] | [nN]) + return + ;; + *) + return + ;; + esac + if [ "$IS_DOCKER_NEZHA" = 1 ]; then uninstall_dashboard_docker elif [ "$IS_DOCKER_NEZHA" = 0 ]; then diff --git a/nezha/translations/en_US/LC_MESSAGES/nezha.mo b/nezha/translations/en_US/LC_MESSAGES/nezha.mo index a3af25d64611951dced67f9fd931f7a66ba59b06..66c1935f447a55b7c8f6a4f566391086c8575453 100644 GIT binary patch delta 1783 zcmciC-Afcv7{~FWWor47*^8Ryq~>d_nr+saxxOWpn3Q!<1g$!Sw78~8McPtbgai?o zcajA~l5`P97Znr{brC_}MRrpJ-dRu=VG%*!-|Ps{AJDfA%jTewx z&2{X=J6MPb+?>wyjhBNB4D7*T9K@A4j%oN5cjGi_!aSb30{y6n9l-P0hr94QYJvWQ zNF?@SF6V=|8E>MlPfMO}zPJO?Z1WiBt56{hyWVzvjT;#MhFO@M#KW-~73yp5`9oAh z68Tw*S=fvowD2qz<0yth9K7OyKU2xw+EEiO!%j@WQ&^8f*oJR#0CTulfMe*5Vjfgz zfAi0(mHgDmMs}cTC5UCZA5|-FQ;EMOm}5XY$R;kOSc_WW2`s`CsWRpXRvRME-uoQ=}3}>(i7qJFcu@bXV%qlR9 zwPsPf%;Xq1W-*K(Q48m%nuYK*?#3}p!&|r)XK*Jz#tfXt9ry+Za0T-)$U{u67YFei zmg79;@_t)o;^)RDDnmc3WaD|pG6-y?IQ7p!8yoX9~9m~+Yi_g%H z4R{9i`MBi$cE`E#1c$hOi7Igo+m>e?Z=w>N!vcJZ{rCe_>dy4U^(FLhy?`fi34NGH znJTdbBRGUn?O=t87k}a&OyTK1%*7GBirUE<*1OCy`I1W5#Y5_eYp6tTV-TNW0N1b- z^D`6Acc2ozf;BjiN&S`40yiq~3(^$kr9SG3P7LE1YT*|c!avBSt%`Ht)T|M?WgSS> z?L4v<8$?dYhEY8cMIGS>R8RcQqW)@%O>SsMgB*M=PM{y}qY_+3{+Z<@dLjpVxD22c z96^?_X;eiY;wZkxZahUJDZyz}B_E)AVmZpBfysvRg#d5Y7f(12pn4*LD)EZrU&rG8 ziA1|lJ#hp3aSB!H@6L5PS#o-I5!Dmd(TCARCfea=j9>=oYX@o!j?ZRMJ@E+p@HviP zHgD5TCeeil2>oPeGdcp6iw{mTz8-nR*Q-MvwKJl|?@j!ST9InShf1T}=*1ex6WDfa zA=Cpp9{y0QgwUYLt&M0RboLa;+=Qy2M7KtjGf_3O<6Cxa9KmX5t|ruZs_C|ds-&*1 zC)C~QmqtR3sAlpJ8tQm{?BWfqYc*(C6NYE9$epQ->@abVI7+k=DMT|tA6Q}RtGgsE kR*;eJn(Xql#g;t1uGB!tR~u@o3&u*kzy5zVx#ZdS2ll6g#sB~S diff --git a/nezha/translations/en_US/LC_MESSAGES/nezha.po b/nezha/translations/en_US/LC_MESSAGES/nezha.po index 07e579b..20b73a1 100644 --- a/nezha/translations/en_US/LC_MESSAGES/nezha.po +++ b/nezha/translations/en_US/LC_MESSAGES/nezha.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-12-03 13:42+0800\n" -"PO-Revision-Date: 2024-12-03 13:42+0800\n" +"POT-Creation-Date: 2024-12-14 15:39+0800\n" +"PO-Revision-Date: 2024-12-14 15:39+0800\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: en_US\n" @@ -17,49 +17,49 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: nezha/template.sh:35 +#: nezha/template.sh:39 msgid "" "ERROR: sudo is not installed on the system, the action cannot be proceeded." msgstr "" "ERROR: sudo is not installed on the system, the action cannot be proceeded." -#: nezha/template.sh:47 +#: nezha/template.sh:51 msgid "Run '$*' failed." msgstr "Run '$*' failed." -#: nezha/template.sh:57 +#: nezha/template.sh:61 msgid "$dep not found, please install it first." msgstr "$dep not found, please install it first." -#: nezha/template.sh:117 +#: nezha/template.sh:121 msgid "Unknown architecture: $uname" msgstr "Unknown architecture: $uname" -#: nezha/template.sh:130 nezha/template.sh:144 +#: nezha/template.sh:134 nezha/template.sh:148 msgid "Docker image with nezha repository exists:" msgstr "Docker image with nezha repository exists:" -#: nezha/template.sh:136 nezha/template.sh:150 +#: nezha/template.sh:140 nezha/template.sh:154 msgid "No Docker images with the nezha repository were found." msgstr "No Docker images with the nezha repository were found." -#: nezha/template.sh:163 +#: nezha/template.sh:167 msgid "Select your installation method:" msgstr "Select your installation method:" -#: nezha/template.sh:165 +#: nezha/template.sh:169 msgid "2. Standalone" msgstr "2. Standalone" -#: nezha/template.sh:167 +#: nezha/template.sh:171 msgid "Please enter [1-2]: " msgstr "Please enter [1-2]: " -#: nezha/template.sh:179 +#: nezha/template.sh:183 msgid "Please enter the correct number [1-2]" msgstr "Please enter the correct number [1-2]" -#: nezha/template.sh:196 +#: nezha/template.sh:200 msgid "" "According to the information provided by various geoip api, the current IP " "may be in China" @@ -67,27 +67,27 @@ msgstr "" "According to the information provided by various geoip api, the current IP " "may be in China" -#: nezha/template.sh:197 -msgid "" -"Will the installation be done with a Chinese Mirror? [Y/n] (Custom Mirror " -"Input 3): " -msgstr "" -"Will the installation be done with a Chinese Mirror? [Y/n] (Custom Mirror " -"Input 3): " - #: nezha/template.sh:201 +msgid "" +"Will the installation be done with a Chinese Mirror? [Y/n] (Custom Mirror " +"Input 3): " +msgstr "" +"Will the installation be done with a Chinese Mirror? [Y/n] (Custom Mirror " +"Input 3): " + +#: nezha/template.sh:205 msgid "Use Chinese Mirror" msgstr "Use Chinese Mirror" -#: nezha/template.sh:206 nezha/template.sh:220 +#: nezha/template.sh:210 nezha/template.sh:224 msgid "Do Not Use Chinese Mirror" msgstr "Do Not Use Chinese Mirror" -#: nezha/template.sh:210 +#: nezha/template.sh:214 msgid "Use Custom Mirror" msgstr "Use Custom Mirror" -#: nezha/template.sh:211 +#: nezha/template.sh:215 msgid "" "Please enter a custom image (e.g. :dn-dao-github-mirror.daocloud.io). If " "left blank, it won't be used: " @@ -95,27 +95,27 @@ msgstr "" "Please enter a custom image (e.g. :dn-dao-github-mirror.daocloud.io). If " "left blank, it won't be used: " -#: nezha/template.sh:244 +#: nezha/template.sh:248 msgid "> Update Script" msgstr "> Update Script" -#: nezha/template.sh:246 +#: nezha/template.sh:250 msgid "https://${GITHUB_RAW_URL}/install_en.sh" msgstr "https://${GITHUB_RAW_URL}/install_en.sh" -#: nezha/template.sh:249 nezha/template.sh:266 +#: nezha/template.sh:253 nezha/template.sh:270 msgid "Execute new script after 3s" msgstr "Execute new script after 3s" -#: nezha/template.sh:274 +#: nezha/template.sh:278 msgid "* Press Enter to return to the main menu *" msgstr "* Press Enter to return to the main menu *" -#: nezha/template.sh:279 +#: nezha/template.sh:283 msgid "> Install" msgstr "> Install" -#: nezha/template.sh:285 +#: nezha/template.sh:289 msgid "" "You may have already installed the dashboard, repeated installation will " "overwrite the data, please pay attention to backup." @@ -123,33 +123,33 @@ msgstr "" "You may have already installed the dashboard, repeated installation will " "overwrite the data, please pay attention to backup." -#: nezha/template.sh:286 +#: nezha/template.sh:290 msgid "Exit the installation? [Y/n]" msgstr "Exit the installation? [Y/n]" -#: nezha/template.sh:290 nezha/template.sh:297 +#: nezha/template.sh:294 nezha/template.sh:301 msgid "Exit the installation" msgstr "Exit the installation" -#: nezha/template.sh:294 +#: nezha/template.sh:298 msgid "Continue" msgstr "Continue" -#: nezha/template.sh:311 +#: nezha/template.sh:315 msgid "Modify Configuration" msgstr "Modify Configuration" -#: nezha/template.sh:315 +#: nezha/template.sh:319 msgid "Download Docker Script" msgstr "Download Docker Script" -#: nezha/template.sh:318 nezha/template.sh:329 +#: nezha/template.sh:322 nezha/template.sh:333 msgid "" "Script failed to get, please check if the network can link ${GITHUB_RAW_URL}" msgstr "" "Script failed to get, please check if the network can link ${GITHUB_RAW_URL}" -#: nezha/template.sh:322 +#: nezha/template.sh:326 msgid "" "Please install docker-compose manually. https://docs.docker.com/compose/" "install/linux/" @@ -157,15 +157,15 @@ msgstr "" "Please install docker-compose manually. https://docs.docker.com/compose/" "install/linux/" -#: nezha/template.sh:333 +#: nezha/template.sh:337 msgid "Please enter the site title: " msgstr "Please enter the site title: " -#: nezha/template.sh:335 +#: nezha/template.sh:339 msgid "Please enter the exposed port: (default 8008)" msgstr "Please enter the exposed port: (default 8008)" -#: nezha/template.sh:337 +#: nezha/template.sh:341 msgid "" "Please specify the preset nezha-agent host in install commands: (e.g. " "example.com:443)" @@ -173,37 +173,37 @@ msgstr "" "Please specify the preset nezha-agent host in install commands: (e.g. " "example.com:443)" -#: nezha/template.sh:339 +#: nezha/template.sh:343 msgid "Do you prefer to connect Agent via TLS? [y/N]" msgstr "Do you prefer to connect Agent via TLS? [y/N]" -#: nezha/template.sh:352 +#: nezha/template.sh:356 msgid "Please specify the backend locale" msgstr "Please specify the backend locale" -#: nezha/template.sh:357 +#: nezha/template.sh:361 msgid "Please enter [1-3]: " msgstr "Please enter [1-3]: " -#: nezha/template.sh:373 +#: nezha/template.sh:377 msgid "Please enter the correct number [1-3]" msgstr "Please enter the correct number [1-3]" -#: nezha/template.sh:379 +#: nezha/template.sh:383 msgid "All options cannot be empty" msgstr "All options cannot be empty" -#: nezha/template.sh:405 +#: nezha/template.sh:409 msgid "Downloading service file" msgstr "Downloading service file" -#: nezha/template.sh:409 nezha/template.sh:415 +#: nezha/template.sh:413 nezha/template.sh:419 msgid "" "File failed to get, please check if the network can link ${GITHUB_RAW_URL}" msgstr "" "File failed to get, please check if the network can link ${GITHUB_RAW_URL}" -#: nezha/template.sh:423 +#: nezha/template.sh:427 msgid "" "Dashboard configuration modified successfully, please wait for Dashboard " "self-restart to take effect" @@ -211,19 +211,19 @@ msgstr "" "Dashboard configuration modified successfully, please wait for Dashboard " "self-restart to take effect" -#: nezha/template.sh:433 +#: nezha/template.sh:437 msgid "> Restart and Update" msgstr "> Restart and Update" -#: nezha/template.sh:442 +#: nezha/template.sh:446 msgid "Nezha Monitoring Restart Successful" msgstr "Nezha Monitoring Restart Successful" -#: nezha/template.sh:443 +#: nezha/template.sh:447 msgid "Default address: domain:site_access_port" msgstr "Default address: domain:site_access_port" -#: nezha/template.sh:445 +#: nezha/template.sh:449 msgid "" "The restart failed, probably because the boot time exceeded two seconds, " "please check the log information later" @@ -231,7 +231,7 @@ msgstr "" "The restart failed, probably because the boot time exceeded two seconds, " "please check the log information later" -#: nezha/template.sh:472 +#: nezha/template.sh:477 msgid "" "Fail to obtain Dashboard version, please check if the network can link " "https://api.github.com/repos/nezhahq/nezha/releases/latest" @@ -239,82 +239,94 @@ msgstr "" "Fail to obtain Dashboard version, please check if the network can link " "https://api.github.com/repos/nezhahq/nezha/releases/latest" -#: nezha/template.sh:475 +#: nezha/template.sh:480 msgid "The current latest version is: ${_version}" msgstr "The current latest version is: ${_version}" -#: nezha/template.sh:504 +#: nezha/template.sh:511 msgid "> View Log" msgstr "> View Log" -#: nezha/template.sh:530 +#: nezha/template.sh:537 msgid "> Uninstall" msgstr "> Uninstall" -#: nezha/template.sh:569 +#: nezha/template.sh:539 +msgid "WARNING: Please backup your files before proceeding uninstallation." +msgstr "WARNING: Please backup your files before proceeding uninstallation." + +#: nezha/template.sh:540 +msgid "Proceed? [y/N] " +msgstr "Proceed? [y/N] " + +#: nezha/template.sh:544 +msgid "Uninstalling..." +msgstr "Uninstalling..." + +#: nezha/template.sh:591 msgid "Nezha Monitor Management Script Usage: " msgstr "Nezha Monitor Management Script Usage: " -#: nezha/template.sh:571 +#: nezha/template.sh:593 msgid "./nezha.sh - Show Menu" msgstr "./nezha.sh - Show Menu" -#: nezha/template.sh:572 +#: nezha/template.sh:594 msgid "./nezha.sh install - Install Dashboard" msgstr "./nezha.sh install - Install Dashboard" -#: nezha/template.sh:573 +#: nezha/template.sh:595 msgid "./nezha.sh modify_config - Modify Dashboard Configuration" msgstr "./nezha.sh modify_config - Modify Dashboard Configuration" -#: nezha/template.sh:574 +#: nezha/template.sh:596 msgid "./nezha.sh restart_and_update - Restart and Update the Dashboard" msgstr "./nezha.sh restart_and_update - Restart and Update the Dashboard" -#: nezha/template.sh:575 +#: nezha/template.sh:597 msgid "./nezha.sh show_log - View Dashboard Log" msgstr "./nezha.sh show_log - View Dashboard Log" -#: nezha/template.sh:576 +#: nezha/template.sh:598 msgid "./nezha.sh uninstall - Uninstall Dashboard" msgstr "./nezha.sh uninstall - Uninstall Dashboard" -#: nezha/template.sh:581 +#: nezha/template.sh:603 msgid "${green}Nezha Monitor Management Script${plain}" msgstr "${green}Nezha Monitor Management Script${plain}" -#: nezha/template.sh:583 +#: nezha/template.sh:605 msgid "${green}1.${plain} Install Dashboard" msgstr "${green}1.${plain} Install Dashboard" -#: nezha/template.sh:584 +#: nezha/template.sh:606 msgid "${green}2.${plain} Modify Dashboard Configuration" msgstr "${green}2.${plain} Modify Dashboard Configuration" -#: nezha/template.sh:585 +#: nezha/template.sh:607 msgid "${green}3.${plain} Restart and Update Dashboard" msgstr "${green}3.${plain} Restart and Update Dashboard" -#: nezha/template.sh:586 +#: nezha/template.sh:608 msgid "${green}4.${plain} View Dashboard Log" msgstr "${green}4.${plain} View Dashboard Log" -#: nezha/template.sh:587 +#: nezha/template.sh:609 msgid "${green}5.${plain} Uninstall Dashboard" msgstr "${green}5.${plain} Uninstall Dashboard" -#: nezha/template.sh:589 +#: nezha/template.sh:611 msgid "${green}6.${plain} Update Script" msgstr "${green}6.${plain} Update Script" -#: nezha/template.sh:591 +#: nezha/template.sh:613 msgid "${green}0.${plain} Exit Script" msgstr "${green}0.${plain} Exit Script" -#: nezha/template.sh:593 +#: nezha/template.sh:615 msgid "Please enter [0-6]: " msgstr "Please enter [0-6]: " -#: nezha/template.sh:617 +#: nezha/template.sh:639 msgid "Please enter the correct number [0-6]" msgstr "Please enter the correct number [0-6]" diff --git a/nezha/translations/zh_CN/LC_MESSAGES/nezha.mo b/nezha/translations/zh_CN/LC_MESSAGES/nezha.mo index 0376bb14deccc1dc4cf1f6e7f4d1d1eb8bb662de..0b0318dbfab3954b4da9b435da2f230b730edbf2 100644 GIT binary patch delta 1755 zcmZY9e`u9e9LMpqHS=0`Zn~E4&b7yNYr5&3*Lihbo!+gfSg}T}j3nsleI~=puIvXf zYTP*lu^1XRBZf4p<@AqHFqqOd%zj`X{SiUTu6}J?A{n zbDnd)=leWg)?JCFZ?4QcYbblDYp6}R#>6q1#~%X+pL4K_j=LDcYF~EXB-YX%#(ew%m*FjZ1n=O( zsLlfL<3qRxU%^T&#R23}^8qGs6xX4ji%WREiEyxyj_0rn`|we`fUEHeK7%(<0|t3& zF~(34dkK$Y7e0-@qb3;hXCv_9pgbu!eRd^25DGsi2z|U;sYOQD=uEYecz}N99 zJcX_J9lnVboUFuQ`~$C{a^MSYc5n{0a$ixle*>RSheEo5?1srF z0b&?HP3RzU%A7z&VhFVrH!*#5rB5S4{`$)oVDr7Cl^r}vjU8V^vFq>Dx2-ay^C*kO(Rr@fW-Zatqbr5DP@ z^L&B5vfWyXTd3t!y-pQWeKGmYctwe;EmMh7`M`NOq&Gotmx^*rdA5zJ?ea=6;f{|i zDOpy~(wRE!x{2M+!QPtYSDo>xC3mbBL;Vn)$ z60O}n9$zu*E1a7gotqq6m>RZE&+HBS<)0b6JU=~s`|{Y&{pT}{rLn5{vGX(UytObj mlsz+ZYHCf&4CcsW<1bu`skH9Je7uCGQ8QV>Kj`B}C73~@5Qb4R>_yd|$8x-D%hT3n z3{juwi*G^1$NFmk$Em2pD_D&WZTTZMP|jh!^t{V@85ygYK<(`mYT(nhJdaG;e6s$; z2<1ffO)J-oEV3E!v;J*l2C2}Ycz}G&8@@Vm5w+wM9EkPUk2(`)aSz@^`ZjM-9e&1q z{EZhdD=&VtZlDGJJ9_(m?dQA4hQmez#`QTIEVC#%@&m zGk6e3Q0?DiAO5iAz05)rJBDiKjN8m})DM?X4LdpNY?m28l~3VryoSB_64gPF{YyX% zCYfj?IQZ^O0mBZuTTHiZfAy%dVUuHc-?;a72WkdNI!xLp?Wt009Fv4CM3~UFXvsAQ zB`t3|(M0HMFk!>vL${K2b#yoz2yL0p%XWg> z=N`fkD(MEK5PGR8@mg`unDX9ek;hl0+*V>E5g|H=RHB(+e@$WRi>Ej}7R(AHME7~y iW3%4YgtVG)s5abG-w^X>FQ!E^3jRj@f!3%KnEDTu2ZNOW diff --git a/nezha/translations/zh_CN/LC_MESSAGES/nezha.po b/nezha/translations/zh_CN/LC_MESSAGES/nezha.po index 92186da..155d62e 100644 --- a/nezha/translations/zh_CN/LC_MESSAGES/nezha.po +++ b/nezha/translations/zh_CN/LC_MESSAGES/nezha.po @@ -8,8 +8,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-12-03 13:42+0800\n" -"PO-Revision-Date: 2024-12-03 13:45+0800\n" +"POT-Creation-Date: 2024-12-14 15:39+0800\n" +"PO-Revision-Date: 2024-12-14 15:39+0800\n" "Last-Translator: \n" "Language-Team: \n" "Language: zh_CN\n" @@ -18,204 +18,204 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 3.5\n" -#: nezha/template.sh:35 +#: nezha/template.sh:39 msgid "" "ERROR: sudo is not installed on the system, the action cannot be proceeded." msgstr "错误: 您的系统未安装 sudo,因此无法进行该项操作。" -#: nezha/template.sh:47 +#: nezha/template.sh:51 msgid "Run '$*' failed." msgstr "运行 '$*' 失败。" -#: nezha/template.sh:57 +#: nezha/template.sh:61 msgid "$dep not found, please install it first." msgstr "未找到依赖 $dep,请先安装。" -#: nezha/template.sh:117 +#: nezha/template.sh:121 msgid "Unknown architecture: $uname" msgstr "未知架构:$uname" -#: nezha/template.sh:130 nezha/template.sh:144 +#: nezha/template.sh:134 nezha/template.sh:148 msgid "Docker image with nezha repository exists:" msgstr "存在带有 nezha 仓库的 Docker 镜像:" -#: nezha/template.sh:136 nezha/template.sh:150 +#: nezha/template.sh:140 nezha/template.sh:154 msgid "No Docker images with the nezha repository were found." msgstr "未找到带有 nezha 仓库的 Docker 镜像。" -#: nezha/template.sh:163 +#: nezha/template.sh:167 msgid "Select your installation method:" msgstr "请自行选择您的安装方式:" -#: nezha/template.sh:165 +#: nezha/template.sh:169 msgid "2. Standalone" msgstr "2. 独立安装" -#: nezha/template.sh:167 +#: nezha/template.sh:171 msgid "Please enter [1-2]: " msgstr "请输入选择 [1-2]:" -#: nezha/template.sh:179 +#: nezha/template.sh:183 msgid "Please enter the correct number [1-2]" msgstr "请输入正确的选择 [1-2]" -#: nezha/template.sh:196 +#: nezha/template.sh:200 msgid "" "According to the information provided by various geoip api, the current IP " "may be in China" msgstr "根据geoip api提供的信息,当前IP可能在中国" -#: nezha/template.sh:197 +#: nezha/template.sh:201 msgid "" "Will the installation be done with a Chinese Mirror? [Y/n] (Custom Mirror " "Input 3): " msgstr "否选用中国镜像完成安装? [Y/n] (自定义镜像输入 3):" -#: nezha/template.sh:201 +#: nezha/template.sh:205 msgid "Use Chinese Mirror" msgstr "使用中国镜像" -#: nezha/template.sh:206 nezha/template.sh:220 +#: nezha/template.sh:210 nezha/template.sh:224 msgid "Do Not Use Chinese Mirror" msgstr "不使用中国镜像" -#: nezha/template.sh:210 +#: nezha/template.sh:214 msgid "Use Custom Mirror" msgstr "使用自定义镜像" -#: nezha/template.sh:211 +#: nezha/template.sh:215 msgid "" "Please enter a custom image (e.g. :dn-dao-github-mirror.daocloud.io). If " "left blank, it won't be used: " msgstr "" "请输入自定义镜像 (例如:dn-dao-github-mirror.daocloud.io),留空为不使用:" -#: nezha/template.sh:244 +#: nezha/template.sh:248 msgid "> Update Script" msgstr "> 更新脚本" -#: nezha/template.sh:246 +#: nezha/template.sh:250 msgid "https://${GITHUB_RAW_URL}/install_en.sh" msgstr "https://${GITHUB_RAW_URL}/install.sh" -#: nezha/template.sh:249 nezha/template.sh:266 +#: nezha/template.sh:253 nezha/template.sh:270 msgid "Execute new script after 3s" msgstr "3s后执行新脚本" -#: nezha/template.sh:274 +#: nezha/template.sh:278 msgid "* Press Enter to return to the main menu *" msgstr "* 按回车返回主菜单 *" -#: nezha/template.sh:279 +#: nezha/template.sh:283 msgid "> Install" msgstr "> 安装" -#: nezha/template.sh:285 +#: nezha/template.sh:289 msgid "" "You may have already installed the dashboard, repeated installation will " "overwrite the data, please pay attention to backup." msgstr "您可能已经安装过面板端,重复安装会覆盖数据,请注意备份。" -#: nezha/template.sh:286 +#: nezha/template.sh:290 msgid "Exit the installation? [Y/n]" msgstr "是否退出安装? [Y/n]" -#: nezha/template.sh:290 nezha/template.sh:297 +#: nezha/template.sh:294 nezha/template.sh:301 msgid "Exit the installation" msgstr "退出安装" -#: nezha/template.sh:294 +#: nezha/template.sh:298 msgid "Continue" msgstr "继续安装" -#: nezha/template.sh:311 +#: nezha/template.sh:315 msgid "Modify Configuration" msgstr "> 修改配置" -#: nezha/template.sh:315 +#: nezha/template.sh:319 msgid "Download Docker Script" msgstr "正在下载 Docker 脚本" -#: nezha/template.sh:318 nezha/template.sh:329 +#: nezha/template.sh:322 nezha/template.sh:333 msgid "" "Script failed to get, please check if the network can link ${GITHUB_RAW_URL}" msgstr "脚本获取失败,请检查本机能否链接 ${GITHUB_RAW_URL}" -#: nezha/template.sh:322 +#: nezha/template.sh:326 msgid "" "Please install docker-compose manually. https://docs.docker.com/compose/" "install/linux/" msgstr "" "请手动安装 docker-compose。 https://docs.docker.com/compose/install/linux/" -#: nezha/template.sh:333 +#: nezha/template.sh:337 msgid "Please enter the site title: " msgstr "请输入站点标题: " -#: nezha/template.sh:335 +#: nezha/template.sh:339 msgid "Please enter the exposed port: (default 8008)" msgstr "请输入暴露端口: (默认 8008)" -#: nezha/template.sh:337 +#: nezha/template.sh:341 msgid "" "Please specify the preset nezha-agent host in install commands: (e.g. " "example.com:443)" msgstr "请指定安装命令中预设的 nezha-agent 连接地址 (例如 example.com:443)" -#: nezha/template.sh:339 +#: nezha/template.sh:343 msgid "Do you prefer to connect Agent via TLS? [y/N]" msgstr "是否希望通过 TLS 连接 Agent?(影响安装命令)[y/N]" -#: nezha/template.sh:352 +#: nezha/template.sh:356 msgid "Please specify the backend locale" msgstr "请指定后台语言" -#: nezha/template.sh:357 +#: nezha/template.sh:361 msgid "Please enter [1-3]: " msgstr "请输入选项 [1-3]" -#: nezha/template.sh:373 +#: nezha/template.sh:377 msgid "Please enter the correct number [1-3]" msgstr "请输入正确的选项 [1-3]" -#: nezha/template.sh:379 +#: nezha/template.sh:383 msgid "All options cannot be empty" msgstr "\"所有选项都不能为空\"" -#: nezha/template.sh:405 +#: nezha/template.sh:409 msgid "Downloading service file" msgstr "正在下载服务文件" -#: nezha/template.sh:409 nezha/template.sh:415 +#: nezha/template.sh:413 nezha/template.sh:419 msgid "" "File failed to get, please check if the network can link ${GITHUB_RAW_URL}" msgstr "文件下载失败,请检查本机能否连接 ${GITHUB_RAW_URL}" -#: nezha/template.sh:423 +#: nezha/template.sh:427 msgid "" "Dashboard configuration modified successfully, please wait for Dashboard " "self-restart to take effect" msgstr "Dashboard 配置 修改成功,请稍等 Dashboard 重启生效" -#: nezha/template.sh:433 +#: nezha/template.sh:437 msgid "> Restart and Update" msgstr "> 重启并更新" -#: nezha/template.sh:442 +#: nezha/template.sh:446 msgid "Nezha Monitoring Restart Successful" msgstr "哪吒监控 重启成功" -#: nezha/template.sh:443 +#: nezha/template.sh:447 msgid "Default address: domain:site_access_port" msgstr "默认地址:域名:站点访问端口" -#: nezha/template.sh:445 +#: nezha/template.sh:449 msgid "" "The restart failed, probably because the boot time exceeded two seconds, " "please check the log information later" msgstr "重启失败,可能是因为启动时间超过了两秒,请稍后查看日志信息" -#: nezha/template.sh:472 +#: nezha/template.sh:477 msgid "" "Fail to obtain Dashboard version, please check if the network can link " "https://api.github.com/repos/nezhahq/nezha/releases/latest" @@ -223,88 +223,94 @@ msgstr "" "获取 Dashboard 版本号失败,请检查本机能否链接 https://api.github.com/repos/" "nezhahq/nezha/releases/latest" -#: nezha/template.sh:475 +#: nezha/template.sh:480 msgid "The current latest version is: ${_version}" msgstr "当前最新版本为: ${_version}" -#: nezha/template.sh:504 +#: nezha/template.sh:511 msgid "> View Log" msgstr "> 获取日志" -#: nezha/template.sh:530 +#: nezha/template.sh:537 msgid "> Uninstall" msgstr "> 卸载" -#: nezha/template.sh:569 +#: nezha/template.sh:539 +msgid "WARNING: Please backup your files before proceeding uninstallation." +msgstr "警告:卸载前请备份您的文件。" + +#: nezha/template.sh:540 +msgid "Proceed? [y/N] " +msgstr "继续? [y/N] " + +#: nezha/template.sh:544 +msgid "Uninstalling..." +msgstr "卸载中…" + +#: nezha/template.sh:591 msgid "Nezha Monitor Management Script Usage: " msgstr "哪吒监控 管理脚本使用方法: " -#: nezha/template.sh:571 +#: nezha/template.sh:593 msgid "./nezha.sh - Show Menu" msgstr "./nezha.sh - 显示管理菜单" -#: nezha/template.sh:572 +#: nezha/template.sh:594 msgid "./nezha.sh install - Install Dashboard" msgstr "./nezha.sh install - 安装面板端" -#: nezha/template.sh:573 +#: nezha/template.sh:595 msgid "./nezha.sh modify_config - Modify Dashboard Configuration" msgstr "./nezha.sh modify_config - 修改面板配置" -#: nezha/template.sh:574 +#: nezha/template.sh:596 msgid "./nezha.sh restart_and_update - Restart and Update the Dashboard" msgstr "./nezha.sh restart_and_update - 重启并更新面板" -#: nezha/template.sh:575 +#: nezha/template.sh:597 msgid "./nezha.sh show_log - View Dashboard Log" msgstr "./nezha.sh show_log - 查看面板日志" -#: nezha/template.sh:576 +#: nezha/template.sh:598 msgid "./nezha.sh uninstall - Uninstall Dashboard" msgstr "./nezha.sh uninstall - 卸载管理面板" -#: nezha/template.sh:581 +#: nezha/template.sh:603 msgid "${green}Nezha Monitor Management Script${plain}" msgstr "${green}哪吒监控管理脚本${plain}" -#: nezha/template.sh:583 +#: nezha/template.sh:605 msgid "${green}1.${plain} Install Dashboard" msgstr "${green}1.${plain} 安装面板端" -#: nezha/template.sh:584 +#: nezha/template.sh:606 msgid "${green}2.${plain} Modify Dashboard Configuration" msgstr "${green}2.${plain} 修改面板配置" -#: nezha/template.sh:585 +#: nezha/template.sh:607 msgid "${green}3.${plain} Restart and Update Dashboard" msgstr "${green}3.${plain} 重启并更新面板" -#: nezha/template.sh:586 +#: nezha/template.sh:608 msgid "${green}4.${plain} View Dashboard Log" msgstr "${green}4.${plain} 查看面板日志" -#: nezha/template.sh:587 +#: nezha/template.sh:609 msgid "${green}5.${plain} Uninstall Dashboard" msgstr "${green}5.${plain} 卸载管理面板" -#: nezha/template.sh:589 +#: nezha/template.sh:611 msgid "${green}6.${plain} Update Script" msgstr "${green}6.${plain} 更新脚本" -#: nezha/template.sh:591 +#: nezha/template.sh:613 msgid "${green}0.${plain} Exit Script" msgstr "${green}0.${plain} 退出脚本" -#: nezha/template.sh:593 +#: nezha/template.sh:615 msgid "Please enter [0-6]: " msgstr "请输入选择 [0-6]: " -#: nezha/template.sh:617 +#: nezha/template.sh:639 msgid "Please enter the correct number [0-6]" msgstr "请输入正确的数字 [0-6]" - -#~ msgid "Installing Docker" -#~ msgstr "正在安装 Docker" - -#~ msgid "Docker installed successfully" -#~ msgstr "Docker 安装成功"