-
Notifications
You must be signed in to change notification settings - Fork 812
优化 Fabric / Quilt API 安装提示 #4792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
CiiLu
commented
Nov 15, 2025
3gf8jv4dv
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
总体上挺好。
HMCL/src/main/java/org/jackhuang/hmcl/ui/download/AbstractInstallersPage.java
Show resolved
Hide resolved
Co-authored-by: 3gf8jv4dv <[email protected]>
| install.installer.fabric=Fabric | ||
| install.installer.fabric-api=Fabric API | ||
| install.installer.fabric-api.warning=警告:Fabric API 是一个模组,将会被安装到新游戏的模组文件夹。请你在安装游戏后不要修改当前游戏的“运行路径”设置。如果你在之后修改了相关设置,则需要重新安装 Fabric API。 | ||
| install.installer.fabric-quilt-api.warning=Fabric / Quilt API 是一个模组,将会被安装到新游戏的模组文件夹。请你在安装游戏后不要修改当前游戏的“版本隔离”设置。如果你在之后修改了相关设置,则需要重新安装 Fabric / Quilt API。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我认为应该把这里这里的 Fabric / Quilt API 改成 %s,然后按实际安装的模组来显示。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request optimizes the Fabric / Quilt API installation warning prompt by consolidating the messages for both APIs and adding a "do not show again" option to improve the user experience.
- Updates warning message from "Fabric API" to "Fabric / Quilt API" across all localization files
- Adds a dismissible dialog with a "do not show again" option to prevent repeated warnings
- Refines Chinese terminology from "运行路径" (running path) to "版本隔离" (version isolation) for better clarity
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| AbstractInstallersPage.java | Implements unified warning dialog for both Fabric API and Quilt API with dismissible option using a persistent tip flag |
| I18N.properties | Updates English warning message to reference both Fabric and Quilt API |
| I18N_zh_CN.properties | Updates Simplified Chinese warning with improved terminology ("版本隔离" instead of "运行路径") |
| I18N_zh.properties | Updates Traditional Chinese warning to reference both APIs |
| I18N_uk.properties | Updates Ukrainian warning to reference both APIs |
| I18N_ru.properties | Updates Russian warning to reference both APIs |
| I18N_lzh.properties | Updates Classical Chinese warning by removing the warning prefix |
| I18N_ja.properties | Updates Japanese warning to reference both APIs |
| I18N_es.properties | Updates Spanish warning to reference both APIs |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| install.installer.fabric=Fabric | ||
| install.installer.fabric-api=Fabric API | ||
| install.installer.fabric-api.warning=Попередження: Fabric API - це мод, і він буде встановлений у каталог модів екземпляра гри. Не змінюйте робочий каталог гри, інакше Fabric API не працюватиме. Якщо ви все ж хочете змінити каталог, вам слід перевстановити його. | ||
| install.installer.fabric-quilt-api.warning=Fabric / Quilt API - це мод, і він буде встановлений у каталог модів екземпляра гри. Не змінюйте робочий каталог гри, інакше Fabric API не працюватиме. Якщо ви все ж хочете змінити каталог, вам слід перевстановити його. |
Copilot
AI
Jan 3, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The warning message is inconsistent. The first part mentions "Fabric / Quilt API" but the second part still refers to only "Fabric API" ("Fabric API не працюватиме"). This should be updated to mention "Fabric / Quilt API" for consistency.
| install.installer.fabric-quilt-api.warning=Fabric / Quilt API - це мод, і він буде встановлений у каталог модів екземпляра гри. Не змінюйте робочий каталог гри, інакше Fabric API не працюватиме. Якщо ви все ж хочете змінити каталог, вам слід перевстановити його. | |
| install.installer.fabric-quilt-api.warning=Fabric / Quilt API - це мод, і він буде встановлений у каталог модів екземпляра гри. Не змінюйте робочий каталог гри, інакше Fabric / Quilt API не працюватиме. Якщо ви все ж хочете змінити каталог, вам слід перевстановити його. |
| install.installer.fabric=Fabric | ||
| install.installer.fabric-api=Fabric API | ||
| install.installer.fabric-api.warning=Предупреждение: Fabric API является модом и будет установлен в папку mod в сборке игры. Пожалуйста, не меняйте рабочую папку сборки, иначе Fabric API не будет работать. Если вы все же хотите изменить папку, вам следует переустановить сборку. | ||
| install.installer.fabric-quilt-api.warning=Fabric / Quilt API является модом и будет установлен в папку mod в сборке игры. Пожалуйста, не меняйте рабочую папку сборки, иначе Fabric API не будет работать. Если вы все же хотите изменить папку, вам следует переустановить сборку. |
Copilot
AI
Jan 3, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The warning message is inconsistent. The first part mentions "Fabric / Quilt API" but the second part still refers to only "Fabric API" ("Fabric API не будет работать"). This should be updated to mention "Fabric / Quilt API" for consistency.
| install.installer.fabric-quilt-api.warning=Fabric / Quilt API является модом и будет установлен в папку mod в сборке игры. Пожалуйста, не меняйте рабочую папку сборки, иначе Fabric API не будет работать. Если вы все же хотите изменить папку, вам следует переустановить сборку. | |
| install.installer.fabric-quilt-api.warning=Fabric / Quilt API является модом и будет установлен в папку mod в сборке игры. Пожалуйста, не меняйте рабочую папку сборки, иначе Fabric / Quilt API не будет работать. Если вы все же хотите изменить папку, вам следует переустановить сборку. |
| install.installer.fabric=Fabric | ||
| install.installer.fabric-api=Fabric API | ||
| install.installer.fabric-api.warning=Atención: Fabric API es un mod, y se instalará en el directorio de mods de la instancia del juego. Por favor, no cambies el directorio de trabajo del juego, o el Fabric API no funcionará. Si quieres cambiar esta configuración, debes reinstalarlo. | ||
| install.installer.fabric-quilt-api.warning=Fabric / Quilt API es un mod, y se instalará en el directorio de mods de la instancia del juego. Por favor, no cambies el directorio de trabajo del juego, o el Fabric API no funcionará. Si quieres cambiar esta configuración, debes reinstalarlo. |
Copilot
AI
Jan 3, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The warning message is inconsistent. The first part mentions "Fabric / Quilt API" but the second part still refers to only "el Fabric API" ("el Fabric API no funcionará"). This should be updated to mention "Fabric / Quilt API" for consistency.
| install.installer.fabric-quilt-api.warning=Fabric / Quilt API es un mod, y se instalará en el directorio de mods de la instancia del juego. Por favor, no cambies el directorio de trabajo del juego, o el Fabric API no funcionará. Si quieres cambiar esta configuración, debes reinstalarlo. | |
| install.installer.fabric-quilt-api.warning=Fabric / Quilt API es un mod, y se instalará en el directorio de mods de la instancia del juego. Por favor, no cambies el directorio de trabajo del juego, o la Fabric / Quilt API no funcionará. Si quieres cambiar esta configuración, debes reinstalarlo. |