mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-04-22 15:40:31 -04:00
Add zh-Hant translations
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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"),
|
||||
|
||||
1567
lang/strings/translations_zh-Hant.properties
generated
Normal file
1567
lang/strings/translations_zh-Hant.properties
generated
Normal file
File diff suppressed because it is too large
Load Diff
9
lang/texts/termiusSetup_zh-Hant.md
Normal file
9
lang/texts/termiusSetup_zh-Hant.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# Termius 設定
|
||||
|
||||
若要使用 Termius 作為您的終端機,您可以將其連接到 XPipe SSH 橋接器。一旦本機橋接器的 ssh 金鑰已加入 Termius,此功能便會自動運作。
|
||||
|
||||
您唯一需要手動做的,就是先將私密金鑰檔案 `%s` 加入 Termius:
|
||||
|
||||
```
|
||||
%s
|
||||
```
|
||||
5
lang/texts/xshellSetup_zh-Hant.md
Normal file
5
lang/texts/xshellSetup_zh-Hant.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# Xshell 設定
|
||||
|
||||
若要使用 Xshell 作為您的終端機,您可以將其連接到 XPipe SSH 橋接器。一旦本機橋接器的 ssh 金鑰以正確的名稱新增至 Xshell,即可自動運作。
|
||||
|
||||
您唯一需要手動做的,就是將私密金鑰檔案 `%s` 以固定名稱 `%s` 加入 Xshell。
|
||||
Reference in New Issue
Block a user