From 75292d2a5225d92d0fe757ce14b4b4d5a15f242b Mon Sep 17 00:00:00 2001 From: Glavo Date: Sun, 30 Nov 2025 21:47:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E9=99=B6=E7=93=A6=E8=81=94=E6=9C=BA?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=90=91=E9=9D=9E=E4=B8=AD=E5=9B=BD=E5=86=85?= =?UTF-8?q?=E5=9C=B0=E7=94=A8=E6=88=B7=E6=B7=BB=E5=8A=A0=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E6=A1=86=20(#4869)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui/terracotta/TerracottaControllerPage.java | 16 +++++++++------- .../main/resources/assets/lang/I18N.properties | 1 + .../resources/assets/lang/I18N_zh.properties | 1 + .../resources/assets/lang/I18N_zh_CN.properties | 1 + 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/terracotta/TerracottaControllerPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/terracotta/TerracottaControllerPage.java index ea8d364a2..2a370178a 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/terracotta/TerracottaControllerPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/terracotta/TerracottaControllerPage.java @@ -58,14 +58,10 @@ import org.jackhuang.hmcl.ui.SVG; import org.jackhuang.hmcl.ui.WeakListenerHolder; import org.jackhuang.hmcl.ui.animation.ContainerAnimations; import org.jackhuang.hmcl.ui.animation.TransitionPane; -import org.jackhuang.hmcl.ui.construct.ComponentList; -import org.jackhuang.hmcl.ui.construct.ComponentSublist; -import org.jackhuang.hmcl.ui.construct.MessageDialogPane; -import org.jackhuang.hmcl.ui.construct.RipplerContainer; -import org.jackhuang.hmcl.ui.construct.SpinnerPane; -import org.jackhuang.hmcl.ui.construct.TwoLineListItem; +import org.jackhuang.hmcl.ui.construct.*; import org.jackhuang.hmcl.ui.versions.Versions; import org.jackhuang.hmcl.util.i18n.I18n; +import org.jackhuang.hmcl.util.i18n.LocaleUtils; import org.jackhuang.hmcl.util.io.FileUtils; import org.jackhuang.hmcl.util.io.Zipper; import org.jackhuang.hmcl.util.logging.Logger; @@ -529,7 +525,13 @@ public class TerracottaControllerPage extends StackPane { UI_STATE.addListener(new WeakChangeListener<>(listener)); VBox content = new VBox(10); - content.getChildren().addAll(ComponentList.createComponentListTitle(i18n("terracotta.status")), transition); + content.getChildren().add(ComponentList.createComponentListTitle(i18n("terracotta.status"))); + if (!LocaleUtils.IS_CHINA_MAINLAND) { + HintPane hintPane = new HintPane(MessageDialogPane.MessageType.WARNING); + hintPane.setText(i18n("terracotta.unsupported.region")); + content.getChildren().add(hintPane); + } + content.getChildren().add(transition); content.setPadding(new Insets(10)); content.setFillWidth(true); diff --git a/HMCL/src/main/resources/assets/lang/I18N.properties b/HMCL/src/main/resources/assets/lang/I18N.properties index 2631a0593..1c7964d5c 100644 --- a/HMCL/src/main/resources/assets/lang/I18N.properties +++ b/HMCL/src/main/resources/assets/lang/I18N.properties @@ -1499,6 +1499,7 @@ terracotta.unsupported=Multiplayer is not yet supported on the current platform. terracotta.unsupported.os.windows.old=Multiplayer requires Windows 10 or later. Please update your system. terracotta.unsupported.arch.32bit=Multiplayer is not supported on 32-bit systems. Please upgrade to a 64-bit system. terracotta.unsupported.arch.loongarch64_ow=Multiplayer is not supported on Linux LoongArch64 Old World distributions. Please update to a New World distribution (such as AOSC OS). +terracotta.unsupported.region=The multiplayer feature is currently only available to users in Chinese Mainland and may not be available in your region. unofficial.hint=You are using an unofficial build of HMCL. We cannot guarantee its security. diff --git a/HMCL/src/main/resources/assets/lang/I18N_zh.properties b/HMCL/src/main/resources/assets/lang/I18N_zh.properties index 935d5d3a1..b35d64089 100644 --- a/HMCL/src/main/resources/assets/lang/I18N_zh.properties +++ b/HMCL/src/main/resources/assets/lang/I18N_zh.properties @@ -1287,6 +1287,7 @@ terracotta.unsupported=多人聯機功能尚未支援目前平台。 terracotta.unsupported.os.windows.old=多人聯機功能需要 Windows 10 或更高版本。請更新系統。 terracotta.unsupported.arch.32bit=多人聯機功能不支援 32 位元系統。請更新至 64 位元系統。 terracotta.unsupported.arch.loongarch64_ow=多人聯機功能不支援 Linux LoongArch64 舊世界發行版,請更新至新世界發行版 (如 AOSC OC)。 +terracotta.unsupported.region=多人聯機功能目前僅為中國內地用戶提供服務,在您所在地區可能不可用。 unofficial.hint=你正在使用第三方提供的 HMCL。我們無法保證其安全性,請注意甄別。 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 e118e589b..cb79828ca 100644 --- a/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties +++ b/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties @@ -1297,6 +1297,7 @@ terracotta.unsupported=多人联机功能尚不支持当前平台。 terracotta.unsupported.os.windows.old=多人联机功能需要 Windows 10 或更高版本。请更新系统。 terracotta.unsupported.arch.32bit=多人联机功能不支持 32 位系统。请更新至 64 位系统。 terracotta.unsupported.arch.loongarch64_ow=多人联机功能不支持 Linux LoongArch64 旧世界发行版,请更新至新世界发行版 (如 AOSC OC)。 +terracotta.unsupported.region=多人联机功能目前仅为中国内地用户提供服务,在您所在地区可能不可用。 unofficial.hint=你正在使用非官方构建的 HMCL。我们无法保证其安全性,请注意甄别。