Add zh-Hant translations

This commit is contained in:
crschnick
2025-09-09 04:14:44 +00:00
parent 1e4e23fe3d
commit 3021e9bb72
9 changed files with 1588 additions and 6 deletions

View File

@@ -39,7 +39,7 @@ public class AppI18nData {
Files.walkFileTree(basePath, new SimpleFileVisitor<>() {
@Override
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {
if (!matchesLocale(file, l.getLocale())) {
if (!matchesLocale(file, l)) {
return FileVisitResult.CONTINUE;
}
@@ -72,7 +72,7 @@ public class AppI18nData {
Files.walkFileTree(basePath, new SimpleFileVisitor<>() {
@Override
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {
if (!matchesLocale(file, l.getLocale())) {
if (!matchesLocale(file, l)) {
return FileVisitResult.CONTINUE;
}
@@ -99,9 +99,9 @@ public class AppI18nData {
return new AppI18nData(l, translations, markdownDocumentations);
}
private static boolean matchesLocale(Path f, Locale l) {
private static boolean matchesLocale(Path f, SupportedLocale l) {
var name = FilenameUtils.getBaseName(f.getFileName().toString());
var ending = "_" + l.toLanguageTag();
var ending = "_" + l.getId();
return name.endsWith(ending);
}

View File

@@ -124,7 +124,7 @@ public final class AppPrefs {
mapVaultShared(new GlobalBooleanProperty(false), "dontAcceptNewHostKeys", Boolean.class, false);
public final BooleanProperty performanceMode =
map(Mapping.builder()
.property(new GlobalObjectProperty<>())
.property(new GlobalBooleanProperty())
.key("performanceMode")
.valueClass(Boolean.class)
.build());

View File

@@ -23,7 +23,8 @@ public enum SupportedLocale implements PrefsChoiceValue {
PORTUGUESE(Locale.of("pt"), "pt"),
RUSSIAN(Locale.of("ru"), "ru"),
JAPANESE(Locale.of("ja"), "ja"),
CHINESE(Locale.CHINESE, "zh"),
CHINESE_SIMPLIFIED(Locale.SIMPLIFIED_CHINESE, "zh-Hans"),
CHINESE_TRADITIONAL(Locale.TRADITIONAL_CHINESE, "zh-Hant"),
DANISH(Locale.of("da"), "da"),
INDONESIAN(Locale.of("id"), "id"),
SWEDISH(Locale.of("sv"), "sv"),

View File

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,9 @@
# Termius 設定
若要使用 Termius 作為您的終端機,您可以將其連接到 XPipe SSH 橋接器。一旦本機橋接器的 ssh 金鑰已加入 Termius此功能便會自動運作。
您唯一需要手動做的,就是先將私密金鑰檔案 `%s` 加入 Termius
```
%s
```

View File

@@ -0,0 +1,5 @@
# Xshell 設定
若要使用 Xshell 作為您的終端機,您可以將其連接到 XPipe SSH 橋接器。一旦本機橋接器的 ssh 金鑰以正確的名稱新增至 Xshell即可自動運作。
您唯一需要手動做的,就是將私密金鑰檔案 `%s` 以固定名稱 `%s` 加入 Xshell。