Add translation for CharacterDeletedException

This commit is contained in:
yushijinhun 2019-02-05 14:56:11 +08:00
parent 4721fcea66
commit 00f1173bac
No known key found for this signature in database
GPG Key ID: 5BC167F73EA558E4
4 changed files with 5 additions and 0 deletions

View File

@ -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 {

View File

@ -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.

View File

@ -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請檢查網路或嘗試切換下載源

View File

@ -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请检查网络或尝试切换下载源