在陶瓦联机页面向非中国内地用户添加提示框 - #4869
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds a regional availability warning for the Terracotta multiplayer feature when accessed by users outside Mainland China. The warning appears as a non-intrusive HintPane at the top of the Terracotta controller page instead of a blocking dialog.
- Adds localized warning messages in Simplified Chinese, Traditional Chinese, and English
- Displays a yellow warning banner on the Terracotta page for non-Mainland China users
- Refactors imports to use wildcard notation consistent with codebase conventions
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| I18N_zh_CN.properties | Adds Simplified Chinese warning message about regional service availability |
| I18N_zh.properties | Adds Traditional Chinese warning message about regional service availability |
| I18N.properties | Adds English warning message about regional service availability |
| TerracottaControllerPage.java | Implements region detection and displays warning HintPane for non-Mainland China users |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| 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 Mainland China and may not be available in your region. |
There was a problem hiding this comment.
现在应该用哪个词呢?想知道 Glavo 怎么看
AI 翻译的,我没注意看。
根据官方的意见,应该总是使用 Chinese Mainland 这个称呼,另一个称呼存在政治上的风险。稍后我会把它加入 Gradle 自动检测规则里。
There was a problem hiding this comment.
AI 翻译的,我没注意看。
根据官方的意见,应该总是使用 Chinese Mainland 这个称呼,另一个称呼存在政治上的风险。稍后我会把它加入 Gradle 自动检测规则里。
行。
还有一种选择是不强制弹窗,检测到非中国大陆地区就在陶瓦联机页面最上面放一个警告框。