Skip to content

修复语言为文言时下载游戏的选择模组加载器页面的版本号未本地化的问题#5359

Merged
Glavo merged 4 commits intoHMCL-dev:mainfrom
Wulian233:噫吁嚱
Feb 26, 2026

Hidden character warning

The head ref may contain hidden characters: "\u566b\u5401\u56b1"
Merged

修复语言为文言时下载游戏的选择模组加载器页面的版本号未本地化的问题#5359
Glavo merged 4 commits intoHMCL-dev:mainfrom
Wulian233:噫吁嚱

Conversation

@Wulian233
Copy link
Contributor

修复后

屏幕截图 2026-01-29 163915 屏幕截图 2026-01-29 165254

修复前

屏幕截图 2026-01-29 165322 屏幕截图 2026-01-29 165345

Copy link
Contributor

Copilot AI left a 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 PR fixes the localization of version numbers when the language is set to Classical Chinese (文言). The version numbers displayed on the mod loader selection page during game download were not being properly translated.

Changes:

  • Added localization for game version numbers in the mod loader list view
  • Added localization for installer version numbers in the installers page

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
VersionsPage.java Applied I18n localization to game version numbers displayed as tags/subtitles for mod loaders (Forge, Fabric, etc.)
InstallersPage.java Applied I18n localization to mod loader version numbers displayed in the installers page

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Override
public String getTitle() {
return group.getGame().versionProperty().get().version();
return ((RemoteVersion) controller.getSettings().get("game")).getGameVersion();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

原本页面标题中的游戏版本号是本地化的,你这样修改让标题不再是本地化的。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这是用在实例名字和实例名输入框的,我们不希望它被本地化成如一點二一點一一-neoforge的形式https://github.com/HMCL-dev/HMCL/pull/5359/changes#r2741429594

 private void setTxtNameWithLoaders() {
        StringBuilder nameBuilder = new StringBuilder(getTitle());
    }

@Glavo Glavo merged commit 5c36c00 into HMCL-dev:main Feb 26, 2026
2 checks passed
@Wulian233 Wulian233 deleted the 噫吁嚱 branch February 26, 2026 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants