Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
651b4b0
Revise 1
3gf8jv4dv Sep 7, 2024
e129d65
Revise 2
3gf8jv4dv Sep 7, 2024
efebd16
Revise 3
3gf8jv4dv Sep 7, 2024
09c7509
Revise 4
3gf8jv4dv Sep 7, 2024
a2bde8d
Revise 5
3gf8jv4dv Sep 9, 2024
9c12f8f
Revise 6
3gf8jv4dv Sep 9, 2024
82389e8
Revise 7
3gf8jv4dv Sep 9, 2024
a27cb88
Revise 8
3gf8jv4dv Sep 10, 2024
a8e037a
Revise 9
3gf8jv4dv Sep 10, 2024
83c0673
Revise 10
3gf8jv4dv Sep 11, 2024
c760a90
Revise 11
3gf8jv4dv Sep 11, 2024
1560a7c
Revise 12
3gf8jv4dv Sep 11, 2024
11379fe
Revise 13
3gf8jv4dv Sep 12, 2024
6078dba
Revise 14
3gf8jv4dv Sep 13, 2024
9876bd7
Revise 15
3gf8jv4dv Sep 13, 2024
c89500c
Revise 16
3gf8jv4dv Sep 13, 2024
3f13738
Revise 17
3gf8jv4dv Sep 13, 2024
4a79187
Revise 18
3gf8jv4dv Sep 15, 2024
f9c2848
Revise 19
3gf8jv4dv Sep 15, 2024
61005bf
Revise 20
3gf8jv4dv Sep 15, 2024
5da5e5c
Revise 21
3gf8jv4dv Sep 15, 2024
d04de4e
Revise 22
3gf8jv4dv Sep 15, 2024
da004db
Revise 23
3gf8jv4dv Sep 15, 2024
7dd9835
Revise 24
3gf8jv4dv Sep 16, 2024
39cf163
Revise 25
3gf8jv4dv Sep 16, 2024
22a55c3
Revise 26
3gf8jv4dv Sep 16, 2024
4a32eec
Revise 27
3gf8jv4dv Sep 17, 2024
e8e350b
Revise 28
3gf8jv4dv Sep 18, 2024
7c7a712
Revise 29
3gf8jv4dv Sep 19, 2024
f2ab05d
Revise 30
3gf8jv4dv Sep 20, 2024
3e07f1c
Revise 31
3gf8jv4dv Sep 20, 2024
3e66cc7
Revise 32
3gf8jv4dv Sep 21, 2024
d5086da
Revise 33
3gf8jv4dv Sep 22, 2024
efd11db
Revise 34
3gf8jv4dv Sep 22, 2024
1462768
Revise 35
3gf8jv4dv Sep 22, 2024
5640d49
Revise 36
3gf8jv4dv Sep 23, 2024
3e19c9e
Revise 37
3gf8jv4dv Sep 23, 2024
0b0d36c
Revise 38
3gf8jv4dv Sep 23, 2024
d60f6bb
Revise 39
3gf8jv4dv Sep 23, 2024
60fbe44
Revise 40
3gf8jv4dv Sep 23, 2024
21ff98f
Revise 41
3gf8jv4dv Sep 24, 2024
1d13030
Revise 42
3gf8jv4dv Sep 24, 2024
8b07b48
Revise 43
3gf8jv4dv Sep 24, 2024
ff3c106
Revise 44
3gf8jv4dv Sep 25, 2024
e888172
Revise 45
3gf8jv4dv Sep 25, 2024
b48b381
Revise 46
3gf8jv4dv Sep 25, 2024
2ff343e
Revise 47
3gf8jv4dv Sep 25, 2024
86216fb
Revise 48
3gf8jv4dv Sep 26, 2024
a28f050
Revise 49
3gf8jv4dv Sep 27, 2024
003bef4
Revise 50
3gf8jv4dv Sep 27, 2024
7f2d60e
Revise 51
3gf8jv4dv Sep 27, 2024
0ca2325
Revise 52
3gf8jv4dv Oct 1, 2024
6cced61
Merge branch 'main' into lang-revision
3gf8jv4dv Oct 1, 2024
90edecc
Merge branch 'main' into lang-revision
3gf8jv4dv Oct 4, 2024
272b7ea
Merge branch 'main' into lang-revision
3gf8jv4dv Oct 6, 2024
15c31cf
Merge branch 'main' into lang-revision
3gf8jv4dv Oct 6, 2024
b9b3066
Revise 57
3gf8jv4dv Oct 7, 2024
e966500
Merge branch 'main' into lang-revision
3gf8jv4dv Oct 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@ public void onStop(boolean success, TaskExecutor executor) {
} else if (ex instanceof PermissionException) {
message = i18n("launch.failed.executable_permission");
} else if (ex instanceof ProcessCreationException) {
message = i18n("launch.failed.creating_process") + ex.getLocalizedMessage();
message = i18n("launch.failed.creating_process") + "\n" + ex.getLocalizedMessage();
} else if (ex instanceof NotDecompressingNativesException) {
message = i18n("launch.failed.decompressing_natives") + ex.getLocalizedMessage();
message = i18n("launch.failed.decompressing_natives") + "\n" + ex.getLocalizedMessage();
} else if (ex instanceof LibraryDownloadException) {
message = i18n("launch.failed.download_library", ((LibraryDownloadException) ex).getLibrary().getName()) + "\n";
if (ex.getCause() instanceof ResponseCodeException) {
Expand Down Expand Up @@ -881,8 +881,8 @@ public void onExit(int exitCode, ExitType exitType) {

}

private static final String ORACLEJDK_DOWNLOAD_LINK = "https://www.java.com/download";
private static final String OPENJDK_DOWNLOAD_LINK = "https://docs.microsoft.com/java/openjdk/download";
private static final String ORACLEJDK_DOWNLOAD_LINK = "https://www.java.com/download/";
private static final String OPENJDK_DOWNLOAD_LINK = "https://learn.microsoft.com/java/openjdk/download";

public static final Queue<ManagedProcess> PROCESSES = new ConcurrentLinkedQueue<>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
import org.jackhuang.hmcl.util.javafx.MappedObservableList;

import java.net.URI;
import java.util.Locale;

import static org.jackhuang.hmcl.ui.versions.VersionPage.wrap;
import static org.jackhuang.hmcl.util.logging.Logger.LOG;
Expand Down Expand Up @@ -95,7 +96,7 @@ public AccountListPageSkin(AccountListPage skinnable) {
VBox boxMethods = new VBox();
{
boxMethods.getStyleClass().add("advanced-list-box-content");
boxMethods.getChildren().add(new ClassTitle(i18n("account.create")));
boxMethods.getChildren().add(new ClassTitle(i18n("account.create").toUpperCase(Locale.ROOT)));
FXUtils.setLimitWidth(boxMethods, 200);

AdvancedListItem offlineItem = new AdvancedListItem();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
import java.nio.file.Path;
import java.util.HashMap;
import java.util.Map;
import java.util.Locale;
import java.util.concurrent.CancellationException;
import java.util.function.Supplier;

Expand Down Expand Up @@ -101,7 +102,7 @@ public DownloadPage() {

{
AdvancedListBox sideBar = new AdvancedListBox()
.startCategory(i18n("download.game"))
.startCategory(i18n("download.game").toUpperCase(Locale.ROOT))
.addNavigationDrawerItem(item -> {
item.setTitle(i18n("game"));
item.setLeftGraphic(wrap(SVG.GAMEPAD));
Expand All @@ -114,7 +115,7 @@ public DownloadPage() {
settingsItem.activeProperty().bind(tab.getSelectionModel().selectedItemProperty().isEqualTo(modpackTab));
settingsItem.setOnAction(e -> tab.select(modpackTab));
})
.startCategory(i18n("download.content"))
.startCategory(i18n("download.content").toUpperCase(Locale.ROOT))
.addNavigationDrawerItem(item -> {
item.setTitle(i18n("mods"));
item.setLeftGraphic(wrap(SVG.PUZZLE));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
package org.jackhuang.hmcl.ui.main;

import com.jfoenix.controls.*;
import javafx.geometry.HPos;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.control.Label;
Expand Down Expand Up @@ -100,7 +99,7 @@ public DownloadSettingsPage() {
downloadSource.getChildren().setAll(chooseWrapper, versionListSourcePane, downloadSourcePane);
}

content.getChildren().addAll(ComponentList.createComponentListTitle(i18n("settings.launcher.version_list_source")), downloadSource);
content.getChildren().addAll(ComponentList.createComponentListTitle(i18n("settings.launcher.download_source")), downloadSource);
}

{
Expand Down Expand Up @@ -158,7 +157,7 @@ public DownloadSettingsPage() {
}
}

content.getChildren().addAll(ComponentList.createComponentListTitle(i18n("download")), downloadThreads);
content.getChildren().addAll(ComponentList.createComponentListTitle(i18n("settings.launcher.download.threads")), downloadThreads);
}

{
Expand Down Expand Up @@ -204,7 +203,6 @@ public DownloadSettingsPage() {
Label host = new Label(i18n("settings.launcher.proxy.host"));
GridPane.setRowIndex(host, 1);
GridPane.setColumnIndex(host, 0);
GridPane.setHalignment(host, HPos.RIGHT);
gridPane.getChildren().add(host);
}

Expand All @@ -220,7 +218,6 @@ public DownloadSettingsPage() {
Label port = new Label(i18n("settings.launcher.proxy.port"));
GridPane.setRowIndex(port, 2);
GridPane.setColumnIndex(port, 0);
GridPane.setHalignment(port, HPos.RIGHT);
gridPane.getChildren().add(port);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
import org.jackhuang.hmcl.ui.decorator.DecoratorPage;
import org.jackhuang.hmcl.ui.versions.VersionSettingsPage;

import java.util.Locale;

import static org.jackhuang.hmcl.ui.versions.VersionPage.wrap;
import static org.jackhuang.hmcl.ui.FXUtils.runInFX;
import static org.jackhuang.hmcl.util.i18n.I18n.i18n;
Expand Down Expand Up @@ -70,6 +72,7 @@ public LauncherSettingsPage() {

{
AdvancedListBox sideBar = new AdvancedListBox()
.startCategory(i18n("game").toUpperCase(Locale.ROOT))
.addNavigationDrawerItem(settingsItem -> {
settingsItem.setTitle(i18n("settings.type.global.manage"));
settingsItem.setLeftGraphic(wrap(SVG.GAMEPAD));
Expand All @@ -83,7 +86,7 @@ public LauncherSettingsPage() {
javaItem.activeProperty().bind(tab.getSelectionModel().selectedItemProperty().isEqualTo(javaManagementTab));
javaItem.setOnAction(e -> tab.select(javaManagementTab));
})
.startCategory(i18n("launcher"))
.startCategory(i18n("launcher").toUpperCase(Locale.ROOT))
.addNavigationDrawerItem(settingsItem -> {
settingsItem.setTitle(i18n("settings.launcher.general"));
settingsItem.setLeftGraphic(wrap(SVG.APPLICATION_OUTLINE));
Expand All @@ -102,7 +105,7 @@ public LauncherSettingsPage() {
downloadItem.activeProperty().bind(tab.getSelectionModel().selectedItemProperty().isEqualTo(downloadTab));
downloadItem.setOnAction(e -> tab.select(downloadTab));
})
.startCategory(i18n("help"))
.startCategory(i18n("help").toUpperCase(Locale.ROOT))
.addNavigationDrawerItem(helpItem -> {
helpItem.setTitle(i18n("help"));
helpItem.setLeftGraphic(wrap(SVG.HELP_CIRCLE_OUTLINE));
Expand Down
4 changes: 2 additions & 2 deletions HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ public final class MainPage extends StackPane implements DecoratorPage {
if (Metadata.isNightly() || (Metadata.isDev() && !Objects.equals(Metadata.VERSION, config().getShownTips().get(ANNOUNCEMENT)))) {
announcementPane = new VBox(16);
if (Metadata.isNightly()) {
announcementPane.getChildren().add(new AnnouncementCard(i18n("update.channel.nightly.title"), i18n("update.channel.nightly.hint")));
announcementPane.getChildren().add(new AnnouncementCard(i18n("update.channel.snapshot.title"), i18n("update.channel.snapshot.hint")));
} else if (Metadata.isDev()) {
announcementPane.getChildren().add(new AnnouncementCard(i18n("update.channel.dev.title"), i18n("update.channel.dev.hint")));
announcementPane.getChildren().add(new AnnouncementCard(i18n("update.channel.beta.title"), i18n("update.channel.beta.hint")));
}
getChildren().add(announcementPane);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public SettingsView() {
content.setSpacing(8);

chkUpdateStable = new JFXRadioButton(i18n("update.channel.stable"));
chkUpdateDev = new JFXRadioButton(i18n("update.channel.dev"));
chkUpdateDev = new JFXRadioButton(i18n("update.channel.beta"));

TextFlow noteWrapper = new TextFlow(new Text(i18n("update.note")));
VBox.setMargin(noteWrapper, new Insets(10, 0, 0, 0));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,15 +388,15 @@ private static final class ModItem extends StackPane {

switch (dataItem.getVersionType()) {
case Alpha:
content.getTags().add(i18n("version.game.snapshot"));
content.getTags().add(i18n("mods.channel.alpha"));
graphicPane.getChildren().setAll(SVG.ALPHA_CIRCLE_OUTLINE.createIcon(Theme.blackFill(), 24, 24));
break;
case Beta:
content.getTags().add(i18n("version.game.snapshot"));
content.getTags().add(i18n("mods.channel.beta"));
graphicPane.getChildren().setAll(SVG.BETA_CIRCLE_OUTLINE.createIcon(Theme.blackFill(), 24, 24));
break;
case Release:
content.getTags().add(i18n("version.game.release"));
content.getTags().add(i18n("mods.channel.release"));
graphicPane.getChildren().setAll(SVG.RELEASE_CIRCLE_OUTLINE.createIcon(Theme.blackFill(), 24, 24));
break;
}
Expand Down
Loading