Skip to content

Commit 4b0a475

Browse files
committed
Add na'vi language
1 parent 04d1441 commit 4b0a475

16 files changed

Lines changed: 165 additions & 15 deletions

.DS_Store

2 KB
Binary file not shown.

README.MD

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,12 @@ Please consider donating a star if you liked it
2626
- English (US)
2727
- Korean (~~North Korea~~)
2828
- Korean (South Korea)
29-
- German
29+
- German (Germany)
30+
### Misc Languages
31+
- Na'vi (Pandora)
3032

3133
Supports Game saving and Game opening
3234

33-
## Notes
34-
- Korean may be removed in a future build
35-
3635
## Executable
3736
Windows executable built by Launch4j-maven-plugin
3837
Macos executable built by macosappbundler-maven-plugin

index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<html>
2-
<head>
3-
<title>Redirecting</title>
4-
</head>
5-
<body>
6-
<meta http-equiv="refresh" content="0 ; URL=https://qiu2014.github.io/GoBangGame/index.xml"/>
7-
<p><a href="https://qiu2014.github.io/GoBangGame/index.xml">Redirect</a></p>
8-
</body>
1+
<html lang="en">
2+
<head>
3+
<title>Redirecting</title>
4+
</head>
5+
<body>
6+
<meta http-equiv="refresh" content="0 ; URL=https://qiu2014.github.io/GoBangGame/index.xml"/>
7+
<p><a href="https://qiu2014.github.io/GoBangGame/index.xml">Redirect</a></p>
8+
</body>
99
</html>

src/.DS_Store

0 Bytes
Binary file not shown.

src/main/.DS_Store

0 Bytes
Binary file not shown.

src/main/java/.DS_Store

0 Bytes
Binary file not shown.

src/main/java/com/.DS_Store

0 Bytes
Binary file not shown.

src/main/java/com/eric/.DS_Store

0 Bytes
Binary file not shown.

src/main/java/com/eric/GobangGame/GobangGameUI.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,8 @@ public void showSettingsDialog() {
641641
String[] languageOptions = {
642642
messages.getString("language.chinese_simple"), messages.getString("language.chinese_traditional"),
643643
messages.getString("language.english"), messages.getString("language.german"),
644-
messages.getString("language.korean_north_korea"), messages.getString("language.korean_south_korea")
644+
messages.getString("language.korean_north_korea"), messages.getString("language.korean_south_korea"),
645+
messages.getString("language.navi")
645646
};
646647

647648
languageComboBox = new JComboBox<>(languageOptions);
@@ -655,6 +656,8 @@ public void showSettingsDialog() {
655656
selectedIndex = 3;
656657
} else if (currentLocale.getLanguage().equals("ko")) {
657658
selectedIndex = currentLocale.getCountry().equals("KP") ? 4 : 5;
659+
} else if (currentLocale.getLanguage().equals("nv")) {
660+
selectedIndex = 6;
658661
}
659662
languageComboBox.setSelectedIndex(selectedIndex);
660663

@@ -667,6 +670,7 @@ public void showSettingsDialog() {
667670
case 3: newLocale = Locale.of("de", "DE"); break;
668671
case 4: newLocale = Locale.of("ko", "KP"); break;
669672
case 5: newLocale = Locale.of("ko", "KR"); break;
673+
case 6: newLocale = Locale.of("ni", "PD"); break;
670674
case 2:
671675
default: newLocale = Locale.of("en", "US"); break;
672676
}
@@ -679,8 +683,8 @@ public void showSettingsDialog() {
679683
});
680684

681685
settingPanel.add(languageComboBox);
682-
settingPanel.add(new JLabel()); // 占位符
683-
settingPanel.add(new JLabel()); // 占位符
686+
settingPanel.add(new JLabel());
687+
settingPanel.add(new JLabel());
684688

685689
settingsWindow.add(settingPanel);
686690
settingsWindow.setVisible(true);

src/main/resources/messages_de_DE.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ language.english=English (US)
6969
language.korean_north_korea=Koreanisch (Nordkorea)
7070
language.korean_south_korea=Koreanisch (S�dkorea)
7171
language.german=Deutsch (DE)
72+
language.navi=Na'Vi (Pandora)
7273

7374
# About
7475
about.version=GoBangGame

0 commit comments

Comments
 (0)