diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/account/AddAccountPane.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/account/AddAccountPane.java index 44bcdd642..dacc36120 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/account/AddAccountPane.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/account/AddAccountPane.java @@ -319,6 +319,8 @@ public class AddAccountPane extends StackPane { return exception.getMessage(); } else if (exception instanceof AuthlibInjectorDownloadException) { return i18n("account.failed.injector_download_failure"); + } else if (exception instanceof CharacterDeletedException) { + return i18n("account.failed.character_deleted"); } else if (exception.getClass() == AuthenticationException.class) { return exception.getLocalizedMessage(); } else { diff --git a/HMCL/src/main/resources/assets/lang/I18N.properties b/HMCL/src/main/resources/assets/lang/I18N.properties index 6caad45cf..c1c0f8228 100644 --- a/HMCL/src/main/resources/assets/lang/I18N.properties +++ b/HMCL/src/main/resources/assets/lang/I18N.properties @@ -36,6 +36,7 @@ account.character=character account.choose=Choose a character account.create=Create a new account account.email=Email +account.failed.character_deleted=The character has been deleted. account.failed.connect_authentication_server=Cannot connect to the authentication server. Check your network. account.failed.connect_injector_server=Cannot connect to the authentication server. Check your network and ensure the URL is correct. account.failed.injector_download_failure=Failed to download authlib-injector. Check your network and try switching to another download source. diff --git a/HMCL/src/main/resources/assets/lang/I18N_zh.properties b/HMCL/src/main/resources/assets/lang/I18N_zh.properties index 070e6a3ca..4a9c4cf58 100644 --- a/HMCL/src/main/resources/assets/lang/I18N_zh.properties +++ b/HMCL/src/main/resources/assets/lang/I18N_zh.properties @@ -35,6 +35,7 @@ account.character=角色 account.choose=選擇一個角色 account.create=建立帳戶 account.email=電子信箱 +account.failed.character_deleted=此角色已被刪除 account.failed.connect_authentication_server=無法連接認證伺服器,可能是網路問題 account.failed.connect_injector_server=無法連接認證伺服器,可能是網路故障或 URL 輸入錯誤 account.failed.injector_download_failure=無法下載 authlib-injector,請檢查網路或嘗試切換下載源 diff --git a/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties b/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties index 864169851..f6f78acd2 100644 --- a/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties +++ b/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties @@ -35,6 +35,7 @@ account.character=角色 account.choose=选择一个角色 account.create=新建账户 account.email=邮箱 +account.failed.character_deleted=此角色已被删除 account.failed.connect_authentication_server=无法连接认证服务器,可能是网络问题 account.failed.connect_injector_server=无法连接认证服务器,可能是网络故障或 URL 输入错误 account.failed.injector_download_failure=无法下载 authlib-injector,请检查网络或尝试切换下载源