From 15bebcf45b0fb94a265214062c0f9f727d2e6034 Mon Sep 17 00:00:00 2001 From: Jimmy GALLAND Date: Sat, 17 Dec 2022 14:40:57 +0100 Subject: [PATCH] add tab about translate --- .../lib/desktop/pages/desktop_setting_page.dart | 16 ++++++++-------- src/lang/ca.rs | 3 +++ src/lang/cn.rs | 3 +++ src/lang/cs.rs | 3 +++ src/lang/da.rs | 3 +++ src/lang/de.rs | 3 +++ src/lang/en.rs | 1 + src/lang/eo.rs | 3 +++ src/lang/es.rs | 3 +++ src/lang/fa.rs | 3 +++ src/lang/fr.rs | 3 +++ src/lang/gr.rs | 3 +++ src/lang/hu.rs | 3 +++ src/lang/id.rs | 3 +++ src/lang/it.rs | 3 +++ src/lang/ja.rs | 3 +++ src/lang/ko.rs | 3 +++ src/lang/kz.rs | 3 +++ src/lang/pl.rs | 3 +++ src/lang/pt_PT.rs | 3 +++ src/lang/ptbr.rs | 3 +++ src/lang/ru.rs | 3 +++ src/lang/sk.rs | 3 +++ src/lang/sq.rs | 3 +++ src/lang/sr.rs | 3 +++ src/lang/sv.rs | 3 +++ src/lang/template.rs | 3 +++ src/lang/tr.rs | 3 +++ src/lang/tw.rs | 3 +++ src/lang/ua.rs | 3 +++ src/lang/vn.rs | 3 +++ 31 files changed, 96 insertions(+), 8 deletions(-) diff --git a/flutter/lib/desktop/pages/desktop_setting_page.dart b/flutter/lib/desktop/pages/desktop_setting_page.dart index 0a20c93e1..613f19810 100644 --- a/flutter/lib/desktop/pages/desktop_setting_page.dart +++ b/flutter/lib/desktop/pages/desktop_setting_page.dart @@ -1106,22 +1106,22 @@ class _AboutState extends State<_About> { const SizedBox( height: 8.0, ), - Text('Version: $version').marginSymmetric(vertical: 4.0), - Text('Build Date: $buildDate').marginSymmetric(vertical: 4.0), + Text(translate('Version') + ': $version').marginSymmetric(vertical: 4.0), + Text(translate('Build Date') + ': $buildDate').marginSymmetric(vertical: 4.0), InkWell( onTap: () { launchUrlString('https://rustdesk.com/privacy'); }, - child: const Text( - 'Privacy Statement', + child: Text( + translate('Privacy Statement'), style: linkStyle, ).marginSymmetric(vertical: 4.0)), InkWell( onTap: () { launchUrlString('https://rustdesk.com'); }, - child: const Text( - 'Website', + child: Text( + translate('Website'), style: linkStyle, ).marginSymmetric(vertical: 4.0)), Container( @@ -1138,8 +1138,8 @@ class _AboutState extends State<_About> { 'Copyright © 2022 Purslane Ltd.\n$license', style: const TextStyle(color: Colors.white), ), - const Text( - 'Made with heart in this chaotic world!', + Text( + translate('Slogan_tip'), style: TextStyle( fontWeight: FontWeight.w800, color: Colors.white), diff --git a/src/lang/ca.rs b/src/lang/ca.rs index 720c448e9..fd9e7c2c9 100644 --- a/src/lang/ca.rs +++ b/src/lang/ca.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "Canviar ID"), ("Website", "Lloc web"), ("About", "Sobre"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "Silenciar"), ("Audio Input", "Entrada d'àudio"), ("Enhancements", "Millores"), diff --git a/src/lang/cn.rs b/src/lang/cn.rs index bc5708987..5dce8cd38 100644 --- a/src/lang/cn.rs +++ b/src/lang/cn.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "改变ID"), ("Website", "网站"), ("About", "关于"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "静音"), ("Audio Input", "音频输入"), ("Enhancements", "增强功能"), diff --git a/src/lang/cs.rs b/src/lang/cs.rs index fe0087d40..52571ef07 100644 --- a/src/lang/cs.rs +++ b/src/lang/cs.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "Změnit identifikátor"), ("Website", "Webové stránky"), ("About", "O aplikaci"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "Ztlumit"), ("Audio Input", "Vstup zvuku"), ("Enhancements", ""), diff --git a/src/lang/da.rs b/src/lang/da.rs index a17f26918..138777e32 100644 --- a/src/lang/da.rs +++ b/src/lang/da.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "Ændre ID"), ("Website", "Hjemmeside"), ("About", "Omkring"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "Sluk for mikrofonen"), ("Audio Input", "Lydindgang"), ("Enhancements", ""), diff --git a/src/lang/de.rs b/src/lang/de.rs index 1261b405e..3c04f2ec4 100644 --- a/src/lang/de.rs +++ b/src/lang/de.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "ID ändern"), ("Website", "Webseite"), ("About", "Über"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "Stummschalten"), ("Audio Input", "Audioeingang"), ("Enhancements", "Verbesserungen"), diff --git a/src/lang/en.rs b/src/lang/en.rs index b6992230d..f351b575d 100644 --- a/src/lang/en.rs +++ b/src/lang/en.rs @@ -35,5 +35,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Stop service", "Stop Service"), ("hide_cm_tip", "Allow hiding only if accepting sessions via password and using permanent password"), ("wayland_experiment_tip", "Wayland support is in experimental stage, please use X11 if you require unattended access."), + ("Slogan_tip", "Made with heart in this chaotic world!"), ].iter().cloned().collect(); } diff --git a/src/lang/eo.rs b/src/lang/eo.rs index d0705af1b..d22cb2311 100644 --- a/src/lang/eo.rs +++ b/src/lang/eo.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "Ŝanĝi identigilon"), ("Website", "Retejo"), ("About", "Pri"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "Muta"), ("Audio Input", "Aŭdia enigo"), ("Enhancements", ""), diff --git a/src/lang/es.rs b/src/lang/es.rs index 6c5516539..ce0254a98 100644 --- a/src/lang/es.rs +++ b/src/lang/es.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "Cambiar ID"), ("Website", "Sitio web"), ("About", "Acerca de"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "Silenciar"), ("Audio Input", "Entrada de audio"), ("Enhancements", "Mejoras"), diff --git a/src/lang/fa.rs b/src/lang/fa.rs index 88f2e0841..8797f209e 100644 --- a/src/lang/fa.rs +++ b/src/lang/fa.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "تعویض شناسه"), ("Website", "وب سایت"), ("About", "درباره"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "بستن صدا"), ("Audio Input", "ورودی صدا"), ("Enhancements", "بهبودها"), diff --git a/src/lang/fr.rs b/src/lang/fr.rs index 9168426e9..124bfc00c 100644 --- a/src/lang/fr.rs +++ b/src/lang/fr.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "Changer d'ID"), ("Website", "Site Web"), ("About", "À propos de"), + ("About RustDesk", "À propos de RustDesk"), + ("Slogan_tip", "Fait avec cœur dans ce monde chaotique!"), + ("Privacy Statement", "Déclaration de confidentialité"), ("Mute", "Muet"), ("Audio Input", "Entrée audio"), ("Enhancements", "Améliorations"), diff --git a/src/lang/gr.rs b/src/lang/gr.rs index b1a8174ee..933a84143 100644 --- a/src/lang/gr.rs +++ b/src/lang/gr.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "Αλλαγή αναγνωριστικού ID"), ("Website", "Ιστότοπος"), ("About", "Πληροφορίες"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "Σίγαση"), ("Audio Input", "Είσοδος ήχου"), ("Enhancements", "Βελτιώσεις"), diff --git a/src/lang/hu.rs b/src/lang/hu.rs index ee77b53e6..f3f1e8fd9 100644 --- a/src/lang/hu.rs +++ b/src/lang/hu.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "Azonosító megváltoztatása"), ("Website", "Weboldal"), ("About", "Rólunk"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "Némítás"), ("Audio Input", "Hangátvitel"), ("Enhancements", "Fejlesztések"), diff --git a/src/lang/id.rs b/src/lang/id.rs index 173a21e31..89728b3e6 100644 --- a/src/lang/id.rs +++ b/src/lang/id.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "Ubah ID"), ("Website", "Website"), ("About", "Tentang"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "Bisukan"), ("Audio Input", "Masukkan Audio"), ("Enhancements", "Peningkatan"), diff --git a/src/lang/it.rs b/src/lang/it.rs index 84a41a96a..2237c81db 100644 --- a/src/lang/it.rs +++ b/src/lang/it.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "Cambia ID"), ("Website", "Sito web"), ("About", "Informazioni"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "Silenzia"), ("Audio Input", "Input audio"), ("Enhancements", "Miglioramenti"), diff --git a/src/lang/ja.rs b/src/lang/ja.rs index e9914c0fe..e40c81ae8 100644 --- a/src/lang/ja.rs +++ b/src/lang/ja.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "IDを変更"), ("Website", "公式サイト"), ("About", "情報"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "ミュート"), ("Audio Input", "音声入力デバイス"), ("Enhancements", "追加機能"), diff --git a/src/lang/ko.rs b/src/lang/ko.rs index 6f514f706..426a027db 100644 --- a/src/lang/ko.rs +++ b/src/lang/ko.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "ID 변경"), ("Website", "웹사이트"), ("About", "정보"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "음소거"), ("Audio Input", "오디오 입력"), ("Enhancements", ""), diff --git a/src/lang/kz.rs b/src/lang/kz.rs index 69c4115ca..6acd892f8 100644 --- a/src/lang/kz.rs +++ b/src/lang/kz.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "ID ауыстыру"), ("Website", "Web-сайт"), ("About", "Туралы"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "Дыбыссыздандыру"), ("Audio Input", "Аудио Еңгізу"), ("Enhancements", "Жақсартулар"), diff --git a/src/lang/pl.rs b/src/lang/pl.rs index 1a6fceb12..54cc10164 100644 --- a/src/lang/pl.rs +++ b/src/lang/pl.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "Zmień ID"), ("Website", "Strona internetowa"), ("About", "O"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "Wycisz"), ("Audio Input", "Wejście audio"), ("Enhancements", "Ulepszenia"), diff --git a/src/lang/pt_PT.rs b/src/lang/pt_PT.rs index f279d6e7a..4d3d057ee 100644 --- a/src/lang/pt_PT.rs +++ b/src/lang/pt_PT.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "Alterar ID"), ("Website", "Website"), ("About", "Sobre"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "Silenciar"), ("Audio Input", "Entrada de Áudio"), ("Enhancements", "Melhorias"), diff --git a/src/lang/ptbr.rs b/src/lang/ptbr.rs index 18b803ec3..bc878b680 100644 --- a/src/lang/ptbr.rs +++ b/src/lang/ptbr.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "Alterar ID"), ("Website", "Website"), ("About", "Sobre"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "Desativar som"), ("Audio Input", "Entrada de Áudio"), ("Enhancements", "Melhorias"), diff --git a/src/lang/ru.rs b/src/lang/ru.rs index 74c4aefb7..66c8f7626 100644 --- a/src/lang/ru.rs +++ b/src/lang/ru.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "Изменить ID"), ("Website", "Сайт"), ("About", "О программе"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "Отключить звук"), ("Audio Input", "Аудиовход"), ("Enhancements", "Улучшения"), diff --git a/src/lang/sk.rs b/src/lang/sk.rs index 7f7c865cb..e1b82d4f4 100644 --- a/src/lang/sk.rs +++ b/src/lang/sk.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "Zmeniť ID"), ("Website", "Webová stránka"), ("About", "O RustDesk"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "Stíšiť"), ("Audio Input", "Zvukový vstup"), ("Enhancements", ""), diff --git a/src/lang/sq.rs b/src/lang/sq.rs index 132b8fcdc..cbc71d4aa 100644 --- a/src/lang/sq.rs +++ b/src/lang/sq.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "Ndryshoni ID"), ("Website", "Faqe ëebi"), ("About", "Rreth"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "Pa zë"), ("Audio Input", "Inputi zërit"), ("Enhancements", "Përmirësimet"), diff --git a/src/lang/sr.rs b/src/lang/sr.rs index c915ad262..43490c0b2 100644 --- a/src/lang/sr.rs +++ b/src/lang/sr.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "Promeni ID"), ("Website", "Web sajt"), ("About", "O programu"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "Utišaj"), ("Audio Input", "Audio ulaz"), ("Enhancements", "Proširenja"), diff --git a/src/lang/sv.rs b/src/lang/sv.rs index b68537a65..4dcababc0 100644 --- a/src/lang/sv.rs +++ b/src/lang/sv.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "Byt ID"), ("Website", "Hemsida"), ("About", "Om"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "Tyst"), ("Audio Input", "Ljud input"), ("Enhancements", "Förbättringar"), diff --git a/src/lang/template.rs b/src/lang/template.rs index 99033faea..34fe5077f 100644 --- a/src/lang/template.rs +++ b/src/lang/template.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", ""), ("Website", ""), ("About", ""), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", ""), ("Audio Input", ""), ("Enhancements", ""), diff --git a/src/lang/tr.rs b/src/lang/tr.rs index 32cd4a374..b0c0686c1 100644 --- a/src/lang/tr.rs +++ b/src/lang/tr.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "ID Değiştir"), ("Website", "Website"), ("About", "Hakkında"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "Sustur"), ("Audio Input", "Ses Girişi"), ("Enhancements", "Geliştirmeler"), diff --git a/src/lang/tw.rs b/src/lang/tw.rs index 2ff28f970..d8d6c5ba0 100644 --- a/src/lang/tw.rs +++ b/src/lang/tw.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "更改 ID"), ("Website", "網站"), ("About", "關於"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "靜音"), ("Audio Input", "音訊輸入"), ("Enhancements", "增強功能"), diff --git a/src/lang/ua.rs b/src/lang/ua.rs index 854514cfc..42884fd52 100644 --- a/src/lang/ua.rs +++ b/src/lang/ua.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "Змінити ID"), ("Website", "Веб-сайт"), ("About", "Про RustDesk"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "Вимкнути звук"), ("Audio Input", "Аудіовхід"), ("Enhancements", "Покращення"), diff --git a/src/lang/vn.rs b/src/lang/vn.rs index 0667e2629..412f04999 100644 --- a/src/lang/vn.rs +++ b/src/lang/vn.rs @@ -39,6 +39,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Change ID", "Thay đổi ID"), ("Website", "Trang web"), ("About", "About"), + ("About RustDesk", ""), + ("Slogan_tip", ""), + ("Privacy Statement", ""), ("Mute", "Tắt tiếng"), ("Audio Input", "Đầu vào âm thanh"), ("Enhancements", "Các tiện itchs"),