english i18n

This commit is contained in:
huangyuhui
2018-02-13 22:23:59 +08:00
parent 4f67788d4a
commit 4004525d3a
7 changed files with 16 additions and 10 deletions

View File

@@ -32,7 +32,7 @@ public final class Locales {
/**
* English
*/
public static final SupportedLocale EN = new SupportedLocale(Locale.ENGLISH);
public static final SupportedLocale EN = new SupportedLocale(Locale.ROOT);
/**
* Traditional Chinese

View File

@@ -126,9 +126,12 @@ public final class LeftPaneController {
ripplerContainer.setOnMouseClicked(e -> {
// clean selected property
for (Node node : profilePane.getChildren())
if (node instanceof RipplerContainer)
if (node instanceof RipplerContainer) {
((RipplerContainer) node).setSelected(false);
((VersionListItem) ((RipplerContainer) node).getContainer()).setVersionName("");
}
ripplerContainer.setSelected(true);
item.setVersionName(Main.i18n("profile.selected"));
Settings.INSTANCE.setSelectedProfile(profile);
});
ripplerContainer.getProperties().put("profile", new Pair<>(profile.getName(), item));

View File

@@ -545,16 +545,17 @@
* *
*******************************************************************************/
.jfx-list-cell {
-fx-background-insets: 0.0;
-fx-text-fill: BLACK;
}
.jfx-list-cell:odd,
.jfx-list-cell:even {
-fx-background-color: WHITE;
}
.list-cell:selected, .jfx-list-cell:selected {
-fx-background-insets: 0.0;
-fx-text-fill: BLACK;
-fx-background-color: black;
}
.jfx-list-cell:filled:hover,
.jfx-list-cell:selected .label {
-fx-text-fill: black;
@@ -564,9 +565,9 @@
-jfx-rippler-fill: -fx-base-color;
}
.jfx-list-cell:odd:selected > .jfx-rippler > StackPane,
.jfx-list-cell:even:selected > .jfx-rippler > StackPane {
-fx-background-color: rgba(0.0, 0.0, 255.0, 0.2);
.list-cell:odd:selected > .jfx-rippler > StackPane,
.list-cell:even:selected > .jfx-rippler > StackPane {
-fx-background-color: derive(-fx-base-check-color, 30%);
}
.jfx-list-view {

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -299,6 +299,7 @@ profile.new=New Config
profile.new_name=New Profile Name:
profile.remove=Sure to remove profile %s?
profile.title=Game Directories
profile.selected=Current directory
selector.choose=Choose
selector.choose_file=Select a file

View File

@@ -299,6 +299,7 @@ profile.new=新建配置
profile.new_name=新配置名:
profile.remove=真的要删除配置%s吗
profile.title=游戏目录
profile.selected=当前目录
selector.choose=选择
selector.choose_file=选择文件