diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/game/LauncherHelper.java b/HMCL/src/main/java/org/jackhuang/hmcl/game/LauncherHelper.java index 67a08145d..7b74187ca 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/game/LauncherHelper.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/game/LauncherHelper.java @@ -627,11 +627,11 @@ public final class LauncherHelper { return Task.completed(DialogController.logIn(account)); } catch (AuthenticationException e) { - LOG.log(Level.WARNING, "Authentication failed, try playing offline", e); + LOG.log(Level.WARNING, "Authentication failed, try skipping refresh", e); CompletableFuture> future = new CompletableFuture<>(); runInFX(() -> { - JFXButton loginOfflineButton = new JFXButton(i18n("account.login.offline")); + JFXButton loginOfflineButton = new JFXButton(i18n("account.login.skip")); loginOfflineButton.setOnAction(event -> { try { future.complete(Task.completed(account.playOffline())); @@ -639,7 +639,7 @@ public final class LauncherHelper { future.completeExceptionally(e2); } }); - JFXButton retryButton = new JFXButton(i18n("button.retry")); + JFXButton retryButton = new JFXButton(i18n("account.login.retry")); retryButton.setOnAction(event -> { future.complete(logIn(account)); }); diff --git a/HMCL/src/main/resources/assets/lang/I18N.properties b/HMCL/src/main/resources/assets/lang/I18N.properties index fd2472fcd..72f712524 100644 --- a/HMCL/src/main/resources/assets/lang/I18N.properties +++ b/HMCL/src/main/resources/assets/lang/I18N.properties @@ -62,7 +62,7 @@ account.create.yggdrasil=Add a Mojang account account.create.offline=Add an offline account account.create.authlibInjector=Create an authlib-injector account account.email=Email -account.failed=Failed to login +account.failed=Account refresh failed account.failed.character_deleted=The character has already been deleted. account.failed.connect_authentication_server=Unable to contact authentication servers, your Internet connection may be down. account.failed.connect_injector_server=Unable to connect to the authentication server. Please check your network and make sure you entered the correct URL. @@ -87,7 +87,8 @@ account.injector.server_url=Server URL account.injector.server_name=Server Name account.login=Login account.login.hint=We will not store your password. -account.login.offline=Login offline +account.login.skip=Login offline +account.login.retry=Retry account.login.refresh=Re-login account.login.refresh.microsoft.hint=Because the account authorization is invalid, you need to re-add your Microsoft account\nPlease click on the "OK" button, and copy the code shown here later to finish the login process in the opened browser window. account.login.refresh.microsoft.manual=Because the account authorization is invalid, you need to re-add your Microsoft account\nYour device code is %1$s, please click here to copy. After clicking on the "OK" button, you should finish the login process in the opened browser window. If it did not show, you can go to %2$s manually. diff --git a/HMCL/src/main/resources/assets/lang/I18N_zh.properties b/HMCL/src/main/resources/assets/lang/I18N_zh.properties index dda37abac..03b613358 100644 --- a/HMCL/src/main/resources/assets/lang/I18N_zh.properties +++ b/HMCL/src/main/resources/assets/lang/I18N_zh.properties @@ -60,7 +60,7 @@ account.create.yggdrasil=添加 Mojang 帳戶 account.create.offline=添加離線模式帳戶 account.create.authlibInjector=添加外置登入帳戶 (authlib-injector) account.email=電子信箱 -account.failed=登錄失敗 +account.failed=帳戶刷新失敗! account.failed.character_deleted=已刪除此角色 account.failed.connect_authentication_server=無法連線至認證伺服器,可能是網路問題,請檢查設備能否正常上網或使用代理服務 account.failed.connect_injector_server=無法連線至認證伺服器,可能是網路故障,請檢查設備能否正常上網、檢查網址是否輸入錯誤或使用代理服務 @@ -70,7 +70,7 @@ account.failed.invalid_password=密碼無效 account.failed.invalid_token=請嘗試登出並重新輸入密碼登入 account.failed.migration=你的帳號需要被遷移至微軟帳號。如果你已經遷移,你需要使用微軟登錄方式登錄遷移後的微軟帳號。 account.failed.no_character=該帳戶沒有角色 -account.failed.server_disconnected=無法訪問登錄伺服器。是否以離線模式繼續登錄(進入遊戲後無法進入有正版驗證的伺服器)?或嘗試重新登入? +account.failed.server_disconnected=無法訪問登入服務器,帳戶信息刷新失敗!\n你可以選擇跳過帳戶刷新(但啓動遊戲後可能會因為帳戶信息過期而導致無法進入開啟正版驗證的服務器)\n或嘗試再次刷新帳戶? account.failed.server_response_malformed=無法解析認證伺服器回應,可能是伺服器故障 account.failed.wrong_account=登錄了錯誤的帳號 account.hmcl.hint=你需要點擊“登入”按鈕,並在打開的網頁中完成登入 @@ -84,7 +84,8 @@ account.injector.server_url=伺服器位址 account.injector.server_name=伺服器名稱 account.login=登入 account.login.hint=我們不會保存你的密碼 -account.login.offline=以離線模式登錄 +account.login.skip=重新刷新帳戶 +account.login.retry=再次刷新帳戶 account.login.refresh=重新登錄 account.login.refresh.microsoft.hint=因為賬戶授權失效,需要重新添加你的微軟賬戶\n你需要按照以下步驟添加:\n \n1.點擊“確定”按鈕\n2.在網頁瀏覽器顯示的網站中輸入 HMCL 顯示的代碼(自動拷貝,直接粘貼即可),並點擊“下一步”\n3.按照網站的提示登入\n4.當網站顯示“ 是否允許此應用訪問你的信息?”的標識時,請點擊“是”\n5.當網站提示“大功告成”的標示時,及表示登入成功!然後等待賬戶完成添加即可!\n \n-若網站提示“出现错误”的標識,請嘗試重新按照以上步驟登入\n-若賬戶添加失敗,請嘗試重新按照以上步驟登入\n-若設備網絡環境不佳,可能登陸網站加載很慢甚至無法加載,此時請使用 VPN 或代理伺服器並重試 account.login.refresh.microsoft.manual=因為賬戶授權失效,需要重新添加你的微軟賬戶\n你需要按照以下步驟添加:\n \n1.點擊“確定”按鈕\n2.在網頁瀏覽器顯示的網站中輸入該代碼:%1$s(已自動拷貝,請點此再次拷貝),並點擊“下一步”\n3.按照網站的提示登入\n4.當網站顯示“ 是否允許此應用訪問你的信息?”的標識時,請點擊“是”\n5.當網站提示“大功告成”的標示時,及表示登入成功!然後等待賬戶完成添加即可!\n \n-若網站提示“出现错误”的標識,請嘗試重新按照以上步驟登入\n-若賬戶添加失敗,請嘗試重新按照以上步驟登入\n-若網站未能打開,請手動在網頁瀏覽器中打開:%2$s\n-若設備網絡環境不佳,可能登陸網站加載很慢甚至無法加載,此時請使用 VPN 或代理伺服器並重試 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 edac587c4..094e61153 100644 --- a/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties +++ b/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties @@ -60,7 +60,7 @@ account.create.yggdrasil=添加 Mojang 帐户 account.create.offline=添加离线模式帐户 account.create.authlibInjector=添加外置登录帐户 (authlib-injector) account.email=邮箱 -account.failed=登录失败 +account.failed=账户刷新失败! account.failed.character_deleted=此角色已被删除 account.failed.connect_authentication_server=无法连接认证服务器,可能是网络问题,请检查设备能否正常上网或使用代理服务 account.failed.connect_injector_server=无法连接认证服务器,可能是网络问题,请检查设备是否能正常上网,检查 URL 是否输入错误,或使用代理服务 @@ -70,7 +70,7 @@ account.failed.invalid_password=无效的密码 account.failed.invalid_token=请尝试登出并重新输入密码登录 account.failed.migration=你的帐号需要被迁移至微软帐号。如果你已经迁移,你需要使用微软登录方式登录迁移后的微软帐号。 account.failed.no_character=该帐号没有角色 -account.failed.server_disconnected=无法访问登录服务器。是否以离线模式继续登录(进入游戏后无法进入有正版验证的服务器)?或尝试重新登录? +account.failed.server_disconnected=无法访问登录服务器,账户信息刷新失败!\n你可以选择 跳过账户刷新(但启动游戏后可能会因为账户信息过期而导致无法进入开启正版验证的服务器)\n或尝试再次刷新账户? account.failed.server_response_malformed=无法解析认证服务器响应,可能是服务器故障 account.failed.wrong_account=登录了错误的帐号 account.hmcl.hint=你需要点击“登录”按钮,并在打开的网页中完成登录 @@ -83,6 +83,9 @@ account.injector.server=认证服务器 account.injector.server_url=服务器地址 account.injector.server_name=服务器名称 account.login=登录 +account.login.hint=我们不会保存你的密码 +account.login.skip=跳过账户刷新 +account.login.retry=再次刷新账户 account.login.offline=以离线模式登录 account.login.refresh=重新登录 account.login.refresh.microsoft.hint=因为账户授权失效,需要重新添加你的微软账户\n你需要按照以下步骤添加:\n \n1.点击“确定”按钮\n2.在网页浏览器显示的网站中输入 HMCL 显示的代码(自动拷贝,直接粘贴即可),并点击“下一步”\n3.按照网站的提示登录\n4.当网站提示“是否允许此应用访问你的信息?”的标识时,请点击“是”\n5.当网站提示“大功告成”的标识时,及表示登录成功!然后等待账户完成添加即可!\n \n-若网站提示“出现错误”的标识时,请重新按照以上步骤重新添加\n-若账户添加失败,请重新按照以上步骤重新添加\n-若设备网络环境不佳,可能登录网站加载很慢甚至无法加载,此时请使用 VPN 或代理服务器并重试\n-若登录微软账户的 Token (不是密码)泄露,可点击下方“解除账户绑定”解除登录授权,然后等待 Token 过期