diff --git a/src/lang/cn.rs b/src/lang/cn.rs index 3dc5dc434..691caee52 100644 --- a/src/lang/cn.rs +++ b/src/lang/cn.rs @@ -153,6 +153,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Action", "动作"), ("Add", "添加"), ("Local Port", "本地端口"), + ("Local Address", "当前地址"), + ("Change Local Port", "修改本地端口"), ("setup_server_tip", "如果需要更快连接速度,你可以选择自建服务器"), ("Too short, at least 6 characters.", "太短了,至少6个字符"), ("The confirmation is not identical.", "两次输入不匹配"), diff --git a/src/lang/cs.rs b/src/lang/cs.rs index 81df20cc9..f6f1f7651 100644 --- a/src/lang/cs.rs +++ b/src/lang/cs.rs @@ -153,6 +153,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Action", "Akce"), ("Add", "Přidat"), ("Local Port", "Místní port"), + ("Local Address", ""), + ("Change Local Port", ""), ("setup_server_tip", "Rychlejší připojení získáte vytvořením si svého vlastního serveru"), ("Too short, at least 6 characters.", "Příliš krátké – alespoň 6 znaků."), ("The confirmation is not identical.", "Kontrolní zadání se neshoduje."), diff --git a/src/lang/da.rs b/src/lang/da.rs index 18e4e4949..f4173845b 100644 --- a/src/lang/da.rs +++ b/src/lang/da.rs @@ -153,6 +153,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Action", "Рandling"), ("Add", "Tilføj"), ("Local Port", "Lokal Port"), + ("Local Address", ""), + ("Change Local Port", ""), ("setup_server_tip", "For en hurtigere forbindelse skal du indstille din egen forbindelsesserver"), ("Too short, at least 6 characters.", "For kort, mindst 6 tegn."), ("The confirmation is not identical.", "Bekræftelsen er ikke identisk."), diff --git a/src/lang/de.rs b/src/lang/de.rs index df7c5f238..b7c3c45af 100644 --- a/src/lang/de.rs +++ b/src/lang/de.rs @@ -153,6 +153,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Action", "Aktion"), ("Add", "Hinzufügen"), ("Local Port", "Lokaler Port"), + ("Local Address", ""), + ("Change Local Port", ""), ("setup_server_tip", "Für eine schnellere Verbindung richten Sie bitte Ihren eigenen Verbindungsserver ein"), ("Too short, at least 6 characters.", "Zu kurz, mindestens 6 Zeichen."), ("The confirmation is not identical.", "Die Passwörter sind nicht identisch."), diff --git a/src/lang/eo.rs b/src/lang/eo.rs index 578f9cef4..b8ccb3a2d 100644 --- a/src/lang/eo.rs +++ b/src/lang/eo.rs @@ -153,6 +153,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Action", "Ago"), ("Add", "Aldoni"), ("Local Port", "Loka pordo"), + ("Local Address", ""), + ("Change Local Port", ""), ("setup_server_tip", "Se vi bezonas pli rapida konekcio, vi povas krei vian propran servilon"), ("Too short, at least 6 characters.", "Tro mallonga, almenaŭ 6 signoj."), ("The confirmation is not identical.", "Ambaŭ enigoj ne kongruas"), diff --git a/src/lang/es.rs b/src/lang/es.rs index 42470b120..fda44d4da 100644 --- a/src/lang/es.rs +++ b/src/lang/es.rs @@ -153,6 +153,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Action", "Acción"), ("Add", "Agregar"), ("Local Port", "Puerto local"), + ("Local Address", ""), + ("Change Local Port", ""), ("setup_server_tip", "Para una conexión más rápida, configure su propio servidor"), ("Too short, at least 6 characters.", "Demasiado corto, al menos 6 caracteres."), ("The confirmation is not identical.", "La confirmación no es idéntica."), diff --git a/src/lang/fr.rs b/src/lang/fr.rs index ce054a021..5e84c98c8 100644 --- a/src/lang/fr.rs +++ b/src/lang/fr.rs @@ -153,6 +153,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Action", "Action"), ("Add", "Ajouter"), ("Local Port", "Port local"), + ("Local Address", ""), + ("Change Local Port", ""), ("setup_server_tip", "Si vous avez besoin d'une vitesse de connexion plus rapide, vous pouvez choisir de créer votre propre serveur"), ("Too short, at least 6 characters.", "Trop court, au moins 6 caractères."), ("The confirmation is not identical.", "Les deux entrées ne correspondent pas"), diff --git a/src/lang/hu.rs b/src/lang/hu.rs index caf74eaaa..e636d2ae8 100644 --- a/src/lang/hu.rs +++ b/src/lang/hu.rs @@ -153,6 +153,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Action", "Akció"), ("Add", "Add"), ("Local Port", "Lokális Port"), + ("Local Address", ""), + ("Change Local Port", ""), ("setup_server_tip", "Egy gyorsabb kapcsolatért, kérlek hostolj egy saját szervert"), ("Too short, at least 6 characters.", "Túl rövid, legalább 6 karakter"), ("The confirmation is not identical.", "A megerősítés nem volt azonos"), diff --git a/src/lang/id.rs b/src/lang/id.rs index e993f2042..cc9de05cd 100644 --- a/src/lang/id.rs +++ b/src/lang/id.rs @@ -153,6 +153,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Action", "Aksi"), ("Add", "Tambah"), ("Local Port", "Port Lokal"), + ("Local Address", ""), + ("Change Local Port", ""), ("setup_server_tip", "Untuk koneksi yang lebih cepat, silakan atur server Anda sendiri"), ("Too short, at least 6 characters.", "Terlalu pendek, setidaknya 6 karekter."), ("The confirmation is not identical.", "Konfirmasi tidak identik."), diff --git a/src/lang/it.rs b/src/lang/it.rs index 2f5115171..b4fd14d26 100644 --- a/src/lang/it.rs +++ b/src/lang/it.rs @@ -153,6 +153,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Action", "Azione"), ("Add", "Aggiungi"), ("Local Port", "Porta locale"), + ("Local Address", ""), + ("Change Local Port", ""), ("setup_server_tip", "Per una connessione più veloce, configura un tuo server"), ("Too short, at least 6 characters.", "Troppo breve, almeno 6 caratteri"), ("The confirmation is not identical.", "La conferma non corrisponde"), diff --git a/src/lang/ja.rs b/src/lang/ja.rs index c5ebb9b15..4c6e84232 100644 --- a/src/lang/ja.rs +++ b/src/lang/ja.rs @@ -153,6 +153,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Action", "操作"), ("Add", "追加"), ("Local Port", "ローカルのポート"), + ("Local Address", ""), + ("Change Local Port", ""), ("setup_server_tip", "接続をより速くするには、自分のサーバーをセットアップしてください"), ("Too short, at least 6 characters.", "短すぎます。最低6文字です。"), ("The confirmation is not identical.", "確認用と一致しません。"), diff --git a/src/lang/ko.rs b/src/lang/ko.rs index 069210625..0dc7ef141 100644 --- a/src/lang/ko.rs +++ b/src/lang/ko.rs @@ -153,6 +153,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Action", "액션"), ("Add", "추가"), ("Local Port", "로컬 포트"), + ("Local Address", ""), + ("Change Local Port", ""), ("setup_server_tip", "빠른 접속을 위해, 당신의 서버를 설정하세요"), ("Too short, at least 6 characters.", "너무 짧습니다, 최소 6글자 이상 입력해주세요."), ("The confirmation is not identical.", "확인용 입력이 일치하지 않습니다."), diff --git a/src/lang/kz.rs b/src/lang/kz.rs index 45f2ecdc5..9260b67de 100644 --- a/src/lang/kz.rs +++ b/src/lang/kz.rs @@ -153,6 +153,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Action", "Әрекет"), ("Add", "Қосу"), ("Local Port", "Лақал Порт"), + ("Local Address", ""), + ("Change Local Port", ""), ("setup_server_tip", "Тез қосылым үшін өз серберіңізді орнатуды өтінеміз"), ("Too short, at least 6 characters.", "Тым қысқа, кемінде 6 таңба."), ("The confirmation is not identical.", "Растау сәйкес келмейді."), @@ -290,6 +292,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Ignore Battery Optimizations", "Бәтері Оңтайландыруларын Елемеу"), ("android_open_battery_optimizations_tip", "Егер де бұл ерекшелікті өшіруді қаласаңыз, келесі RustDesk апылқат орнатпалары бетіне барып, [Бәтері]'ні тауып кіріңіз де [Шектеусіз]'ден құсбелгіні алып тастауды өтінеміз"), ("Connection not allowed", "Қосылу рұқсат етілмеген"), + ("Legacy mode", ""), + ("Map mode", ""), + ("Translate mode", ""), ("Use temporary password", "Уақытша құпия сөзді қолдану"), ("Use permanent password", "Тұрақты құпия сөзді қолдану"), ("Use both passwords", "Қос құпия сөзді қолдану"), @@ -319,16 +324,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Insecure Connection", "Қатерлі Қосылым"), ("Scale original", "Scale original"), ("Scale adaptive", "Scale adaptive"), - ("Pin menubar", "Мәзір жолағын бекіту"), - ("Unpin menubar", "Мәзір жолағын босату"), - ("Recording", ""), - ("Directory", ""), - ("Automatically record incoming sessions", ""), - ("Change", ""), - ("Start session recording", ""), - ("Stop session recording", ""), - ("Enable Recording Session", ""), - ("Allow recording session", ""), ("General", ""), ("Security", ""), ("Account", "Есепкі"), @@ -356,6 +351,14 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Enable RDP", ""), ("Pin menubar", "Мәзір жолағын бекіту"), ("Unpin menubar", "Мәзір жолағын босату"), + ("Recording", ""), + ("Directory", ""), + ("Automatically record incoming sessions", ""), + ("Change", ""), + ("Start session recording", ""), + ("Stop session recording", ""), + ("Enable Recording Session", ""), + ("Allow recording session", ""), ("Enable LAN Discovery", ""), ("Deny LAN Discovery", ""), ("Write a message", ""), diff --git a/src/lang/pl.rs b/src/lang/pl.rs index bcef81afc..2b0892a21 100644 --- a/src/lang/pl.rs +++ b/src/lang/pl.rs @@ -153,6 +153,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Action", "Akcja"), ("Add", "Dodaj"), ("Local Port", "Lokalny port"), + ("Local Address", ""), + ("Change Local Port", ""), ("setup_server_tip", "Podpowiedź do ustawień serwera"), ("Too short, at least 6 characters.", "Za krótkie, min. 6 znaków"), ("The confirmation is not identical.", "Potwierdzenie nie jest identyczne."), diff --git a/src/lang/pt_PT.rs b/src/lang/pt_PT.rs index 3e1c505e6..a387ade70 100644 --- a/src/lang/pt_PT.rs +++ b/src/lang/pt_PT.rs @@ -153,6 +153,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Action", "Acção"), ("Add", "Adicionar"), ("Local Port", "Porta Local"), + ("Local Address", ""), + ("Change Local Port", ""), ("setup_server_tip", "Para uma ligação mais rápida, por favor configure seu próprio servidor"), ("Too short, at least 6 characters.", "Muito curto, pelo menos 6 caracteres."), ("The confirmation is not identical.", "A confirmação não é idêntica."), diff --git a/src/lang/ptbr.rs b/src/lang/ptbr.rs index 7d8ce5ac7..c858b8c22 100644 --- a/src/lang/ptbr.rs +++ b/src/lang/ptbr.rs @@ -153,6 +153,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Action", "Ação"), ("Add", "Adicionar"), ("Local Port", "Porta Local"), + ("Local Address", ""), + ("Change Local Port", ""), ("setup_server_tip", "Para uma conexão mais rápida, por favor configure seu próprio servidor"), ("Too short, at least 6 characters.", "Muito curto, pelo menos 6 caracteres."), ("The confirmation is not identical.", "A confirmação não é idêntica."), diff --git a/src/lang/ru.rs b/src/lang/ru.rs index 30bc52d95..f90f905cf 100644 --- a/src/lang/ru.rs +++ b/src/lang/ru.rs @@ -153,6 +153,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Action", "Действие"), ("Add", "Добавить"), ("Local Port", "Локальный порт"), + ("Local Address", ""), + ("Change Local Port", ""), ("setup_server_tip", "Для более быстрого подключения настройте свой собственный сервер подключения"), ("Too short, at least 6 characters.", "Слишком коротко, минимум 6 символов"), ("The confirmation is not identical.", "Подтверждение не совпадает"), diff --git a/src/lang/sk.rs b/src/lang/sk.rs index 5c3b7ef6e..96213b4f6 100644 --- a/src/lang/sk.rs +++ b/src/lang/sk.rs @@ -153,6 +153,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Action", "Akcia"), ("Add", "Pridať"), ("Local Port", "Lokálny port"), + ("Local Address", ""), + ("Change Local Port", ""), ("setup_server_tip", "Pre zrýchlenie pripojenia si nainštalujte svoj vlastný server"), ("Too short, at least 6 characters.", "Príliš krátke, vyžaduje sa aspoň 6 znakov."), ("The confirmation is not identical.", "Potvrdenie nie je zhodné."), diff --git a/src/lang/template.rs b/src/lang/template.rs index 2a2d6eb8a..4c02ab45b 100644 --- a/src/lang/template.rs +++ b/src/lang/template.rs @@ -153,6 +153,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Action", ""), ("Add", ""), ("Local Port", ""), + ("Local Address", ""), + ("Change Local Port", ""), ("setup_server_tip", ""), ("Too short, at least 6 characters.", ""), ("The confirmation is not identical.", ""), diff --git a/src/lang/tr.rs b/src/lang/tr.rs index 8daa4bb88..6bdebc24e 100644 --- a/src/lang/tr.rs +++ b/src/lang/tr.rs @@ -153,6 +153,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Action", "Eylem"), ("Add", "Ekle"), ("Local Port", "Yerel Port"), + ("Local Address", ""), + ("Change Local Port", ""), ("setup_server_tip", "Daha hızlı bağlantı için kendi sunucunuzu kurun"), ("Too short, at least 6 characters.", "Çok kısa en az 6 karakter gerekli."), ("The confirmation is not identical.", "Doğrulama yapılamadı."), diff --git a/src/lang/tw.rs b/src/lang/tw.rs index 5f9a6632c..460145cbe 100644 --- a/src/lang/tw.rs +++ b/src/lang/tw.rs @@ -153,6 +153,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Action", "操作"), ("Add", "新增"), ("Local Port", "本機連接埠"), + ("Local Address", "本機地址"), + ("Change Local Port", "修改本機連接埠"), ("setup_server_tip", "若您需要更快的連接速度,可以選擇自行建立伺服器"), ("Too short, at least 6 characters.", "過短,至少需 6 個字元。"), ("The confirmation is not identical.", "兩次輸入不相符"), diff --git a/src/lang/vn.rs b/src/lang/vn.rs index 541436331..781c9629d 100644 --- a/src/lang/vn.rs +++ b/src/lang/vn.rs @@ -153,6 +153,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Action", "Hành động"), ("Add", "Thêm"), ("Local Port", "Cổng nội bộ"), + ("Local Address", ""), + ("Change Local Port", ""), ("setup_server_tip", "Để kết nối nhanh hơn, hãy tự tạo máy chủ riêng"), ("Too short, at least 6 characters.", "Quá ngắn, độ dài phải ít nhất là 6."), ("The confirmation is not identical.", "Xác minh không khớp"), diff --git a/src/ui_interface.rs b/src/ui_interface.rs index 3e357faa7..c42a99037 100644 --- a/src/ui_interface.rs +++ b/src/ui_interface.rs @@ -765,7 +765,9 @@ pub fn is_release() -> bool { #[inline] pub fn is_root() -> bool { - crate::platform::is_root() + #[cfg(not(any(target_os = "android", target_os = "ios")))] + return crate::platform::is_root(); + false } #[inline]