i18n: translate importKeepHostSettings keys

Translate the `importKeepHostSettings` and `importKeepHostSettingsDesc` keys from English placeholders into 10 locale files (ar-EG, es-ES, fa-IR, id-ID, ja-JP, pt-BR, tr-TR, vi-VN, zh-CN, zh-TW).

Also removes `main_test.go` which contained a test for a `commandHelp` function.
This commit is contained in:
Sanaei
2026-08-18 12:27:33 +02:00
parent d6472740dc
commit 6638ac4a1e
11 changed files with 20 additions and 32 deletions

View File

@@ -267,8 +267,8 @@
"accessDirect": "DIRECT",
"accessBlocked": "BLOCKED",
"accessProxy": "PROXY",
"importKeepHostSettings": "Keep this machine's settings",
"importKeepHostSettingsDesc": "Keeps this panel's listen addresses, ports, base path, certificates and node identity instead of taking them from the uploaded file."
"importKeepHostSettings": "الاحتفاظ بإعدادات هذا الجهاز",
"importKeepHostSettingsDesc": "يحتفظ بعناوين الاستماع والمنافذ والمسار الأساسي والشهادات وهوية العقدة الخاصة بهذه اللوحة بدلًا من أخذها من الملف المرفوع."
},
"inbounds": {
"totalDownUp": "إجمالي المرسل/المستقبل",

View File

@@ -267,8 +267,8 @@
"accessDirect": "DIRECT",
"accessBlocked": "BLOCKED",
"accessProxy": "PROXY",
"importKeepHostSettings": "Keep this machine's settings",
"importKeepHostSettingsDesc": "Keeps this panel's listen addresses, ports, base path, certificates and node identity instead of taking them from the uploaded file."
"importKeepHostSettings": "Mantener la configuración de esta máquina",
"importKeepHostSettingsDesc": "Conserva las direcciones de escucha, los puertos, la ruta base, los certificados y la identidad de nodo de este panel en lugar de tomarlos del archivo subido."
},
"inbounds": {
"totalDownUp": "Subidas/Descargas Totales",

View File

@@ -267,8 +267,8 @@
"accessDirect": "DIRECT",
"accessBlocked": "BLOCKED",
"accessProxy": "PROXY",
"importKeepHostSettings": "Keep this machine's settings",
"importKeepHostSettingsDesc": "Keeps this panel's listen addresses, ports, base path, certificates and node identity instead of taking them from the uploaded file."
"importKeepHostSettings": "حفظ تنظیمات این دستگاه",
"importKeepHostSettingsDesc": "آدرس‌ها و پورت‌های شنود، مسیر پایه، گواهی‌ها و هویت نودِ همین پنل را نگه می‌دارد و آن‌ها را از فایل بارگذاری‌شده نمی‌گیرد."
},
"inbounds": {
"totalDownUp": "دریافت/ارسال کل",

View File

@@ -267,8 +267,8 @@
"accessDirect": "DIRECT",
"accessBlocked": "BLOCKED",
"accessProxy": "PROXY",
"importKeepHostSettings": "Keep this machine's settings",
"importKeepHostSettingsDesc": "Keeps this panel's listen addresses, ports, base path, certificates and node identity instead of taking them from the uploaded file."
"importKeepHostSettings": "Pertahankan pengaturan mesin ini",
"importKeepHostSettingsDesc": "Mempertahankan alamat dengar, port, path dasar, sertifikat, dan identitas node panel ini alih-alih mengambilnya dari berkas yang diunggah."
},
"inbounds": {
"totalDownUp": "Total Terkirim/Diterima",

View File

@@ -267,8 +267,8 @@
"accessDirect": "DIRECT",
"accessBlocked": "BLOCKED",
"accessProxy": "PROXY",
"importKeepHostSettings": "Keep this machine's settings",
"importKeepHostSettingsDesc": "Keeps this panel's listen addresses, ports, base path, certificates and node identity instead of taking them from the uploaded file."
"importKeepHostSettings": "このマシンの設定を保持する",
"importKeepHostSettingsDesc": "アップロードしたファイルの値ではなく、このパネルのリッスンアドレス、ポート、ベースパス、証明書、ノード ID を保持します。"
},
"inbounds": {
"totalDownUp": "総アップロード / ダウンロード",

View File

@@ -267,8 +267,8 @@
"accessDirect": "DIRECT",
"accessBlocked": "BLOCKED",
"accessProxy": "PROXY",
"importKeepHostSettings": "Keep this machine's settings",
"importKeepHostSettingsDesc": "Keeps this panel's listen addresses, ports, base path, certificates and node identity instead of taking them from the uploaded file."
"importKeepHostSettings": "Manter as configurações desta máquina",
"importKeepHostSettingsDesc": "Mantém os endereços de escuta, as portas, o caminho base, os certificados e a identidade de nó deste painel em vez de obtê-los do arquivo enviado."
},
"inbounds": {
"totalDownUp": "Total Enviado/Recebido",

View File

@@ -267,8 +267,8 @@
"accessDirect": "DIRECT",
"accessBlocked": "BLOCKED",
"accessProxy": "PROXY",
"importKeepHostSettings": "Keep this machine's settings",
"importKeepHostSettingsDesc": "Keeps this panel's listen addresses, ports, base path, certificates and node identity instead of taking them from the uploaded file."
"importKeepHostSettings": "Bu makinenin ayarlarını koru",
"importKeepHostSettingsDesc": "Yüklenen dosyadan almak yerine bu panelin dinleme adreslerini, portlarını, temel yolunu, sertifikalarını ve düğüm kimliğini korur."
},
"inbounds": {
"totalDownUp": "Toplam Gönderilen/Alınan",

View File

@@ -267,8 +267,8 @@
"accessDirect": "DIRECT",
"accessBlocked": "BLOCKED",
"accessProxy": "PROXY",
"importKeepHostSettings": "Keep this machine's settings",
"importKeepHostSettingsDesc": "Keeps this panel's listen addresses, ports, base path, certificates and node identity instead of taking them from the uploaded file."
"importKeepHostSettings": "Giữ cài đặt của máy này",
"importKeepHostSettingsDesc": "Giữ nguyên địa chỉ lắng nghe, cổng, đường dẫn cơ sở, chứng chỉ và danh tính node của bảng điều khiển này thay vì lấy chúng từ tệp đã tải lên."
},
"inbounds": {
"totalDownUp": "Tổng tải lên/tải xuống",

View File

@@ -267,8 +267,8 @@
"accessDirect": "DIRECT",
"accessBlocked": "BLOCKED",
"accessProxy": "PROXY",
"importKeepHostSettings": "Keep this machine's settings",
"importKeepHostSettingsDesc": "Keeps this panel's listen addresses, ports, base path, certificates and node identity instead of taking them from the uploaded file."
"importKeepHostSettings": "保留本机设置",
"importKeepHostSettingsDesc": "保留本面板的监听地址、端口、基础路径、证书和节点身份,而不是使用上传文件中的值。"
},
"inbounds": {
"totalDownUp": "总上传 / 下载",

View File

@@ -267,8 +267,8 @@
"accessDirect": "DIRECT",
"accessBlocked": "BLOCKED",
"accessProxy": "PROXY",
"importKeepHostSettings": "Keep this machine's settings",
"importKeepHostSettingsDesc": "Keeps this panel's listen addresses, ports, base path, certificates and node identity instead of taking them from the uploaded file."
"importKeepHostSettings": "保留本機設定",
"importKeepHostSettingsDesc": "保留本面板的監聽位址、連接埠、基礎路徑、憑證與節點身分,而不是使用上傳檔案中的值。"
},
"inbounds": {
"totalDownUp": "總上傳 / 下載",

View File

@@ -1,12 +0,0 @@
package main
import (
"strings"
"testing"
)
func TestCommandHelpListsEncryptTokens(t *testing.T) {
if help := commandHelp(); !strings.Contains(help, "encrypt-tokens") {
t.Fatalf("command help omits encrypt-tokens:\n%s", help)
}
}