修复整合包下载失败提示窗标题未正确格式化的问题 (#2980)

* 修复 i18n 问题

* update

* update
This commit is contained in:
Glavo 2024-04-08 21:49:54 +08:00 committed by GitHub
parent a5e04a7b81
commit 32f8ffad46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 2 deletions

View File

@ -83,7 +83,7 @@ public final class Versions {
} catch (IOException e) {
Controllers.dialog(
i18n("install.failed.downloading.detail", file.getFile().getUrl()) + "\n" + StringUtils.getStackTrace(e),
i18n("download.failed"), MessageDialogPane.MessageType.ERROR);
i18n("download.failed.no_code", file.getFile().getUrl()), MessageDialogPane.MessageType.ERROR);
return;
}
Controllers.taskDialog(
@ -96,7 +96,7 @@ public final class Versions {
} else {
Controllers.dialog(
i18n("install.failed.downloading.detail", file.getFile().getUrl()) + "\n" + StringUtils.getStackTrace(e),
i18n("download.failed"), MessageDialogPane.MessageType.ERROR);
i18n("download.failed.no_code", file.getFile().getUrl()), MessageDialogPane.MessageType.ERROR);
}
}).executor(true),
i18n("message.downloading"),

View File

@ -323,6 +323,7 @@ download.existing=The file cannot be saved because it already exists. You can us
download.external_link=Open Download Website
download.failed=Failed to download %1$s, response code: %2$d
download.failed.empty=No versions are available, please click here to go back.
download.failed.no_code=Failed to download %s
download.failed.refresh=Unable to fetch version list. Please click here to retry.
download.game=Game
download.provider.bmclapi=BMCLAPI (bangbang93, https://bmclapi2.bangbang93.com/)

View File

@ -332,6 +332,7 @@ download.existing=檔案已存在,無法保存。你可以選擇另存為將
download.external_link=打開下載網站
download.failed=下載失敗: %1$s錯誤碼%2$d
download.failed.empty=沒有能安裝的版本,按一下此處返回。
download.failed.no_code=下載失敗: %s
download.failed.refresh=載入版本列表失敗,按一下此處重試。
download.game=新遊戲
download.provider.bmclapi=BMCLAPI (bangbang93https://bmclapi2.bangbang93.com/)

View File

@ -333,6 +333,7 @@ download.existing=文件已存在,无法保存。你可以在模组选择栏
download.external_link=打开下载网站
download.failed=下载失败: %1$s错误码%2$d
download.failed.empty=[没有可供安装的版本,点击此处返回]
download.failed.no_code=下载失败: %s
download.failed.refresh=[加载版本列表失败,点击此处重试]
download.game=新游戏
download.provider.bmclapi=BMCLAPIbangbang93https://bmclapi2.bangbang93.com