From 8d876fbff547a69a94d66bedd4c0d09870e89e1d Mon Sep 17 00:00:00 2001 From: 3gf8jv4dv <3gf8jv4dv@gmail.com> Date: Mon, 23 Mar 2026 22:07:21 +0800 Subject: [PATCH] =?UTF-8?q?[release/3.6]=20=E4=B8=BA=E4=B8=8D=E5=90=8C?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E7=9A=84=20Dialog=20=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E7=9B=B8=E5=BA=94=E7=9A=84=E9=BB=98=E8=AE=A4=E6=A0=87=E9=A2=98?= =?UTF-8?q?=20(#5671)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/HMCL-dev/HMCL/pull/5079 https://github.com/HMCL-dev/HMCL/pull/5152 https://github.com/HMCL-dev/HMCL/pull/5633 Co-authored-by: neveler <55753029+neveler@users.noreply.github.com> Co-authored-by: Glavo Co-authored-by: 辞庐 <109708109+CiiLu@users.noreply.github.com> --- .../java/org/jackhuang/hmcl/ui/construct/MessageDialogPane.java | 2 +- HMCL/src/main/resources/assets/lang/I18N.properties | 1 + HMCL/src/main/resources/assets/lang/I18N_zh.properties | 1 + HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/MessageDialogPane.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/MessageDialogPane.java index 29d6b5d369..02ab26642a 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/MessageDialogPane.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/MessageDialogPane.java @@ -98,7 +98,7 @@ public final class MessageDialogPane extends HBox { { StackPane titlePane = new StackPane(); titlePane.getStyleClass().addAll("jfx-layout-heading", "title"); - titlePane.getChildren().setAll(new Label(title != null ? title : i18n("message.info"))); + titlePane.getChildren().setAll(new Label(title != null ? title : type.getDisplayName())); StackPane content = new StackPane(); content.getStyleClass().add("jfx-layout-body"); diff --git a/HMCL/src/main/resources/assets/lang/I18N.properties b/HMCL/src/main/resources/assets/lang/I18N.properties index d43c5f0114..c2f23d4d6a 100644 --- a/HMCL/src/main/resources/assets/lang/I18N.properties +++ b/HMCL/src/main/resources/assets/lang/I18N.properties @@ -865,6 +865,7 @@ message.info=Information message.success=Operation successfully completed message.unknown=Unknown message.warning=Warning +message.question=Question modpack=Modpacks modpack.choose=Choose Modpack diff --git a/HMCL/src/main/resources/assets/lang/I18N_zh.properties b/HMCL/src/main/resources/assets/lang/I18N_zh.properties index d3dc0ed927..e5cda66f6e 100644 --- a/HMCL/src/main/resources/assets/lang/I18N_zh.properties +++ b/HMCL/src/main/resources/assets/lang/I18N_zh.properties @@ -672,6 +672,7 @@ message.info=提示 message.success=完成 message.unknown=未知 message.warning=警告 +message.question=確認 modpack=模組包 modpack.choose=選取要安裝的遊戲模組包檔案 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 f1764307c1..a3a1c35a02 100644 --- a/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties +++ b/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties @@ -682,6 +682,7 @@ message.info=提示 message.success=完成 message.unknown=未知 message.warning=警告 +message.question=确认 modpack=整合包 modpack.choose=选择要安装的游戏整合包文件