Skip to content

Commit 8d876fb

Browse files
3gf8jv4dvnevelerGlavoCiiLu
authored
[release/3.6] 为不同类型的 Dialog 指定相应的默认标题 (#5671)
#5079 #5152 #5633 Co-authored-by: neveler <55753029+neveler@users.noreply.github.com> Co-authored-by: Glavo <zjx001202@gmail.com> Co-authored-by: 辞庐 <109708109+CiiLu@users.noreply.github.com>
1 parent 4c1f15c commit 8d876fb

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/MessageDialogPane.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public MessageDialogPane(@NotNull String text, @Nullable String title, @NotNull
9898
{
9999
StackPane titlePane = new StackPane();
100100
titlePane.getStyleClass().addAll("jfx-layout-heading", "title");
101-
titlePane.getChildren().setAll(new Label(title != null ? title : i18n("message.info")));
101+
titlePane.getChildren().setAll(new Label(title != null ? title : type.getDisplayName()));
102102

103103
StackPane content = new StackPane();
104104
content.getStyleClass().add("jfx-layout-body");

HMCL/src/main/resources/assets/lang/I18N.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,7 @@ message.info=Information
865865
message.success=Operation successfully completed
866866
message.unknown=Unknown
867867
message.warning=Warning
868+
message.question=Question
868869

869870
modpack=Modpacks
870871
modpack.choose=Choose Modpack

HMCL/src/main/resources/assets/lang/I18N_zh.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,7 @@ message.info=提示
672672
message.success=完成
673673
message.unknown=未知
674674
message.warning=警告
675+
message.question=確認
675676

676677
modpack=模組包
677678
modpack.choose=選取要安裝的遊戲模組包檔案

HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,7 @@ message.info=提示
682682
message.success=完成
683683
message.unknown=未知
684684
message.warning=警告
685+
message.question=确认
685686

686687
modpack=整合包
687688
modpack.choose=选择要安装的游戏整合包文件

0 commit comments

Comments
 (0)