diff --git a/backend/constant/errs.go b/backend/constant/errs.go index 4f77061c9..3660c7379 100644 --- a/backend/constant/errs.go +++ b/backend/constant/errs.go @@ -158,9 +158,8 @@ var ( // license var ( - ErrLicense = "ErrLicense" - ErrLicenseCheckInLocal = "ErrLicenseCheckInLocal" - ErrLicenseCheckInRemote = "ErrLicenseCheckInRemote" - ErrLicenseSave = "ErrLicenseSave" - ErrLicenseSync = "ErrLicenseSync" + ErrLicense = "ErrLicense" + ErrLicenseCheck = "ErrLicenseCheck" + ErrLicenseSave = "ErrLicenseSave" + ErrLicenseSync = "ErrLicenseSync" ) diff --git a/backend/i18n/lang/en.yaml b/backend/i18n/lang/en.yaml index aa8702936..098301203 100644 --- a/backend/i18n/lang/en.yaml +++ b/backend/i18n/lang/en.yaml @@ -177,11 +177,10 @@ ErrDefaultIP: "default is a reserved name, please change it to another name" ErrGroupInUse: "The IP group is used by the black/white list and cannot be deleted" #license -ErrLicense: "License format error, {{ .err }}, please re-import!" -ErrLicenseCheckInLocal: "Local license check failed, error {{ .err }}, please try again!" -ErrLicenseCheckInRemote: "Remote license check failed, error {{ .err }}, please try again!" +ErrLicense: "License format error, please check and try again!" +ErrLicenseCheck: "License verification failed, please check and try again!" ErrLicenseSave: "Failed to save license information, error {{ .err }}, please try again!" -ErrLicenseSync: "Failed to synchronize license information, error {{ .err }}, please try again!" -ErrXpackNotFound: "This section is an Xpack feature, please first import the License in Panel Settings-License interface" -ErrXpackNotActive: "This section is an Xpack feature, please first synchronize the License status in Panel Settings-License interface" -ErrXpackOutOfDate: "The current License has expired, please re-import the License in Panel Settings-License interface" +ErrLicenseSync: "Failed to sync license information, no license information detected in the database!" +ErrXpackNotFound: "This section is a professional edition feature, please import the license first in Panel Settings-License interface" +ErrXpackNotActive: "This section is a professional edition feature, please synchronize the license status first in Panel Settings-License interface" +ErrXpackOutOfDate: "The current license has expired, please re-import the license in Panel Settings-License interface" diff --git a/backend/i18n/lang/zh-Hant.yaml b/backend/i18n/lang/zh-Hant.yaml index 81f6ba0a1..111f538f5 100644 --- a/backend/i18n/lang/zh-Hant.yaml +++ b/backend/i18n/lang/zh-Hant.yaml @@ -178,11 +178,10 @@ ErrDefaultIP: "default 為保留名稱,請更換其他名稱" ErrGroupInUse: "IP 群組被黑/白名單使用,無法刪除" #license -ErrLicense: "License 格式錯誤,{{ .err }},請重新匯入!" -ErrLicenseCheckInLocal: "License 本地校驗失敗,錯誤 {{ .err }},請重試!" -ErrLicenseCheckInRemote: "License 遠程校驗失敗,錯誤 {{ .err }},請重試!" -ErrLicenseSave: "License 資訊保存失敗,錯誤 {{ .err }},請重試!" -ErrLicenseSync: "License 資訊同步失敗,錯誤 {{ .err }},請重試!" -ErrXpackNotFound: "該部分為 Xpack 功能,請先在 面板設置-許可證 界面匯入 License" -ErrXpackNotActive: "該部分為 Xpack 功能,請先在 面板設置-許可證 界面同步 License 狀態" -ErrXpackOutOfDate: "當前 License 已過期,請重新在 面板設置-許可證 界面匯入 License" +ErrLicense: "許可證格式錯誤,請檢查後重試!" +ErrLicenseCheck: "許可證校驗失敗,請檢查後重試!" +ErrLicenseSave: "許可證信息保存失敗,錯誤 {{ .err }}, 請重試!" +ErrLicenseSync: "許可證信息同步失敗,資料庫中未檢測到許可證信息!" +ErrXpackNotFound: "該部分為專業版功能,請先在 面板設置-許可證 界面導入許可證" +ErrXpackNotActive: "該部分為專業版功能,請先在 面板設置-許可證 界面同步許可證狀態" +ErrXpackOutOfDate: "當前許可證已過期,請重新在 面板設置-許可證 界面導入許可證" diff --git a/backend/i18n/lang/zh.yaml b/backend/i18n/lang/zh.yaml index 4d66a21d2..d81fc3f75 100644 --- a/backend/i18n/lang/zh.yaml +++ b/backend/i18n/lang/zh.yaml @@ -177,12 +177,11 @@ ErrDefaultIP: "default 为保留名称,请更换其他名称" ErrGroupInUse: "IP 组被黑/白名单使用,无法删除" #license -ErrLicense: "License 格式错误,{{ .err }},请重新导入!" -ErrLicenseCheckInLocal: "License 本地校验失败,错误 {{ .err }},请重试!" -ErrLicenseCheckInRemote: "License 远程校验失败,错误 {{ .err }},请重试!" -ErrLicenseSave: "License 信息保存失败,错误 {{ .err }},请重试!" -ErrLicenseSync: "License 信息同步失败,错误 {{ .err }},请重试!" -ErrXpackNotFound: "该部分为 Xpack 功能,请先在 面板设置-许可证 界面导入 License" -ErrXpackNotActive: "该部分为 Xpack 功能,请先在 面板设置-许可证 界面同步 License 状态" -ErrXpackOutOfDate: "当前 License 已过期,请重新在 面板设置-许可证 界面导入 License" +ErrLicense: "许可证格式错误,请检查后重试!" +ErrLicenseCheck: 许可证校验失败,请检查后重试!" +ErrLicenseSave: 许可证信息保存失败,错误 {{ .err }},请重试!" +ErrLicenseSync: "许可证信息同步失败,数据库中未检测到许可证信息!" +ErrXpackNotFound: "该部分为专业版功能,请先在 面板设置-许可证 界面导入许可证" +ErrXpackNotActive: "该部分为专业版功能,请先在 面板设置-许可证 界面同步许可证状态" +ErrXpackOutOfDate: "当前许可证已过期,请重新在 面板设置-许可证 界面导入许可证"