From b20596bc4d76c72e46a0d62e711b8c6f61912f99 Mon Sep 17 00:00:00 2001 From: 3gf8jv4dv <3gf8jv4dv@gmail.com> Date: Mon, 14 Oct 2024 18:33:53 +0800 Subject: [PATCH] Change i18n key of launcher update channel, revise English and Chinese translations --- .../org/jackhuang/hmcl/ui/main/MainPage.java | 4 +-- .../jackhuang/hmcl/ui/main/SettingsView.java | 2 +- .../resources/assets/lang/I18N.properties | 30 +++++++++++-------- .../resources/assets/lang/I18N_es.properties | 12 ++++---- .../resources/assets/lang/I18N_ja.properties | 12 ++++---- .../resources/assets/lang/I18N_ru.properties | 12 ++++---- .../resources/assets/lang/I18N_zh.properties | 29 ++++++++++-------- .../assets/lang/I18N_zh_CN.properties | 29 ++++++++++-------- 8 files changed, 72 insertions(+), 58 deletions(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java index d97a0a9aa4b..6e337fcd045 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java @@ -104,9 +104,9 @@ public final class MainPage extends StackPane implements DecoratorPage { if (Metadata.isNightly() || (Metadata.isDev() && !Objects.equals(Metadata.VERSION, config().getShownTips().get(ANNOUNCEMENT)))) { announcementPane = new VBox(16); if (Metadata.isNightly()) { - announcementPane.getChildren().add(new AnnouncementCard(i18n("update.channel.nightly.title"), i18n("update.channel.nightly.hint"))); + announcementPane.getChildren().add(new AnnouncementCard(i18n("update.channel.snapshot.title"), i18n("update.channel.snapshot.hint"))); } else if (Metadata.isDev()) { - announcementPane.getChildren().add(new AnnouncementCard(i18n("update.channel.dev.title"), i18n("update.channel.dev.hint"))); + announcementPane.getChildren().add(new AnnouncementCard(i18n("update.channel.beta.title"), i18n("update.channel.beta.hint"))); } getChildren().add(announcementPane); } diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/SettingsView.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/SettingsView.java index 8995e194987..84f8eab4614 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/SettingsView.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/SettingsView.java @@ -133,7 +133,7 @@ public SettingsView() { content.setSpacing(8); chkUpdateStable = new JFXRadioButton(i18n("update.channel.stable")); - chkUpdateDev = new JFXRadioButton(i18n("update.channel.dev")); + chkUpdateDev = new JFXRadioButton(i18n("update.channel.beta")); TextFlow noteWrapper = new TextFlow(new Text(i18n("update.note"))); VBox.setMargin(noteWrapper, new Insets(10, 0, 0, 0)); diff --git a/HMCL/src/main/resources/assets/lang/I18N.properties b/HMCL/src/main/resources/assets/lang/I18N.properties index 14eb8e13e3c..2ed0da426db 100644 --- a/HMCL/src/main/resources/assets/lang/I18N.properties +++ b/HMCL/src/main/resources/assets/lang/I18N.properties @@ -1236,19 +1236,23 @@ unofficial.hint=You are using an unofficial build of HMCL. We cannot guarantee i update=Update update.accept=Update update.changelog=Changelog -update.channel.dev=Beta -update.channel.dev.hint=You are currently using a beta build of the launcher, which may include some extra features, but is also sometimes more unstable than the release versions.\n\ -\n\ -If you encounter any bug or issue, you can go to the feedback page to report it, or tell us in our Discord or QQ community.\n\ -\n\ -Click here to hide this tooltip for the current version. -update.channel.dev.title=Beta Version Notice -update.channel.nightly=Nightly -update.channel.nightly.hint=You are currently using a nightly build of the launcher, which may include some extra features, but is also always more unstable than the other versions.\n\ -\n\ -If you encounter any bug or issue, you can go to the feedback page to report it, or tell us in our Discord or QQ community. -update.channel.nightly.title=Nightly Version Notice -update.channel.stable=Release +update.channel.beta=Beta +update.channel.beta.hint=You are currently using a Beta channel build of the launcher, which may include some extra features, but is also sometimes more unstable than the stable channel.\n\ + \n\ + If you encounter any bugs or issues, please go to the "Settings → Feedback" or submit your feedback through the following channels.\n\ + \n\ + GitHub Discord QQ Group\n\ + \n\ + Click Here to Hide This Tooltip for the Current Channel +update.channel.beta.title=Beta Channel Notice +update.channel.snapshot=Snapshot +update.channel.snapshot.hint=You are currently using a Snapshot channel build of the launcher, which may include some extra features, but is also always more unstable than the other channels.\n\ + \n\ + If you encounter any bugs or issues, please go to the "Settings → Feedback" or submit your feedback through the following channels.\n\ + \n\ + GitHub Discord QQ Group +update.channel.snapshot.title=Snapshot Channel Notice +update.channel.stable=Stable update.checking=Checking for Updates update.failed=Unable to update update.found=Update Available! diff --git a/HMCL/src/main/resources/assets/lang/I18N_es.properties b/HMCL/src/main/resources/assets/lang/I18N_es.properties index 8cb9008479e..d5d5f37a985 100644 --- a/HMCL/src/main/resources/assets/lang/I18N_es.properties +++ b/HMCL/src/main/resources/assets/lang/I18N_es.properties @@ -1031,18 +1031,18 @@ system.operating_system=Sistema operativo update=Actualizar update.accept=Actualizar update.changelog=Registro de cambios -update.channel.dev=Beta -update.channel.dev.hint=Actualmente está utilizando una versión beta del launcher, que puede incluir algunas características adicionales, pero también es más inestable que las versiones de lanzamiento.\n\ +update.channel.beta=Beta +update.channel.beta.hint=Actualmente está utilizando una versión beta del launcher, que puede incluir algunas características adicionales, pero también es más inestable que las versiones de lanzamiento.\n\ \n\ Si encuentra algún error o problema, puede ir a la página de comentarios para informar de ello, o bien para decírnoslo en nuestro Discord o en la comunidad QQ.\n\ \n\ Haga clic aquí para ocultar el recordatorio para la versión de prueba actual. -update.channel.dev.title=Aviso de versión beta -update.channel.nightly=Nocturna -update.channel.nightly.hint=Estás utilizando una versión nocturna del launcher, que puede incluir algunas características adicionales, pero también es siempre más inestable que las otras versiones.\n\ +update.channel.beta.title=Aviso de versión beta +update.channel.snapshot=Nocturna +update.channel.snapshot.hint=Estás utilizando una versión nocturna del launcher, que puede incluir algunas características adicionales, pero también es siempre más inestable que las otras versiones.\n\ \n\ Si encuentra algún error o problema, puede ir a la página de comentarios para informar de ello, o bien para decírnoslo en nuestro Discord o en la comunidad QQ community. -update.channel.nightly.title=Aviso de versión nocturna +update.channel.snapshot.title=Aviso de versión nocturna update.channel.stable=Estable update.checking=Buscando actualizaciones update.failed=No se puede actualizar diff --git a/HMCL/src/main/resources/assets/lang/I18N_ja.properties b/HMCL/src/main/resources/assets/lang/I18N_ja.properties index 8e705640a9d..621e73b07a5 100644 --- a/HMCL/src/main/resources/assets/lang/I18N_ja.properties +++ b/HMCL/src/main/resources/assets/lang/I18N_ja.properties @@ -852,17 +852,17 @@ system.operating_system=OS update=更新 update.accept=更新 update.changelog=変更 -update.channel.dev=ベータ -update.channel.dev.hint=ベータ版を使用しています。ベータ版には、リリースバージョンと比較していくつかの追加機能が含まれている可能性があり、テストにのみ使用されます。\n\ +update.channel.beta=ベータ +update.channel.beta.hint=ベータ版を使用しています。ベータ版には、リリースバージョンと比較していくつかの追加機能が含まれている可能性があり、テストにのみ使用されます。\n\ ベータ版は不安定なはずです!\n\ 問題が発生した場合は、フィードバックページにアクセスして報告するか、チャット DiscordまたはQQで問題を報告します。\n\n\ 現在のテスト版のヒントを非表示にするには、ここをクリックしてください。 -update.channel.dev.title=ベータ版のヒント -update.channel.nightly=アルファ -update.channel.nightly.hint=アルファ版を使用しています。これには、ベータ版およびリリース版と比較していくつかの追加機能が含まれている可能性があり、テストにのみ使用されます。\n\ +update.channel.beta.title=ベータ版のヒント +update.channel.snapshot=アルファ +update.channel.snapshot.hint=アルファ版を使用しています。これには、ベータ版およびリリース版と比較していくつかの追加機能が含まれている可能性があり、テストにのみ使用されます。\n\ アルファ版は不安定です!\n\ 問題が発生した場合は、フィードバックページにアクセスして報告するか、チャット Discordで問題を報告します。 -update.channel.nightly.title=アルファ版のヒント +update.channel.snapshot.title=アルファ版のヒント update.channel.stable=リリース update.checking=更新の確認 update.failed=更新の実行に失敗しました diff --git a/HMCL/src/main/resources/assets/lang/I18N_ru.properties b/HMCL/src/main/resources/assets/lang/I18N_ru.properties index 36c792bf78a..3bd969bec04 100644 --- a/HMCL/src/main/resources/assets/lang/I18N_ru.properties +++ b/HMCL/src/main/resources/assets/lang/I18N_ru.properties @@ -926,17 +926,17 @@ system.operating_system=Операционная система update=Обновление update.accept=Обновить update.changelog=Изменения -update.channel.dev=Бета -update.channel.dev.hint=Вы используете бета-версию, которая может включать некоторые дополнительные функции по сравнению с релизной версией, используемой только для тестирования.\n\ +update.channel.beta=Бета +update.channel.beta.hint=Вы используете бета-версию, которая может включать некоторые дополнительные функции по сравнению с релизной версией, используемой только для тестирования.\n\ Бета-версия может быть нестабильной!\n\ Если вы встретили какие-то проблемы, вы можете зайти на страницу обратной связи, чтобы сообщить о них, или присоединиться к чату Discord или QQ, чтобы сообщить о проблемах.\n\n\ Нажмите здесь, чтобы скрыть подсказку для текущей тестовой версии. -update.channel.dev.title=Подсказки для бета-версии -update.channel.nightly=Альфа -update.channel.nightly.hint=Вы используете альфа-версию, которая может включать некоторые дополнительные функциональные возможности по сравнению с бета-версией и версией релиза, используемой только для тестирования.\n\ +update.channel.beta.title=Подсказки для бета-версии +update.channel.snapshot=Альфа +update.channel.snapshot.hint=Вы используете альфа-версию, которая может включать некоторые дополнительные функциональные возможности по сравнению с бета-версией и версией релиза, используемой только для тестирования.\n\ Альфа-версия может быть нестабильной!\n\ Если вы встретили какие-то проблемы, вы можете зайти на страницу обратной связи, чтобы сообщить о них, или присоединиться к чату Discord или QQ, чтобы сообщить о проблемах. -update.channel.nightly.title=Подсказки для альфа-версии +update.channel.snapshot.title=Подсказки для альфа-версии update.channel.stable=Релиз update.checking=Проверка наличия обновлений update.failed=Не удалось выполнить обновление diff --git a/HMCL/src/main/resources/assets/lang/I18N_zh.properties b/HMCL/src/main/resources/assets/lang/I18N_zh.properties index 78971778f53..ffd2d5585a1 100644 --- a/HMCL/src/main/resources/assets/lang/I18N_zh.properties +++ b/HMCL/src/main/resources/assets/lang/I18N_zh.properties @@ -1095,18 +1095,23 @@ unofficial.hint=你正在使用非官方構建的 HMCL,我們無法保證其 update=啟動器更新 update.accept=更新 update.changelog=更新日誌 -update.channel.dev=測試版 -update.channel.dev.hint=你正在使用測試版。測試版包含一些未在正式版中包含的測試性功能,僅用於體驗新功能。\n\ - 測試版功能未受充分驗證,使用起來可能不穩定!\n\ - 如果你遇到了使用問題,可以在設置的 回饋頁面 中進行回饋,或加入回饋頁面中提供的 DiscordQQ 群以回饋問題。\n\n\ - 點擊此處為當前版本隱藏該提示。 -update.channel.dev.title=測試版提示 -update.channel.nightly=預覽版 -update.channel.nightly.hint=你正在使用預覽版。預覽版可能會每天更新一次,包含一些未在正式版和測試版中包含的測試性功能,僅用於體驗新功能\n\ - 測試版功能未受充分驗證,使用起來可能不穩定!\n\ - 如果你遇到了使用問題,可以在設置的 回饋頁面 中進行回饋,或加入 DiscordQQ 群以回饋問題。 -update.channel.nightly.title=預覽版提示 -update.channel.stable=建議版本 +update.channel.beta=測試版 +update.channel.beta.hint=你正在使用 HMCL 測試版。測試版包含一些未在穩定版中包含的測試性功能,僅用於體驗新功能。測試版功能未受充分驗證,使用起來可能不穩定!\n\ + \n\ + 如果你遇到了使用問題,可以透過「設定 → 回報」頁面或下方提供的管道進行回報。\n\ + \n\ + Discord QQ 群 GitHub\n\ + \n\ + 為目前版本隱藏該提示。 +update.channel.beta.title=測試版提示 +update.channel.snapshot=快照版 +update.channel.snapshot.hint=你正在使用 HMCL 快照版。快照版更新較為頻繁,包含一些未在穩定版和測試版中包含的測試性功能,僅用於體驗新功能。快照版功能未受充分驗證,使用起來可能不穩定!\n\ + \n\ + 如果你遇到了使用問題,可以透過「設定 → 回報」頁面或下方提供的管道進行回報。\n\ + \n\ + Discord QQ 群 GitHub +update.channel.snapshot.title=快照版提示 +update.channel.stable=穩定版 update.checking=正在檢查更新 update.failed=更新失敗 update.found=發現到更新 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 945552efaf8..440571ed67b 100644 --- a/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties +++ b/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties @@ -1094,18 +1094,23 @@ unofficial.hint=你正在使用非官方构建的 HMCL,我们无法保证其 update=启动器更新 update.accept=更新 update.changelog=更新日志 -update.channel.dev=测试版 -update.channel.dev.hint=你正在使用测试版。测试版包含一些未在正式版中包含的测试性功能,仅用于体验新功能。\n\ - 测试版功能未受充分验证,使用起来可能不稳定!下载稳定版\n\ - 如果你遇到了使用问题,可以在设置的 反馈页面 中进行反馈,或加入反馈页面中提供的 DiscordQQ 群以反馈问题。欢迎关注 B 站账号 huanghongxun 以关注 HMCL 的开发进展。\n\n\ - 点击此处为当前版本隐藏该提示。 -update.channel.dev.title=测试版提示 -update.channel.nightly=预览版 -update.channel.nightly.hint=你正在使用预览版。预览版可能会每天更新一次,包含一些未在正式版和测试版中包含的测试性功能,仅用于体验新功能。\n\ - 测试版功能未受充分验证,使用起来可能不稳定!下载稳定版\n\ - 如果你遇到了使用问题,可以在设置的 反馈页面 中进行反馈,或加入反馈页面中提供的 DiscordQQ 群以反馈问题。欢迎关注 B 站账号 huanghongxun 以关注 HMCL 的开发进展。 -update.channel.nightly.title=预览版提示 -update.channel.stable=推荐版本 +update.channel.beta=测试版 +update.channel.beta.hint=你正在使用 HMCL 测试版。测试版包含一些未在稳定版中包含的测试性功能,仅用于体验新功能。测试版功能未受充分验证,使用起来可能不稳定!\n\ + \n\ + 如果你使用时遇到了问题,可以通过“设置 → 反馈”页面或下方提供的渠道进行反馈。欢迎关注 B 站账号 @huanghongxun 以关注 HMCL 的开发进展。\n\ + \n\ + 下载稳定版 QQ 群 GitHub Discord bilibili @huanghongxun\n\ + \n\ + 为当前版本隐藏该提示。 +update.channel.beta.title=测试版提示 +update.channel.snapshot=快照版 +update.channel.snapshot.hint=你正在使用 HMCL 快照版。快照版更新较为频繁,包含一些未在稳定版和测试版中包含的测试性功能,仅用于体验新功能。快照版功能未受充分验证,使用起来可能不稳定!\n\ + \n\ + 如果你使用时遇到了问题,可以通过“设置 → 反馈”页面或下方提供的渠道进行反馈。欢迎关注 B 站账号 @huanghongxun 以关注 HMCL 的开发进展。\n\ + \n\ + 下载稳定版 QQ 群 GitHub Discord bilibili @huanghongxun +update.channel.snapshot.title=快照版提示 +update.channel.stable=稳定版 update.checking=正在检查更新 update.failed=更新失败 update.found=发现更新