diff --git a/frontend/src/language/constants.ts b/frontend/src/language/constants.ts
index 989b356d..09686947 100644
--- a/frontend/src/language/constants.ts
+++ b/frontend/src/language/constants.ts
@@ -18,5 +18,13 @@ export const msg = [
$gettext('Writing certificate private key to disk'),
$gettext('Reloading nginx'),
$gettext('Finished'),
- $gettext('Issued certificate successfully')
+ $gettext('Issued certificate successfully'),
+
+ $gettext('Initialing core upgrader'),
+ $gettext('Initial core upgrader error'),
+ $gettext('Downloading latest release'),
+ $gettext('Download latest release error'),
+ $gettext('Performing core upgrade'),
+ $gettext('Perform core upgrade error'),
+ $gettext('Upgraded successfully')
]
diff --git a/frontend/src/language/en/app.po b/frontend/src/language/en/app.po
index a602e92c..6c26ea6c 100644
--- a/frontend/src/language/en/app.po
+++ b/frontend/src/language/en/app.po
@@ -322,6 +322,14 @@ msgstr ""
msgid "Domain Config Created Successfully"
msgstr "Domain Config Created Successfully"
+#: src/language/constants.ts:26
+msgid "Download latest release error"
+msgstr ""
+
+#: src/language/constants.ts:25
+msgid "Downloading latest release"
+msgstr ""
+
#: src/views/domain/DomainEdit.vue:4 src/views/domain/DomainEdit.vue:5
msgid "Edit %{n}"
msgstr "Edit %{n}"
@@ -457,6 +465,14 @@ msgstr ""
msgid "HTTP Port"
msgstr ""
+#: src/language/constants.ts:24
+msgid "Initial core upgrader error"
+msgstr ""
+
+#: src/language/constants.ts:23
+msgid "Initialing core upgrader"
+msgstr ""
+
#: src/routes/index.ts:153 src/views/other/Install.vue:128
msgid "Install"
msgstr "Install"
@@ -672,6 +688,14 @@ msgstr "Password (*)"
msgid "Path"
msgstr "Path"
+#: src/language/constants.ts:28
+msgid "Perform core upgrade error"
+msgstr ""
+
+#: src/language/constants.ts:27
+msgid "Performing core upgrade"
+msgstr ""
+
#: src/views/other/Install.vue:36
msgid "Please input your E-mail!"
msgstr "Please input your E-mail!"
@@ -931,6 +955,11 @@ msgstr "Saved successfully"
msgid "Upgrade"
msgstr ""
+#: src/language/constants.ts:29
+#, fuzzy
+msgid "Upgraded successfully"
+msgstr "Saved successfully"
+
#: src/views/system/Upgrade.vue:63
msgid "Upgrading Nginx UI, please wait..."
msgstr ""
diff --git a/frontend/src/language/messages.pot b/frontend/src/language/messages.pot
index 3f2adc2e..47fbdcec 100644
--- a/frontend/src/language/messages.pot
+++ b/frontend/src/language/messages.pot
@@ -332,6 +332,14 @@ msgstr ""
msgid "Domain Config Created Successfully"
msgstr ""
+#: src/language/constants.ts:26
+msgid "Download latest release error"
+msgstr ""
+
+#: src/language/constants.ts:25
+msgid "Downloading latest release"
+msgstr ""
+
#: src/views/domain/DomainEdit.vue:4
#: src/views/domain/DomainEdit.vue:5
msgid "Edit %{n}"
@@ -480,6 +488,14 @@ msgstr ""
msgid "HTTP Port"
msgstr ""
+#: src/language/constants.ts:24
+msgid "Initial core upgrader error"
+msgstr ""
+
+#: src/language/constants.ts:23
+msgid "Initialing core upgrader"
+msgstr ""
+
#: src/routes/index.ts:153
#: src/views/other/Install.vue:128
msgid "Install"
@@ -699,6 +715,14 @@ msgstr ""
msgid "Path"
msgstr ""
+#: src/language/constants.ts:28
+msgid "Perform core upgrade error"
+msgstr ""
+
+#: src/language/constants.ts:27
+msgid "Performing core upgrade"
+msgstr ""
+
#: src/views/other/Install.vue:36
msgid "Please input your E-mail!"
msgstr ""
@@ -961,6 +985,10 @@ msgstr ""
msgid "Upgrade"
msgstr ""
+#: src/language/constants.ts:29
+msgid "Upgraded successfully"
+msgstr ""
+
#: src/views/system/Upgrade.vue:63
msgid "Upgrading Nginx UI, please wait..."
msgstr ""
diff --git a/frontend/src/language/translations.json b/frontend/src/language/translations.json
index 812972f3..37fe9e8a 100644
--- a/frontend/src/language/translations.json
+++ b/frontend/src/language/translations.json
@@ -1 +1 @@
-{"zh_CN":{"About":"关于","Access Logs":"访问日志","Action":"操作","Add":"添加","Add Directive Below":"在下面添加指令","Add Location":"添加 Location","Add Site":"添加站点","Advance Mode":"高级模式","Arch":"架构","Are you sure you want to delete?":"您确定要删除吗?","Are you sure you want to remove this directive?":"您确定要删除这条指令?","Are you sure you want to remove this location?":"您确定要删除这个 Location?","Author":"作者","Auto":"自动","Auto Cert":"自动更新","Auto cert is enabled, please do not modify this certification.":"自动更新已启用,请勿修改此证书配置。","Auto Refresh":"自动刷新","Auto-renewal disabled for %{name}":"成功关闭 %{name} 自动续签","Auto-renewal enabled for %{name}":"成功启用 %{name} 自动续签","Back":"返回","Back Home":"返回首页","Base information":"基本信息","Basic Mode":"基本模式","Batch Modify":"批量修改","Build with":"构建基于","Cancel":"取消","Certificate has expired":"此证书已过期","Certificate is valid":"此证书有效","Certificate Status":"证书状态","Certification":"证书","Change Certificate":"更改证书","Check again":"重新检查","Comments":"注释","Config Templates":"配置","Configuration Name":"配置名称","Configurations":"配置","Configure SSL":"配置 SSL","Content":"内容","CPU Status":"CPU 状态","CPU:":"CPU:","Create Another":"再创建一个","Created at":"创建时间","Creating client facilitates communication with the CA server":"正在创建客户端用于与 CA 服务器通信","Current Version":"当前版本","Custom":"自定义","Dark":"深色","Dashboard":"仪表盘","Database (Optional, default: database)":"数据库 (可选,默认: database)","Delete":"删除","Delete ID: %{id}":"删除 ID: %{id}","Delete site: %{site_name}":"删除站点: %{site_name}","Description":"描述","Development Mode":"开发模式","Dir":"目录","Directive":"指令","Directives":"指令","Disable auto-renewal failed for %{name}":"关闭 %{name} 自动续签失败","Disabled":"禁用","Disabled successfully":"禁用成功","Disk IO":"磁盘 IO","Domain":"域名","Domain Config Created Successfully":"域名配置文件创建成功","Edit %{n}":"编辑 %{n}","Edit Configuration":"编辑配置","Edit Site":"编辑站点","Email (*)":"邮箱 (*)","Enable auto-renewal failed for %{name}":"启用 %{name} 自动续签失败","Enable failed":"启用失败","Enable TLS":"启用 TLS","Enabled":"启用","Enabled successfully":"启用成功","Encrypt website with Let's Encrypt":"用 Let's Encrypt 对网站进行加密","Error Logs":"错误日志","Executable Path":"可执行文件路径","Expiration Date: %{date}":"过期时间: %{date}","Export":"导出","Failed to disable %{msg}":"禁用失败 %{msg}","Failed to enable %{msg}":"启用失败 %{msg}","Failed to get certificate information":"获取证书信息失败","Failed to save, syntax error(s) was detected in the configuration.":"保存失败,在配置中检测到语法错误。","File":"文件","File Not Found":"未找到文件","Filter":"过滤","Finished":"完成","Format Code":"代码格式化","Format error %{msg}":"保存错误 %{msg}","Format successfully":"保存成功","Generate":"生成","Generating private key for registering account":"正在生成私钥用于注册账户","Getting the certificate, please wait...":"正在获取证书,请稍等...","Home":"首页","HTTP Challenge Port":"HTTP Challenge 监听端口","HTTP Port":"HTTP 监听端口","Install":"安装","Install successfully":"安装成功","Intermediate Certification Authorities: %{issuer}":"中级证书颁发机构: %{issuer}","Issued certificate successfully":"证书申请成功","Jwt Secret":"Jwt 密钥","Last checked at":"最后检查时间","Leave blank for no change":"留空表示不修改","Light":"浅色","Load Averages:":"系统负载:","Location":"Location","Locations":"Locations","Login":"登录","Login successful":"登录成功","Logout successful":"登出成功","Make sure you have configured a reverse proxy for .well-known directory to HTTPChallengePort (default: 9180) before getting the certificate.":"在获取签发证书前,请确保配置文件中已将 .well-known 目录反向代理到 HTTPChallengePort (默认: 9180)","Manage Configs":"配置管理","Manage Sites":"网站管理","Manage Users":"用户管理","Memory":"内存","Memory and Storage":"内存与存储","Modify":"修改","Modify Config":"修改配置文件","Multi-line Directive":"单行指令","Name":"名称","Network":"网络","Network Statistics":"流量统计","Network Total Receive":"下载流量","Network Total Send":"上传流量","New version released":"新版本发布","Next":"下一步","Nginx Access Log Path":"Nginx 访问日志路径","Nginx Configuration Parse Error":"Nginx 配置解析错误","Nginx Error Log Path":"Nginx 错误日志路径","Nginx Log":"Nginx 日志","No":"取消","Not Found":"找不到页面","Not Valid Before: %{date}":"此前无效: %{date}","Note":"注意","Obtaining certificate":"正在获取证书","OK":"确定","OS":"OS","OS:":"OS:","Params":"参数","Password":"密码","Password (*)":"密码 (*)","Path":"路径","Please input your E-mail!":"请输入您的邮箱!","Please input your password!":"请输入您的密码!","Please input your username!":"请输入您的用户名!","Preference":"偏好设置","Preparing lego configurations":"正在准备 Lego 的配置","Prohibit changing root password in demo":"禁止在演示模式下修改 root 账户的密码","Prohibit deleting the default user":"禁止删除默认用户","Project Team":"项目团队","Reads":"读","Receive":"下载","Registering user":"正在注册用户","Reinstall":"重新安装","Release Note":"发行日志","Reloading nginx":"正在重载 Nginx","Reset":"重置","Run Mode":"运行模式","Save":"保存","Save Directive":"保存指令","Save error %{msg}":"保存错误 %{msg}","Save successfully":"保存成功","Save Successfully":"保存成功","Saved successfully":"保存成功","Selector":"选择器","Send":"上传","Server error":"服务器错误","Server Info":"服务器信息","server_name not found in directives":"未在指令集合中找到 server_name","server_name parameter is required":"必须为 server_name 指令指明参数","Single Directive":"单行指令","Site Logs":"站点列表","Sites List":"站点列表","SSL Certificate Key Path":"SSL证书密钥路径","SSL Certificate Path":"SSL证书路径","SSL Certification Content":"SSL证书内容","SSL Certification Key Content":"SSL证书密钥内容","Status":"状态","Storage":"存储","Subject Name: %{name}":"主体名称: %{name}","Swap":"Swap","System":"系统","Table":"列表","Terminal":"终端","Terminal Start Command":"终端启动命令","The certificate for the domain will be checked every hour, and will be renewed if it has been more than 1 month since it was last issued.":"系统将会每小时检测一次该域名证书,若距离上次签发已超过1个月,则将自动续签。","The filename cannot contain the following characters: %{c}":"文件名不能包含以下字符: %{c}","The server_name in the current configuration must be the domain name you need to get the certificate.":"当前配置中的 server_name 必须为需要申请证书的域名。","The username or password is incorrect":"用户名或密码错误","Theme":"主题","Type":"类型","Updated at":"修改时间","Updated successfully":"更新成功","Upgrade":"升级","Uptime:":"运行时间:","Username":"用户名","Username (*)":"用户名 (*)","Using HTTP01 challenge provider":"使用 HTTP01 challenge provider","View":"查看","Warning":"警告","Writes":"写","Writing certificate private key to disk":"正在将证书私钥写入磁盘","Writing certificate to disk":"正在将证书写入磁盘","Yes":"是的","You are using the latest version":"您使用的是最新版本","You can check Nginx UI upgrade at this page.":"你可以在这个页面检查Nginx UI的升级。","License":{"Project":"开源许可"}},"en":{"About":"About","Action":"Action","Add Directive Below":"Add Directive Below","Add Location":"Add Location","Add Site":"Add Site","Advance Mode":"Advance Mode","Are you sure you want to remove this directive?":"Are you sure you want to remove this directive?","Auto-renewal disabled for %{name}":"Auto-renewal disabled for %{name}","Auto-renewal enabled for %{name}":"Auto-renewal enabled for %{name}","Back":"Back","Base information":"Base information","Basic Mode":"Basic Mode","Build with":"Build with","Cancel":"Cancel","Certificate has expired":"Certificate has expired","Certificate is valid":"Certificate is valid","Certificate Status":"Certificate Status","Comments":"Comments","Configuration Name":"Configuration Name","Configurations":"Configurations","Configure SSL":"Configure SSL","Content":"Content","CPU Status":"CPU Status","CPU:":"CPU:","Create Another":"Create Another","Created at":"Created at","Dashboard":"Dashboard","Database (Optional, default: database)":"Database (Optional, default: database)","Development Mode":"Development Mode","Directive":"Directive","Directives":"Directives","Disable auto-renewal failed for %{name}":"Disable auto-renewal failed for %{name}","Disabled":"Disabled","Disabled successfully":"Disabled successfully","Disk IO":"Disk IO","Domain Config Created Successfully":"Domain Config Created Successfully","Edit %{n}":"Edit %{n}","Edit Configuration":"Edit Configuration","Edit Site":"Edit Site","Email (*)":"Email (*)","Enable auto-renewal failed for %{name}":"Enable auto-renewal failed for %{name}","Enable failed":"Enable failed","Enable TLS":"Enable TLS","Enabled":"Enabled","Enabled successfully":"Enabled successfully","Encrypt website with Let's Encrypt":"Encrypt website with Let's Encrypt","Expiration Date: %{date}":"Expiration Date: %{date}","Failed to disable %{msg}":"Failed to disable %{msg}","Failed to enable %{msg}":"Failed to enable %{msg}","File Not Found":"File Not Found","Finished":"Finished","Getting the certificate, please wait...":"Getting the certificate, please wait...","Home":"Home","Install":"Install","Intermediate Certification Authorities: %{issuer}":"Intermediate Certification Authorities: %{issuer}","Leave blank for no change":"Leave blank for no change","Load Averages:":"Load Averages:","Location":"Location","Locations":"Locations","Login":"Login","Login successful":"Login successful","Logout successful":"Logout successful","Make sure you have configured a reverse proxy for .well-known directory to HTTPChallengePort (default: 9180) before getting the certificate.":"Make sure you have configured a reverse proxy for .well-known directory to HTTPChallengePort (default: 9180) before getting the certificate.","Manage Configs":"Manage Configs","Manage Sites":"Manage Sites","Manage Users":"Manage Users","Memory":"Memory","Memory and Storage":"Memory and Storage","Modify Config":"Modify Config","Name":"Name","Network":"Network","Network Statistics":"Network Statistics","Network Total Receive":"Network Total Receive","Network Total Send":"Network Total Send","Next":"Next","No":"No","Not Found":"Not Found","Not Valid Before: %{date}":"Not Valid Before: %{date}","OS:":"OS:","Params":"Params","Password":"Password","Password (*)":"Password (*)","Path":"Path","Please input your E-mail!":"Please input your E-mail!","Please input your password!":"Please input your password!","Please input your username!":"Please input your username!","Project Team":"Project Team","Reads":"Reads","Receive":"Receive","Save":"Save","Save Directive":"Save Directive","Save error %{msg}":"Save error %{msg}","Saved successfully":"Saved successfully","Send":"Send","Server error":"Server error","Server Info":"Server Info","server_name not found in directives":"server_name not found in directives","server_name parameter is required":"server_name parameter is required","Single Directive":"Single Directive","Sites List":"Sites List","Status":"Status","Storage":"Storage","Subject Name: %{name}":"Subject Name: %{name}","Swap":"Swap","Terminal":"Terminal","The certificate for the domain will be checked every hour, and will be renewed if it has been more than 1 month since it was last issued.":"The certificate for the domain will be checked every hour, and will be renewed if it has been more than 1 month since it was last issued.","The filename cannot contain the following characters: %{c}":"The filename cannot contain the following characters: %{c}","Updated at":"Updated at","Uptime:":"Uptime:","Username":"Username","Username (*)":"Username (*)","Warning":"Warning","Writes":"Writes","Yes":"Yes","License":{"Project":"License"}},"zh_TW":{"About":"關於","Access Logs":"訪問日誌","Action":"操作","Add":"新增","Add Directive Below":"在下面新增指令","Add Location":"新增 Location","Add Site":"新增站點","Advance Mode":"高階模式","Are you sure you want to delete?":"你確定你要刪除?","Are you sure you want to remove this directive?":"您確定要刪除這條指令?","Are you sure you want to remove this location?":"您確定要刪除此 Location 嗎?","Auto":"自動","Auto Refresh":"自動刷新","Auto-renewal disabled for %{name}":"已關閉 %{name} 自動續簽","Auto-renewal enabled for %{name}":"已啟用 %{name} 自動續簽","Back":"返回","Back Home":"回到首頁","Base information":"基本訊息","Basic Mode":"基本模式","Batch Modify":"批量修改","Build with":"構建基於","Cancel":"取消","Certificate has expired":"此憑證已過期","Certificate is valid":"此憑證有效","Certificate Status":"憑證狀態","Comments":"註釋","Configuration Name":"配置名稱","Configurations":"配置","Configure SSL":"配置 SSL","Content":"內容","CPU Status":"中央處理器狀態","CPU:":"中央處理器:","Create Another":"再創建一個","Created at":"建立時間","Creating client facilitates communication with the CA server":"創建客戶端方便與CA服務器通信","Dark":"深色","Dashboard":"儀表盤","Database (Optional, default: database)":"資料庫 (可選,預設: database)","Delete":"刪除","Delete ID: %{id}":"刪除 ID: %{id}","Delete site: %{site_name}":"刪除站點:%{site_name}","Development Mode":"開發模式","Directive":"指令","Directives":"指令","Disable auto-renewal failed for %{name}":"關閉 %{name} 自動續簽失敗","Disabled":"禁用","Disabled successfully":"禁用成功","Disk IO":"磁碟 IO","Domain Config Created Successfully":"域名配置文件創建成功","Edit %{n}":"編輯 %{n}","Edit Configuration":"編輯配置","Edit Site":"編輯站點","Email (*)":"郵箱 (*)","Enable auto-renewal failed for %{name}":"啟用 %{name} 自動續簽失敗","Enable failed":"啟用失敗","Enable TLS":"啟用 TLS","Enabled":"啟用","Enabled successfully":"啟用成功","Encrypt website with Let's Encrypt":"用 Let's Encrypt 對網站進行加密","Error Logs":"錯誤日志","Expiration Date: %{date}":"過期時間: %{date}","Export":"導出","Failed to disable %{msg}":"禁用失敗 %{msg}","Failed to enable %{msg}":"啟用失敗 %{msg}","Failed to get certificate information":"獲取證書信息失敗","File Not Found":"未找到檔案","Filter":"篩選","Finished":"完成","Generate":"生成","Generating private key for registering account":"生成註冊賬號私鑰","Getting the certificate, please wait...":"正在獲取憑證,請稍等...","Home":"首頁","Install":"安裝","Install successfully":"安裝成功","Intermediate Certification Authorities: %{issuer}":"中級憑證頒發機構: %{issuer}","Issued certificate successfully":"頒發證書成功","Leave blank for no change":"留空表示不修改","Light":"淺色","Load Averages:":"系統負載:","Location":"Location","Locations":"Locations","Login":"登入","Login successful":"登入成功","Logout successful":"登出成功","Make sure you have configured a reverse proxy for .well-known directory to HTTPChallengePort (default: 9180) before getting the certificate.":"在獲取證書前,請確保配置檔案中已將 .well-known 目錄反向代理到 HTTPChallengePort (預設: 9180)","Manage Configs":"配置管理","Manage Sites":"網站管理","Manage Users":"使用者管理","Memory":"記憶體","Memory and Storage":"記憶體和存儲","Modify":"修改","Modify Config":"修改配置","Name":"名稱","Network":"網路","Network Statistics":"網路統計","Network Total Receive":"下載流量","Network Total Send":"上傳流量","Next":"下一步","Nginx Log":"Nginx 日誌","No":"取消","Not Found":"找不到頁面","Not Valid Before: %{date}":"此前無效: %{date}","Obtaining certificate":"正在獲取證書,請稍等...","OK":"確定","OS:":"作業系統:","Params":"參數","Password":"密碼","Password (*)":"密碼 (*)","Path":"路徑","Please input your E-mail!":"請輸入您的郵箱!","Please input your password!":"請輸入您的密碼!","Please input your username!":"請輸入您的使用者名稱!","Preference":"設定","Preparing lego configurations":"準備 Lego 配置","Prohibit changing root password in demo":"禁止在demo中修改root密碼","Prohibit deleting the default user":"禁止刪除默認用戶","Project Team":"專案團隊","Reads":"讀","Receive":"下載","Registering user":"註冊用戶","Reloading nginx":"重载 Nginx","Reset":"重設","Save":"儲存","Save Directive":"儲存指令","Save error %{msg}":"儲存錯誤 %{msg}","Save successfully":"保存成功","Save Successfully":"保存成功","Saved successfully":"儲存成功","Selector":"選擇器","Send":"上傳","Server error":"伺服器錯誤","Server Info":"伺服器資訊","server_name not found in directives":"未在指令集合中找到 server_name","server_name parameter is required":"必須為 server_name 指令指明參數","Single Directive":"單行指令","Site Logs":"網站日誌","Sites List":"站點列表","Status":"狀態","Storage":"儲存","Subject Name: %{name}":"主體名稱: %{name}","Swap":"交換空間","Table":"表格","Terminal":"終端","The certificate for the domain will be checked every hour, and will be renewed if it has been more than 1 month since it was last issued.":"系統將會每小時檢測一次該域名證書,若距離上次簽發已超過1個月,則將自動續簽。
如果您之前沒有證書,請先點選「從 Let's Encrypt 獲取證書」。","The filename cannot contain the following characters: %{c}":"檔名不能包含以下字元: %{c}","The username or password is incorrect":"用戶名或密碼不正確","Theme":"外觀樣式","Updated at":"修改時間","Updated successfully":"已成功更新","Uptime:":"執行時間:","Username":"使用者名稱","Username (*)":"使用者名稱 (*)","Using HTTP01 challenge provider":"使用 HTTP01 挑戰提供者","Warning":"警告","Writes":"寫","Writing certificate private key to disk":"將證書私鑰寫入磁盤","Writing certificate to disk":"將證書寫入磁盤","Yes":"是的","License":{"Project":"開源軟體授權條款"}}}
\ No newline at end of file
+{"zh_CN":{"About":"关于","Access Logs":"访问日志","Action":"操作","Add":"添加","Add Directive Below":"在下面添加指令","Add Location":"添加 Location","Add Site":"添加站点","Advance Mode":"高级模式","Arch":"架构","Are you sure you want to delete?":"您确定要删除吗?","Are you sure you want to remove this directive?":"您确定要删除这条指令?","Are you sure you want to remove this location?":"您确定要删除这个 Location?","Author":"作者","Auto":"自动","Auto Cert":"自动更新","Auto cert is enabled, please do not modify this certification.":"自动更新已启用,请勿修改此证书配置。","Auto Refresh":"自动刷新","Auto-renewal disabled for %{name}":"成功关闭 %{name} 自动续签","Auto-renewal enabled for %{name}":"成功启用 %{name} 自动续签","Back":"返回","Back Home":"返回首页","Base information":"基本信息","Basic Mode":"基本模式","Batch Modify":"批量修改","Build with":"构建基于","Cancel":"取消","Certificate has expired":"此证书已过期","Certificate is valid":"此证书有效","Certificate Status":"证书状态","Certification":"证书","Change Certificate":"更改证书","Check again":"重新检查","Comments":"注释","Config Templates":"配置","Configuration Name":"配置名称","Configurations":"配置","Configure SSL":"配置 SSL","Content":"内容","Core Upgrade":"核心升级","CPU Status":"CPU 状态","CPU:":"CPU:","Create Another":"再创建一个","Created at":"创建时间","Creating client facilitates communication with the CA server":"正在创建客户端用于与 CA 服务器通信","Current Version":"当前版本","Custom":"自定义","Dark":"深色","Dashboard":"仪表盘","Database (Optional, default: database)":"数据库 (可选,默认: database)","Delete":"删除","Delete ID: %{id}":"删除 ID: %{id}","Delete site: %{site_name}":"删除站点: %{site_name}","Description":"描述","Development Mode":"开发模式","Dir":"目录","Directive":"指令","Directives":"指令","Disable auto-renewal failed for %{name}":"关闭 %{name} 自动续签失败","Disabled":"禁用","Disabled successfully":"禁用成功","Disk IO":"磁盘 IO","Domain":"域名","Domain Config Created Successfully":"域名配置文件创建成功","Download latest release error":"下载最新版本错误","Downloading latest release":"下载最新版本","Edit %{n}":"编辑 %{n}","Edit Configuration":"编辑配置","Edit Site":"编辑站点","Email (*)":"邮箱 (*)","Enable auto-renewal failed for %{name}":"启用 %{name} 自动续签失败","Enable failed":"启用失败","Enable TLS":"启用 TLS","Enabled":"启用","Enabled successfully":"启用成功","Encrypt website with Let's Encrypt":"用 Let's Encrypt 对网站进行加密","Error Logs":"错误日志","Executable Path":"可执行文件路径","Expiration Date: %{date}":"过期时间: %{date}","Export":"导出","Failed to disable %{msg}":"禁用失败 %{msg}","Failed to enable %{msg}":"启用失败 %{msg}","Failed to get certificate information":"获取证书信息失败","Failed to save, syntax error(s) was detected in the configuration.":"保存失败,在配置中检测到语法错误。","File":"文件","File Not Found":"未找到文件","Filter":"过滤","Finished":"完成","Format Code":"代码格式化","Format error %{msg}":"保存错误 %{msg}","Format successfully":"保存成功","Generate":"生成","Generating private key for registering account":"正在生成私钥用于注册账户","Getting the certificate, please wait...":"正在获取证书,请稍等...","Home":"首页","HTTP Challenge Port":"HTTP Challenge 监听端口","HTTP Port":"HTTP 监听端口","Initial core upgrader error":"初始化核心升级程序错误","Initialing core upgrader":"初始化核心升级器","Install":"安装","Install successfully":"安装成功","Intermediate Certification Authorities: %{issuer}":"中级证书颁发机构: %{issuer}","Issued certificate successfully":"证书申请成功","Jwt Secret":"Jwt 密钥","Last checked at":"最后检查时间","Leave blank for no change":"留空表示不修改","Light":"浅色","Load Averages:":"系统负载:","Location":"Location","Locations":"Locations","Login":"登录","Login successful":"登录成功","Logout successful":"登出成功","Make sure you have configured a reverse proxy for .well-known directory to HTTPChallengePort (default: 9180) before getting the certificate.":"在获取签发证书前,请确保配置文件中已将 .well-known 目录反向代理到 HTTPChallengePort (默认: 9180)","Manage Configs":"配置管理","Manage Sites":"网站管理","Manage Users":"用户管理","Memory":"内存","Memory and Storage":"内存与存储","Modify":"修改","Modify Config":"修改配置文件","Multi-line Directive":"单行指令","Name":"名称","Network":"网络","Network Statistics":"流量统计","Network Total Receive":"下载流量","Network Total Send":"上传流量","New version released":"新版本发布","Next":"下一步","Nginx Access Log Path":"Nginx 访问日志路径","Nginx Configuration Parse Error":"Nginx 配置解析错误","Nginx Error Log Path":"Nginx 错误日志路径","Nginx Log":"Nginx 日志","No":"取消","Not Found":"找不到页面","Not Valid Before: %{date}":"此前无效: %{date}","Note":"注意","Obtaining certificate":"正在获取证书","OK":"确定","OS":"OS","OS:":"OS:","Params":"参数","Password":"密码","Password (*)":"密码 (*)","Path":"路径","Perform core upgrade error":"执行核心升级错误","Performing core upgrade":"正在进行核心升级","Please input your E-mail!":"请输入您的邮箱!","Please input your password!":"请输入您的密码!","Please input your username!":"请输入您的用户名!","Preference":"偏好设置","Preparing lego configurations":"正在准备 Lego 的配置","Prohibit changing root password in demo":"禁止在演示模式下修改 root 账户的密码","Prohibit deleting the default user":"禁止删除默认用户","Project Team":"项目团队","Reads":"读","Receive":"下载","Registering user":"正在注册用户","Reinstall":"重新安装","Release Note":"发行日志","Reloading nginx":"正在重载 Nginx","Reset":"重置","Run Mode":"运行模式","Save":"保存","Save Directive":"保存指令","Save error %{msg}":"保存错误 %{msg}","Save successfully":"保存成功","Save Successfully":"保存成功","Saved successfully":"保存成功","Selector":"选择器","Send":"上传","Server error":"服务器错误","Server Info":"服务器信息","server_name not found in directives":"未在指令集合中找到 server_name","server_name parameter is required":"必须为 server_name 指令指明参数","Single Directive":"单行指令","Site Logs":"站点列表","Sites List":"站点列表","SSL Certificate Key Path":"SSL证书密钥路径","SSL Certificate Path":"SSL证书路径","SSL Certification Content":"SSL证书内容","SSL Certification Key Content":"SSL证书密钥内容","Status":"状态","Storage":"存储","Subject Name: %{name}":"主体名称: %{name}","Swap":"Swap","System":"系统","Table":"列表","Terminal":"终端","Terminal Start Command":"终端启动命令","The certificate for the domain will be checked every hour, and will be renewed if it has been more than 1 month since it was last issued.":"系统将会每小时检测一次该域名证书,若距离上次签发已超过1个月,则将自动续签。","The filename cannot contain the following characters: %{c}":"文件名不能包含以下字符: %{c}","The server_name in the current configuration must be the domain name you need to get the certificate.":"当前配置中的 server_name 必须为需要申请证书的域名。","The username or password is incorrect":"用户名或密码错误","Theme":"主题","Type":"类型","Updated at":"修改时间","Updated successfully":"更新成功","Upgrade":"升级","Upgraded successfully":"升级成功","Upgrading Nginx UI, please wait...":"正在升级Nginx UI,请等待...","Uptime:":"运行时间:","Username":"用户名","Username (*)":"用户名 (*)","Using HTTP01 challenge provider":"使用 HTTP01 challenge provider","View":"查看","Warning":"警告","Writes":"写","Writing certificate private key to disk":"正在将证书私钥写入磁盘","Writing certificate to disk":"正在将证书写入磁盘","Yes":"是的","You are using the latest version":"您使用的是最新版本","You can check Nginx UI upgrade at this page.":"你可以在这个页面检查Nginx UI的升级。","License":{"Project":"开源许可"}},"en":{"About":"About","Action":"Action","Add Directive Below":"Add Directive Below","Add Location":"Add Location","Add Site":"Add Site","Advance Mode":"Advance Mode","Are you sure you want to remove this directive?":"Are you sure you want to remove this directive?","Auto-renewal disabled for %{name}":"Auto-renewal disabled for %{name}","Auto-renewal enabled for %{name}":"Auto-renewal enabled for %{name}","Back":"Back","Base information":"Base information","Basic Mode":"Basic Mode","Build with":"Build with","Cancel":"Cancel","Certificate has expired":"Certificate has expired","Certificate is valid":"Certificate is valid","Certificate Status":"Certificate Status","Comments":"Comments","Configuration Name":"Configuration Name","Configurations":"Configurations","Configure SSL":"Configure SSL","Content":"Content","CPU Status":"CPU Status","CPU:":"CPU:","Create Another":"Create Another","Created at":"Created at","Dashboard":"Dashboard","Database (Optional, default: database)":"Database (Optional, default: database)","Development Mode":"Development Mode","Directive":"Directive","Directives":"Directives","Disable auto-renewal failed for %{name}":"Disable auto-renewal failed for %{name}","Disabled":"Disabled","Disabled successfully":"Disabled successfully","Disk IO":"Disk IO","Domain Config Created Successfully":"Domain Config Created Successfully","Edit %{n}":"Edit %{n}","Edit Configuration":"Edit Configuration","Edit Site":"Edit Site","Email (*)":"Email (*)","Enable auto-renewal failed for %{name}":"Enable auto-renewal failed for %{name}","Enable failed":"Enable failed","Enable TLS":"Enable TLS","Enabled":"Enabled","Enabled successfully":"Enabled successfully","Encrypt website with Let's Encrypt":"Encrypt website with Let's Encrypt","Expiration Date: %{date}":"Expiration Date: %{date}","Failed to disable %{msg}":"Failed to disable %{msg}","Failed to enable %{msg}":"Failed to enable %{msg}","File Not Found":"File Not Found","Finished":"Finished","Getting the certificate, please wait...":"Getting the certificate, please wait...","Home":"Home","Install":"Install","Intermediate Certification Authorities: %{issuer}":"Intermediate Certification Authorities: %{issuer}","Leave blank for no change":"Leave blank for no change","Load Averages:":"Load Averages:","Location":"Location","Locations":"Locations","Login":"Login","Login successful":"Login successful","Logout successful":"Logout successful","Make sure you have configured a reverse proxy for .well-known directory to HTTPChallengePort (default: 9180) before getting the certificate.":"Make sure you have configured a reverse proxy for .well-known directory to HTTPChallengePort (default: 9180) before getting the certificate.","Manage Configs":"Manage Configs","Manage Sites":"Manage Sites","Manage Users":"Manage Users","Memory":"Memory","Memory and Storage":"Memory and Storage","Modify Config":"Modify Config","Name":"Name","Network":"Network","Network Statistics":"Network Statistics","Network Total Receive":"Network Total Receive","Network Total Send":"Network Total Send","Next":"Next","No":"No","Not Found":"Not Found","Not Valid Before: %{date}":"Not Valid Before: %{date}","OS:":"OS:","Params":"Params","Password":"Password","Password (*)":"Password (*)","Path":"Path","Please input your E-mail!":"Please input your E-mail!","Please input your password!":"Please input your password!","Please input your username!":"Please input your username!","Project Team":"Project Team","Reads":"Reads","Receive":"Receive","Save":"Save","Save Directive":"Save Directive","Save error %{msg}":"Save error %{msg}","Saved successfully":"Saved successfully","Send":"Send","Server error":"Server error","Server Info":"Server Info","server_name not found in directives":"server_name not found in directives","server_name parameter is required":"server_name parameter is required","Single Directive":"Single Directive","Sites List":"Sites List","Status":"Status","Storage":"Storage","Subject Name: %{name}":"Subject Name: %{name}","Swap":"Swap","Terminal":"Terminal","The certificate for the domain will be checked every hour, and will be renewed if it has been more than 1 month since it was last issued.":"The certificate for the domain will be checked every hour, and will be renewed if it has been more than 1 month since it was last issued.","The filename cannot contain the following characters: %{c}":"The filename cannot contain the following characters: %{c}","Updated at":"Updated at","Uptime:":"Uptime:","Username":"Username","Username (*)":"Username (*)","Warning":"Warning","Writes":"Writes","Yes":"Yes","License":{"Project":"License"}},"zh_TW":{"About":"關於","Access Logs":"訪問日誌","Action":"操作","Add":"新增","Add Directive Below":"在下面新增指令","Add Location":"新增 Location","Add Site":"新增站點","Advance Mode":"高階模式","Arch":"架搆","Are you sure you want to delete?":"你確定你要刪除?","Are you sure you want to remove this directive?":"您確定要刪除這條指令?","Are you sure you want to remove this location?":"您確定要刪除此 Location 嗎?","Author":"作者","Auto":"自動","Auto Cert":"自動更新","Auto cert is enabled, please do not modify this certification.":"自動證書已啟用,請不要修改此證書。","Auto Refresh":"自動刷新","Auto-renewal disabled for %{name}":"已關閉 %{name} 自動續簽","Auto-renewal enabled for %{name}":"已啟用 %{name} 自動續簽","Back":"返回","Back Home":"回到首頁","Base information":"基本訊息","Basic Mode":"基本模式","Batch Modify":"批量修改","Build with":"構建基於","Cancel":"取消","Certificate has expired":"此憑證已過期","Certificate is valid":"此憑證有效","Certificate Status":"憑證狀態","Certification":"證照","Change Certificate":"更改證書","Check again":"再次檢查","Comments":"註釋","Config Templates":"配置模板","Configuration Name":"配置名稱","Configurations":"配置","Configure SSL":"配置 SSL","Content":"內容","Core Upgrade":"核心升級","CPU Status":"中央處理器狀態","CPU:":"中央處理器:","Create Another":"再創建一個","Created at":"建立時間","Creating client facilitates communication with the CA server":"創建客戶端方便與CA服務器通信","Current Version":"當前版本","Custom":"自訂","Dark":"深色","Dashboard":"儀表盤","Database (Optional, default: database)":"資料庫 (可選,預設: database)","Delete":"刪除","Delete ID: %{id}":"刪除 ID: %{id}","Delete site: %{site_name}":"刪除站點:%{site_name}","Description":"敘述","Development Mode":"開發模式","Dir":"目錄","Directive":"指令","Directives":"指令","Disable auto-renewal failed for %{name}":"關閉 %{name} 自動續簽失敗","Disabled":"禁用","Disabled successfully":"禁用成功","Disk IO":"磁碟 IO","Domain":"網域","Domain Config Created Successfully":"域名配置文件創建成功","Download latest release error":"下載最新版本錯誤","Downloading latest release":"正在下載最新版本","Edit %{n}":"編輯 %{n}","Edit Configuration":"編輯配置","Edit Site":"編輯站點","Email (*)":"郵箱 (*)","Enable auto-renewal failed for %{name}":"啟用 %{name} 自動續簽失敗","Enable failed":"啟用失敗","Enable TLS":"啟用 TLS","Enabled":"啟用","Enabled successfully":"啟用成功","Encrypt website with Let's Encrypt":"用 Let's Encrypt 對網站進行加密","Error Logs":"錯誤日志","Executable Path":"可執行檔路徑","Expiration Date: %{date}":"過期時間: %{date}","Export":"導出","Failed to disable %{msg}":"禁用失敗 %{msg}","Failed to enable %{msg}":"啟用失敗 %{msg}","Failed to get certificate information":"獲取證書信息失敗","Failed to save, syntax error(s) was detected in the configuration.":"保存失敗,在配置中檢測到語法錯誤。","File":"文件","File Not Found":"未找到檔案","Filter":"篩選","Finished":"完成","Format Code":"格式化代碼","Format error %{msg}":"格式錯誤 %{msg}","Format successfully":"格式化成功","Generate":"生成","Generating private key for registering account":"生成註冊賬號私鑰","Getting the certificate, please wait...":"正在獲取憑證,請稍等...","Home":"首頁","HTTP Challenge Port":"HTTP 挑戰端口","HTTP Port":"HTTP 監聽埠","Initial core upgrader error":"初始核心升級程序錯誤","Initialing core upgrader":"正在初始化核心升級程序","Install":"安裝","Install successfully":"安裝成功","Intermediate Certification Authorities: %{issuer}":"中級憑證頒發機構: %{issuer}","Issued certificate successfully":"頒發證書成功","Jwt Secret":"Jwt Secret","Last checked at":"上次檢查時間","Leave blank for no change":"留空表示不修改","Light":"淺色","Load Averages:":"系統負載:","Location":"Location","Locations":"Locations","Login":"登入","Login successful":"登入成功","Logout successful":"登出成功","Make sure you have configured a reverse proxy for .well-known directory to HTTPChallengePort (default: 9180) before getting the certificate.":"在獲取證書前,請確保配置檔案中已將 .well-known 目錄反向代理到 HTTPChallengePort (預設: 9180)","Manage Configs":"配置管理","Manage Sites":"網站管理","Manage Users":"使用者管理","Memory":"記憶體","Memory and Storage":"記憶體和存儲","Modify":"修改","Modify Config":"修改配置","Multi-line Directive":"多行指令","Name":"名稱","Network":"網路","Network Statistics":"網路統計","Network Total Receive":"下載流量","Network Total Send":"上傳流量","New version released":"新版本發布","Next":"下一步","Nginx Access Log Path":"Nginx 訪問日誌路徑","Nginx Configuration Parse Error":"Nginx 配置解析錯誤","Nginx Error Log Path":"Nginx 錯誤日誌路徑","Nginx Log":"Nginx 日誌","No":"取消","Not Found":"找不到頁面","Not Valid Before: %{date}":"此前無效: %{date}","Note":"備註","Obtaining certificate":"正在獲取證書","OK":"確定","OS":"作業系統","OS:":"作業系統:","Params":"參數","Password":"密碼","Password (*)":"密碼 (*)","Path":"路徑","Perform core upgrade error":"執行核心升級錯誤","Performing core upgrade":"正在執行核心升級","Please input your E-mail!":"請輸入您的郵箱!","Please input your password!":"請輸入您的密碼!","Please input your username!":"請輸入您的使用者名稱!","Preference":"設定","Preparing lego configurations":"準備 Lego 配置","Prohibit changing root password in demo":"禁止在demo中修改root密碼","Prohibit deleting the default user":"禁止刪除默認用戶","Project Team":"專案團隊","Reads":"讀","Receive":"下載","Registering user":"註冊用戶","Reinstall":"安裝","Release Note":"發行公告","Reloading nginx":"重载 Nginx","Reset":"重設","Run Mode":"高階模式","Save":"儲存","Save Directive":"儲存指令","Save error %{msg}":"儲存錯誤 %{msg}","Save successfully":"保存成功","Save Successfully":"保存成功","Saved successfully":"儲存成功","Selector":"選擇器","Send":"上傳","Server error":"伺服器錯誤","Server Info":"伺服器資訊","server_name not found in directives":"未在指令集合中找到 server_name","server_name parameter is required":"必須為 server_name 指令指明參數","Single Directive":"單行指令","Site Logs":"網站日誌","Sites List":"站點列表","SSL Certificate Key Path":"SSL 證書密鑰路徑","SSL Certificate Path":"SSL證書路徑","SSL Certification Content":"SSL認證內容","SSL Certification Key Content":"SSL 證書密鑰內容","Status":"狀態","Storage":"儲存","Subject Name: %{name}":"主體名稱: %{name}","Swap":"交換空間","System":"系統","Table":"表格","Terminal":"終端","Terminal Start Command":"終端啟動命令","The certificate for the domain will be checked every hour, and will be renewed if it has been more than 1 month since it was last issued.":"系統將會每小時檢測一次該域名證書,若距離上次簽發已超過1個月,則將自動續簽。
如果您之前沒有證書,請先點選「從 Let's Encrypt 獲取證書」。","The filename cannot contain the following characters: %{c}":"檔名不能包含以下字元: %{c}","The server_name in the current configuration must be the domain name you need to get the certificate.":"注意:當前配置中的 server_name 必須為需要申請證書的域名。","The username or password is incorrect":"用戶名或密碼不正確","Theme":"外觀樣式","Type":"類型","Updated at":"修改時間","Updated successfully":"已成功更新","Upgrade":"升級","Upgraded successfully":"升級成功","Upgrading Nginx UI, please wait...":"正在升級 Nginx UI,請稍候...","Uptime:":"執行時間:","Username":"使用者名稱","Username (*)":"使用者名稱 (*)","Using HTTP01 challenge provider":"使用 HTTP01 挑戰提供者","View":"查看","Warning":"警告","Writes":"寫","Writing certificate private key to disk":"將證書私鑰寫入磁盤","Writing certificate to disk":"將證書寫入磁盤","Yes":"是的","You are using the latest version":"您使用的是最新版本","You can check Nginx UI upgrade at this page.":"您可以在此頁面查看 Nginx UI 升級。","License":{"Project":"開源軟體授權條款"}}}
\ No newline at end of file
diff --git a/frontend/src/language/zh_CN/app.mo b/frontend/src/language/zh_CN/app.mo
index 96d9c478..bde0074c 100644
Binary files a/frontend/src/language/zh_CN/app.mo and b/frontend/src/language/zh_CN/app.mo differ
diff --git a/frontend/src/language/zh_CN/app.po b/frontend/src/language/zh_CN/app.po
index d0e5cf53..d1b820d5 100644
--- a/frontend/src/language/zh_CN/app.po
+++ b/frontend/src/language/zh_CN/app.po
@@ -200,9 +200,8 @@ msgid "Content"
msgstr "内容"
#: src/views/system/Upgrade.vue:3
-#, fuzzy
msgid "Core Upgrade"
-msgstr "升级"
+msgstr "核心升级"
#: src/views/dashboard/DashBoard.vue:64
msgid "CPU Status"
@@ -319,6 +318,14 @@ msgstr "域名"
msgid "Domain Config Created Successfully"
msgstr "域名配置文件创建成功"
+#: src/language/constants.ts:26
+msgid "Download latest release error"
+msgstr "下载最新版本错误"
+
+#: src/language/constants.ts:25
+msgid "Downloading latest release"
+msgstr "下载最新版本"
+
#: src/views/domain/DomainEdit.vue:4 src/views/domain/DomainEdit.vue:5
msgid "Edit %{n}"
msgstr "编辑 %{n}"
@@ -452,6 +459,14 @@ msgstr "HTTP Challenge 监听端口"
msgid "HTTP Port"
msgstr "HTTP 监听端口"
+#: src/language/constants.ts:24
+msgid "Initial core upgrader error"
+msgstr "初始化核心升级程序错误"
+
+#: src/language/constants.ts:23
+msgid "Initialing core upgrader"
+msgstr "初始化核心升级器"
+
#: src/routes/index.ts:153 src/views/other/Install.vue:128
msgid "Install"
msgstr "安装"
@@ -661,6 +676,14 @@ msgstr "密码 (*)"
msgid "Path"
msgstr "路径"
+#: src/language/constants.ts:28
+msgid "Perform core upgrade error"
+msgstr "执行核心升级错误"
+
+#: src/language/constants.ts:27
+msgid "Performing core upgrade"
+msgstr "正在进行核心升级"
+
#: src/views/other/Install.vue:36
msgid "Please input your E-mail!"
msgstr "请输入您的邮箱!"
@@ -904,9 +927,13 @@ msgstr "更新成功"
msgid "Upgrade"
msgstr "升级"
+#: src/language/constants.ts:29
+msgid "Upgraded successfully"
+msgstr "升级成功"
+
#: src/views/system/Upgrade.vue:63
msgid "Upgrading Nginx UI, please wait..."
-msgstr ""
+msgstr "正在升级Nginx UI,请等待..."
#: src/views/dashboard/DashBoard.vue:137
msgid "Uptime:"
diff --git a/frontend/src/language/zh_TW/app.mo b/frontend/src/language/zh_TW/app.mo
index 3c29365c..2e36f824 100644
Binary files a/frontend/src/language/zh_TW/app.mo and b/frontend/src/language/zh_TW/app.mo differ
diff --git a/frontend/src/language/zh_TW/app.po b/frontend/src/language/zh_TW/app.po
index 2b7b9439..c46454a6 100644
--- a/frontend/src/language/zh_TW/app.po
+++ b/frontend/src/language/zh_TW/app.po
@@ -57,7 +57,7 @@ msgstr "高階模式"
#: src/views/system/Upgrade.vue:12 src/views/system/Upgrade.vue:13
#: src/views/system/Upgrade.vue:17 src/views/system/Upgrade.vue:21
msgid "Arch"
-msgstr ""
+msgstr "架搆"
#: src/components/StdDataDisplay/StdTable.vue:54
#: src/views/domain/DomainList.vue:26
@@ -80,7 +80,7 @@ msgstr "您確定要刪除此 Location 嗎?"
#: src/views/domain/ngx_conf/ConfigTemplate.vue:23
#: src/views/domain/ngx_conf/ConfigTemplate.vue:29
msgid "Author"
-msgstr ""
+msgstr "作者"
#: src/views/preference/Preference.vue:22
#: src/views/preference/Preference.vue:23
@@ -88,13 +88,12 @@ msgid "Auto"
msgstr "自動"
#: src/views/cert/Cert.vue:41 src/views/domain/cert/ChangeCert.vue:35
-#, fuzzy
msgid "Auto Cert"
-msgstr "自動刷新"
+msgstr "自動更新"
#: src/views/cert/Cert.vue:8
msgid "Auto cert is enabled, please do not modify this certification."
-msgstr ""
+msgstr "自動證書已啟用,請不要修改此證書。"
#: src/views/nginx_log/NginxLog.vue:4
msgid "Auto Refresh"
@@ -158,21 +157,19 @@ msgid "Certificate Status"
msgstr "憑證狀態"
#: src/routes/index.ts:87 src/views/cert/Cert.vue:2
-#, fuzzy
msgid "Certification"
-msgstr "此憑證有效"
+msgstr "證照"
#: src/views/domain/cert/ChangeCert.vue:2
#: src/views/domain/cert/ChangeCert.vue:3
#: src/views/domain/cert/ChangeCert.vue:5
-#, fuzzy
msgid "Change Certificate"
-msgstr "正在獲取證書,請稍等..."
+msgstr "更改證書"
#: src/views/system/Upgrade.vue:16 src/views/system/Upgrade.vue:17
#: src/views/system/Upgrade.vue:21 src/views/system/Upgrade.vue:25
msgid "Check again"
-msgstr ""
+msgstr "再次檢查"
#: src/views/domain/ngx_conf/directive/DirectiveEditorItem.vue:34
#: src/views/domain/ngx_conf/LocationEditor.vue:31
@@ -182,9 +179,8 @@ msgid "Comments"
msgstr "註釋"
#: src/views/domain/ngx_conf/ConfigTemplate.vue:61
-#, fuzzy
msgid "Config Templates"
-msgstr "配置"
+msgstr "配置模板"
#: src/views/domain/DomainAdd.vue:11
msgid "Configuration Name"
@@ -206,7 +202,7 @@ msgstr "內容"
#: src/views/system/Upgrade.vue:3
msgid "Core Upgrade"
-msgstr ""
+msgstr "核心升級"
#: src/views/dashboard/DashBoard.vue:64
msgid "CPU Status"
@@ -231,7 +227,7 @@ msgstr "創建客戶端方便與CA服務器通信"
#: src/views/system/Upgrade.vue:10 src/views/system/Upgrade.vue:11
#: src/views/system/Upgrade.vue:15 src/views/system/Upgrade.vue:19
msgid "Current Version"
-msgstr ""
+msgstr "當前版本"
#: src/views/domain/ngx_conf/ConfigTemplate.vue:22
#: src/views/domain/ngx_conf/ConfigTemplate.vue:23
@@ -240,7 +236,7 @@ msgstr ""
#: src/views/domain/ngx_conf/NgxConfigEditor.vue:6
#: src/views/domain/ngx_conf/NgxConfigEditor.vue:7
msgid "Custom"
-msgstr ""
+msgstr "自訂"
#: src/views/preference/Preference.vue:28
#: src/views/preference/Preference.vue:29
@@ -276,7 +272,7 @@ msgstr "刪除站點:%{site_name}"
#: src/views/domain/ngx_conf/ConfigTemplate.vue:24
#: src/views/domain/ngx_conf/ConfigTemplate.vue:30
msgid "Description"
-msgstr ""
+msgstr "敘述"
#: src/views/system/About.vue:7 src/views/system/About.vue:8
msgid "Development Mode"
@@ -284,7 +280,7 @@ msgstr "開發模式"
#: src/views/config/config.ts:20
msgid "Dir"
-msgstr ""
+msgstr "目錄"
#: src/views/domain/ngx_conf/directive/DirectiveAdd.vue:20
msgid "Directive"
@@ -317,12 +313,20 @@ msgstr "磁碟 IO"
#: src/views/cert/Cert.vue:32
msgid "Domain"
-msgstr ""
+msgstr "網域"
#: src/views/domain/DomainAdd.vue:58
msgid "Domain Config Created Successfully"
msgstr "域名配置文件創建成功"
+#: src/language/constants.ts:26
+msgid "Download latest release error"
+msgstr "下載最新版本錯誤"
+
+#: src/language/constants.ts:25
+msgid "Downloading latest release"
+msgstr "正在下載最新版本"
+
#: src/views/domain/DomainEdit.vue:4 src/views/domain/DomainEdit.vue:5
msgid "Edit %{n}"
msgstr "編輯 %{n}"
@@ -375,7 +379,7 @@ msgstr "錯誤日志"
#: src/views/system/Upgrade.vue:13 src/views/system/Upgrade.vue:14
#: src/views/system/Upgrade.vue:18 src/views/system/Upgrade.vue:22
msgid "Executable Path"
-msgstr ""
+msgstr "可執行檔路徑"
#: src/views/domain/cert/CertInfo.vue:12
msgid "Expiration Date: %{date}"
@@ -402,11 +406,11 @@ msgstr "獲取證書信息失敗"
#: src/views/domain/DomainEdit.vue:117
msgid "Failed to save, syntax error(s) was detected in the configuration."
-msgstr ""
+msgstr "保存失敗,在配置中檢測到語法錯誤。"
#: src/views/config/config.ts:22
msgid "File"
-msgstr ""
+msgstr "文件"
#: src/views/other/Error.vue:3 src/views/other/Error.vue:4
msgid "File Not Found"
@@ -422,17 +426,15 @@ msgstr "完成"
#: src/views/config/ConfigEdit.vue:67
msgid "Format Code"
-msgstr ""
+msgstr "格式化代碼"
#: src/views/config/ConfigEdit.vue:52
-#, fuzzy
msgid "Format error %{msg}"
-msgstr "儲存錯誤 %{msg}"
+msgstr "格式錯誤 %{msg}"
#: src/views/config/ConfigEdit.vue:50
-#, fuzzy
msgid "Format successfully"
-msgstr "保存成功"
+msgstr "格式化成功"
#: src/components/StdDataEntry/components/StdPassword.vue:42
msgid "Generate"
@@ -451,15 +453,21 @@ msgid "Home"
msgstr "首頁"
#: src/views/preference/Preference.vue:17
-#, fuzzy
msgid "HTTP Challenge Port"
-msgstr "HTTP 監聽埠"
+msgstr "HTTP 挑戰端口"
#: src/views/preference/Preference.vue:5
-#, fuzzy
msgid "HTTP Port"
msgstr "HTTP 監聽埠"
+#: src/language/constants.ts:24
+msgid "Initial core upgrader error"
+msgstr "初始核心升級程序錯誤"
+
+#: src/language/constants.ts:23
+msgid "Initialing core upgrader"
+msgstr "正在初始化核心升級程序"
+
#: src/routes/index.ts:153 src/views/other/Install.vue:128
msgid "Install"
msgstr "安裝"
@@ -478,12 +486,12 @@ msgstr "頒發證書成功"
#: src/views/preference/Preference.vue:11
msgid "Jwt Secret"
-msgstr ""
+msgstr "Jwt Secret"
#: src/views/system/Upgrade.vue:14 src/views/system/Upgrade.vue:15
#: src/views/system/Upgrade.vue:19 src/views/system/Upgrade.vue:23
msgid "Last checked at"
-msgstr ""
+msgstr "上次檢查時間"
#: src/views/user/User.vue:26
msgid "Leave blank for no change"
@@ -563,9 +571,8 @@ msgstr "修改配置"
#: src/views/domain/ngx_conf/directive/DirectiveAdd.vue:10
#: src/views/domain/ngx_conf/directive/DirectiveAdd.vue:9
-#, fuzzy
msgid "Multi-line Directive"
-msgstr "單行指令"
+msgstr "多行指令"
#: src/views/cert/Cert.vue:16 src/views/config/config.ts:9
#: src/views/domain/cert/ChangeCert.vue:19 src/views/domain/DomainEdit.vue:46
@@ -591,26 +598,23 @@ msgstr "上傳流量"
#: src/views/system/Upgrade.vue:34
msgid "New version released"
-msgstr ""
+msgstr "新版本發布"
#: src/views/domain/DomainAdd.vue:136
msgid "Next"
msgstr "下一步"
#: src/views/preference/Preference.vue:33
-#, fuzzy
msgid "Nginx Access Log Path"
-msgstr "訪問日誌"
+msgstr "Nginx 訪問日誌路徑"
#: src/views/domain/DomainEdit.vue:31
-#, fuzzy
msgid "Nginx Configuration Parse Error"
-msgstr "配置名稱"
+msgstr "Nginx 配置解析錯誤"
#: src/views/preference/Preference.vue:36
-#, fuzzy
msgid "Nginx Error Log Path"
-msgstr "Nginx 日誌"
+msgstr "Nginx 錯誤日誌路徑"
#: src/routes/index.ts:103 src/views/nginx_log/NginxLog.vue:2
msgid "Nginx Log"
@@ -633,11 +637,11 @@ msgstr "此前無效: %{date}"
#: src/views/domain/cert/IssueCert.vue:37
msgid "Note"
-msgstr ""
+msgstr "備註"
#: src/language/constants.ts:16 src/views/domain/cert/IssueCert.vue:3
msgid "Obtaining certificate"
-msgstr "正在獲取證書,請稍等..."
+msgstr "正在獲取證書"
#: src/components/StdDataDisplay/StdBatchEdit.vue:8
#: src/components/StdDataDisplay/StdCurd.vue:28
@@ -649,9 +653,8 @@ msgstr "確定"
#: src/views/system/Upgrade.vue:11 src/views/system/Upgrade.vue:12
#: src/views/system/Upgrade.vue:16 src/views/system/Upgrade.vue:20
-#, fuzzy
msgid "OS"
-msgstr "作業系統:"
+msgstr "作業系統"
#: src/views/dashboard/DashBoard.vue:147
msgid "OS:"
@@ -674,6 +677,14 @@ msgstr "密碼 (*)"
msgid "Path"
msgstr "路徑"
+#: src/language/constants.ts:28
+msgid "Perform core upgrade error"
+msgstr "執行核心升級錯誤"
+
+#: src/language/constants.ts:27
+msgid "Performing core upgrade"
+msgstr "正在執行核心升級"
+
#: src/views/other/Install.vue:36
msgid "Please input your E-mail!"
msgstr "請輸入您的郵箱!"
@@ -721,7 +732,6 @@ msgstr "註冊用戶"
#: src/views/system/Upgrade.vue:24 src/views/system/Upgrade.vue:25
#: src/views/system/Upgrade.vue:29 src/views/system/Upgrade.vue:33
#: src/views/system/Upgrade.vue:36 src/views/system/Upgrade.vue:39
-#, fuzzy
msgid "Reinstall"
msgstr "安裝"
@@ -729,7 +739,7 @@ msgstr "安裝"
#: src/views/system/Upgrade.vue:36 src/views/system/Upgrade.vue:40
#: src/views/system/Upgrade.vue:43 src/views/system/Upgrade.vue:48
msgid "Release Note"
-msgstr ""
+msgstr "發行公告"
#: src/language/constants.ts:19
msgid "Reloading nginx"
@@ -742,7 +752,6 @@ msgid "Reset"
msgstr "重設"
#: src/views/preference/Preference.vue:8
-#, fuzzy
msgid "Run Mode"
msgstr "高階模式"
@@ -826,24 +835,20 @@ msgid "Sites List"
msgstr "站點列表"
#: src/views/cert/Cert.vue:65
-#, fuzzy
msgid "SSL Certificate Key Path"
-msgstr "憑證狀態"
+msgstr "SSL 證書密鑰路徑"
#: src/views/cert/Cert.vue:58
-#, fuzzy
msgid "SSL Certificate Path"
-msgstr "憑證狀態"
+msgstr "SSL證書路徑"
#: src/views/cert/Cert.vue:19
-#, fuzzy
msgid "SSL Certification Content"
-msgstr "憑證狀態"
+msgstr "SSL認證內容"
#: src/views/cert/Cert.vue:22
-#, fuzzy
msgid "SSL Certification Key Content"
-msgstr "憑證狀態"
+msgstr "SSL 證書密鑰內容"
#: src/views/domain/DomainList.vue:24
msgid "Status"
@@ -862,9 +867,8 @@ msgid "Swap"
msgstr "交換空間"
#: src/routes/index.ts:134
-#, fuzzy
msgid "System"
-msgstr "系統訊息"
+msgstr "系統"
#: src/components/StdDataDisplay/StdCurd.vue:3
msgid "Table"
@@ -876,7 +880,7 @@ msgstr "終端"
#: src/views/preference/Preference.vue:14
msgid "Terminal Start Command"
-msgstr ""
+msgstr "終端啟動命令"
#: src/views/domain/cert/IssueCert.vue:206
msgid ""
@@ -891,7 +895,6 @@ msgid "The filename cannot contain the following characters: %{c}"
msgstr "檔名不能包含以下字元: %{c}"
#: src/views/domain/cert/IssueCert.vue:202
-#, fuzzy
msgid ""
"The server_name in the current configuration must be the domain name you "
"need to get the certificate."
@@ -907,7 +910,7 @@ msgstr "外觀樣式"
#: src/views/config/config.ts:14
msgid "Type"
-msgstr ""
+msgstr "類型"
#: src/views/cert/Cert.vue:72 src/views/config/config.ts:29
#: src/views/domain/DomainList.vue:41 src/views/user/User.vue:37
@@ -924,11 +927,15 @@ msgstr "已成功更新"
#: src/views/system/Upgrade.vue:38 src/views/system/Upgrade.vue:41
#: src/views/system/Upgrade.vue:42
msgid "Upgrade"
-msgstr ""
+msgstr "升級"
+
+#: src/language/constants.ts:29
+msgid "Upgraded successfully"
+msgstr "升級成功"
#: src/views/system/Upgrade.vue:63
msgid "Upgrading Nginx UI, please wait..."
-msgstr ""
+msgstr "正在升級 Nginx UI,請稍候..."
#: src/views/dashboard/DashBoard.vue:137
msgid "Uptime:"
@@ -950,7 +957,7 @@ msgstr "使用 HTTP01 挑戰提供者"
#: src/views/domain/ngx_conf/ConfigTemplate.vue:13
#: src/views/domain/ngx_conf/ConfigTemplate.vue:9
msgid "View"
-msgstr ""
+msgstr "查看"
#: src/views/domain/cert/IssueCert.vue:26 src/views/domain/DomainAdd.vue:22
msgid "Warning"
@@ -976,12 +983,12 @@ msgstr "是的"
#: src/views/system/Upgrade.vue:30
msgid "You are using the latest version"
-msgstr ""
+msgstr "您使用的是最新版本"
#: src/views/system/Upgrade.vue:10 src/views/system/Upgrade.vue:14
#: src/views/system/Upgrade.vue:18 src/views/system/Upgrade.vue:9
msgid "You can check Nginx UI upgrade at this page."
-msgstr ""
+msgstr "您可以在此頁面查看 Nginx UI 升級。"
#: src/views/system/About.vue:27
msgctxt "Project"
diff --git a/go.mod b/go.mod
index 1b348243..75e0e070 100644
--- a/go.mod
+++ b/go.mod
@@ -16,6 +16,7 @@ require (
github.com/google/uuid v1.1.1
github.com/gorilla/websocket v1.4.2
github.com/hpcloud/tail v1.0.0
+ github.com/jpillora/overseer v1.1.6
github.com/pkg/errors v0.9.1
github.com/shirou/gopsutil/v3 v3.21.7
github.com/spf13/cast v1.3.1
@@ -30,13 +31,11 @@ require (
require (
github.com/StackExchange/wmi v1.2.1 // indirect
github.com/cenkalti/backoff/v4 v4.1.0 // indirect
- github.com/fvbock/endless v0.0.0-20170109170031-447134032cb6 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-ole/go-ole v1.2.5 // indirect
github.com/golang/protobuf v1.3.4 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.2 // indirect
- github.com/jpillora/overseer v1.1.6 // indirect
github.com/jpillora/s3 v1.1.4 // indirect
github.com/json-iterator/go v1.1.9 // indirect
github.com/leodido/go-urn v1.2.0 // indirect
diff --git a/go.sum b/go.sum
index 7cd00fb1..077a7d20 100644
--- a/go.sum
+++ b/go.sum
@@ -23,8 +23,6 @@ cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0Zeo
cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk=
contrib.go.opencensus.io/exporter/ocagent v0.4.12/go.mod h1:450APlNTSR6FrvC3CTRqYosuDstRB9un7SOx2k/9ckA=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
-github.com/0xJacky/gonginx v0.0.0-20230104051937-4c3a63627efb h1:UzbGgIvP2UXpqlPG0ylT8/y0TIl5tBvAIeI3OAChFHI=
-github.com/0xJacky/gonginx v0.0.0-20230104051937-4c3a63627efb/go.mod h1:+uQMU+LMBHOQermcm/ICplG+r35Ypb6Up9iYKlvKuTE=
github.com/Azure/azure-sdk-for-go v32.4.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
github.com/Azure/go-autorest/autorest v0.1.0/go.mod h1:AKyIcETwSUFxIcs/Wnq/C+kwCtlEYGUVd7FPNb2slmg=
github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI=
@@ -108,8 +106,6 @@ github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4=
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
-github.com/fvbock/endless v0.0.0-20170109170031-447134032cb6 h1:6VSn3hB5U5GeA6kQw4TwWIWbOhtvR2hmbBJnTOtqTWc=
-github.com/fvbock/endless v0.0.0-20170109170031-447134032cb6/go.mod h1:YxOVT5+yHzKvwhsiSIWmbAYM3Dr9AEEbER2dVayfBkg=
github.com/getkin/kin-openapi v0.13.0/go.mod h1:WGRs2ZMM1Q8LR1QBEwUxC6RJEfaBcD0s+pcEVXFuAjw=
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE=
@@ -409,6 +405,7 @@ github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a/go.mod h1:s
github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s=
github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
github.com/smartystreets/gunit v1.0.4/go.mod h1:EH5qMBab2UclzXUcpR8b93eHsIlp9u+pDQIRp5DZNzQ=
+github.com/smartystreets/gunit v1.1.3 h1:32x+htJCu3aMswhPw3teoJ+PnWPONqdNgaGs6Qt8ZaU=
github.com/smartystreets/gunit v1.1.3/go.mod h1:EH5qMBab2UclzXUcpR8b93eHsIlp9u+pDQIRp5DZNzQ=
github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM=
github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
diff --git a/main.go b/main.go
index c87fd2fa..083d4b52 100644
--- a/main.go
+++ b/main.go
@@ -31,7 +31,6 @@ func main() {
Program: prog,
Address: fmt.Sprintf(":%s", settings.ServerSettings.HttpPort),
Fetcher: &fetcher.File{Path: r.ExPath},
- Debug: gin.IsDebugging(),
TerminateTimeout: 0,
})
diff --git a/server/api/upgrade.go b/server/api/upgrade.go
index 4d7e7932..81d11bdd 100644
--- a/server/api/upgrade.go
+++ b/server/api/upgrade.go
@@ -46,7 +46,7 @@ func PerformCoreUpgrade(c *gin.Context) {
_ = ws.WriteJSON(gin.H{
"status": "info",
- "message": "Initialing Core Upgrader",
+ "message": "Initialing core upgrader",
})
u, err := service.NewUpgrader()
@@ -54,7 +54,11 @@ func PerformCoreUpgrade(c *gin.Context) {
if err != nil {
_ = ws.WriteJSON(gin.H{
"status": "error",
- "message": "Initialing core upgrader error",
+ "message": "Initial core upgrader error",
+ })
+ _ = ws.WriteJSON(gin.H{
+ "status": "error",
+ "message": err.Error(),
})
log.Println("[Error] PerformCoreUpgrade service.NewUpgrader()", err)
return
@@ -69,6 +73,10 @@ func PerformCoreUpgrade(c *gin.Context) {
"status": "error",
"message": "Download latest release error",
})
+ _ = ws.WriteJSON(gin.H{
+ "status": "error",
+ "message": err.Error(),
+ })
log.Println("[Error] PerformCoreUpgrade DownloadLatestRelease", err)
return
}
@@ -84,6 +92,10 @@ func PerformCoreUpgrade(c *gin.Context) {
"status": "error",
"message": "Perform core upgrade error",
})
+ _ = ws.WriteJSON(gin.H{
+ "status": "error",
+ "message": err.Error(),
+ })
log.Println("[Error] PerformCoreUpgrade PerformCoreUpgrade", err)
return
}
diff --git a/server/service/upgrade.go b/server/service/upgrade.go
index 5a16111c..3f422963 100644
--- a/server/service/upgrade.go
+++ b/server/service/upgrade.go
@@ -5,6 +5,7 @@ import (
"fmt"
_github "github.com/0xJacky/Nginx-UI/.github"
"github.com/0xJacky/Nginx-UI/frontend"
+ "github.com/0xJacky/Nginx-UI/server/pkg/helper"
"github.com/0xJacky/Nginx-UI/server/settings"
"github.com/pkg/errors"
"io"
@@ -185,11 +186,11 @@ func (u *Upgrader) DownloadLatestRelease() (tarName string, err error) {
}
func (u *Upgrader) PerformCoreUpgrade(dir, tarPath string) (err error) {
- //err = helper.UnTar(dir, tarPath)
- //if err != nil {
- // err = errors.Wrap(err, "PerformCoreUpgrade unTar error")
- // return
- //}
+ err = helper.UnTar(dir, tarPath)
+ if err != nil {
+ err = errors.Wrap(err, "PerformCoreUpgrade unTar error")
+ return
+ }
_ = os.Remove(tarPath)