-
Notifications
You must be signed in to change notification settings - Fork 912
统一管理页面工具栏 下载 按钮文案 #6499
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
统一管理页面工具栏 下载 按钮文案 #6499
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,15 +36,17 @@ | |
| import javafx.scene.layout.StackPane; | ||
| import javafx.stage.FileChooser; | ||
| import javafx.util.Duration; | ||
| import org.jackhuang.hmcl.addon.*; | ||
| import org.jackhuang.hmcl.addon.LocalAddonFile; | ||
| import org.jackhuang.hmcl.addon.RemoteAddon; | ||
| import org.jackhuang.hmcl.addon.RemoteAddonRepository; | ||
| import org.jackhuang.hmcl.addon.repository.CurseForgeRemoteAddonRepository; | ||
| import org.jackhuang.hmcl.addon.repository.ModrinthRemoteAddonRepository; | ||
| import org.jackhuang.hmcl.addon.resourcepack.ResourcePackFile; | ||
| import org.jackhuang.hmcl.addon.resourcepack.ResourcePackManager; | ||
| import org.jackhuang.hmcl.game.GameInstanceID; | ||
| import org.jackhuang.hmcl.game.HMCLGameRepository; | ||
| import org.jackhuang.hmcl.setting.SettingsManager; | ||
| import org.jackhuang.hmcl.setting.DownloadProviders; | ||
| import org.jackhuang.hmcl.setting.SettingsManager; | ||
| import org.jackhuang.hmcl.task.Schedulers; | ||
| import org.jackhuang.hmcl.task.Task; | ||
| import org.jackhuang.hmcl.ui.Controllers; | ||
|
|
@@ -347,7 +349,7 @@ private ResourcePackListPageSkin(ResourcePackListPage control) { | |
| createToolbarButton2(i18n("addon.check_update.button"), SVG.UPDATE, () -> | ||
| control.checkUpdates(listView.getItems().stream().map(ResourcePackInfoObject::getFile).toList()) | ||
| ), | ||
| createToolbarButton2(i18n("download"), SVG.DOWNLOAD, control::onDownload), | ||
| createToolbarButton2(i18n("resourcepack.download"), SVG.DOWNLOAD, control::onDownload), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When the UI language is Spanish, Japanese, Russian, or Ukrainian, Useful? React with 👍 / 👎. |
||
| createToolbarButton2(i18n("search"), SVG.SEARCH, () -> changeToolbar(searchBar)) | ||
| ); | ||
|
|
||
|
|
||
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.
Add
resourcepack.downloadto the Spanish, Japanese, Russian, and Ukrainian bundles before using it here. Those shipped bundles contain localizeddownloadvalues but lack this key, soResourceBundlefalls back to the base bundle and the toolbar changes from localized text such as “Descargar” or “ダウンロード” to English “Download” for users of those four languages.Useful? React with 👍 / 👎.