From ec466d459f1d57296b196d882f3ea8a5a0ed2b83 Mon Sep 17 00:00:00 2001 From: 21pages Date: Sun, 8 Dec 2024 18:27:45 +0800 Subject: [PATCH] add version update translation (#10225) Signed-off-by: 21pages --- flutter/lib/desktop/pages/desktop_home_page.dart | 2 +- src/lang/ar.rs | 1 + src/lang/be.rs | 1 + src/lang/bg.rs | 1 + src/lang/ca.rs | 1 + src/lang/cn.rs | 1 + src/lang/cs.rs | 1 + src/lang/da.rs | 1 + src/lang/de.rs | 1 + src/lang/el.rs | 1 + src/lang/en.rs | 1 + src/lang/eo.rs | 1 + src/lang/es.rs | 1 + src/lang/et.rs | 1 + src/lang/eu.rs | 1 + src/lang/fa.rs | 1 + src/lang/fr.rs | 1 + src/lang/he.rs | 1 + src/lang/hr.rs | 1 + src/lang/hu.rs | 1 + src/lang/id.rs | 1 + src/lang/it.rs | 1 + src/lang/ja.rs | 1 + src/lang/ko.rs | 1 + src/lang/kz.rs | 1 + src/lang/lt.rs | 1 + src/lang/lv.rs | 1 + src/lang/nb.rs | 1 + src/lang/nl.rs | 1 + src/lang/pl.rs | 1 + src/lang/pt_PT.rs | 1 + src/lang/ptbr.rs | 1 + src/lang/ro.rs | 1 + src/lang/ru.rs | 1 + src/lang/sk.rs | 1 + src/lang/sl.rs | 1 + src/lang/sq.rs | 1 + src/lang/sr.rs | 1 + src/lang/sv.rs | 1 + src/lang/template.rs | 1 + src/lang/th.rs | 1 + src/lang/tr.rs | 1 + src/lang/tw.rs | 1 + src/lang/uk.rs | 1 + src/lang/vn.rs | 1 + 45 files changed, 45 insertions(+), 1 deletion(-) diff --git a/flutter/lib/desktop/pages/desktop_home_page.dart b/flutter/lib/desktop/pages/desktop_home_page.dart index 8061a4516..23bd3dc3f 100644 --- a/flutter/lib/desktop/pages/desktop_home_page.dart +++ b/flutter/lib/desktop/pages/desktop_home_page.dart @@ -430,7 +430,7 @@ class _DesktopHomePageState extends State bind.mainUriPrefixSync().contains('rustdesk')) { return buildInstallCard( "Status", - "There is a newer version of ${bind.mainGetAppNameSync()} ${bind.mainGetNewVersion()} available.", + "${translate("newer-version-of-{${bind.mainGetAppNameSync()}}-tip")} (${bind.mainGetNewVersion()}).", "Click to download", () async { final Uri url = Uri.parse('https://rustdesk.com/download'); await launchUrl(url); diff --git a/src/lang/ar.rs b/src/lang/ar.rs index 1b20ebc4a..6eda9246a 100644 --- a/src/lang/ar.rs +++ b/src/lang/ar.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/be.rs b/src/lang/be.rs index 7c0819837..90f1aa0fe 100644 --- a/src/lang/be.rs +++ b/src/lang/be.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/bg.rs b/src/lang/bg.rs index 3c1d202ee..94dfc3529 100644 --- a/src/lang/bg.rs +++ b/src/lang/bg.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/ca.rs b/src/lang/ca.rs index 120200b35..8d9eaae47 100644 --- a/src/lang/ca.rs +++ b/src/lang/ca.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/cn.rs b/src/lang/cn.rs index 901b4cdb9..ed7328a0f 100644 --- a/src/lang/cn.rs +++ b/src/lang/cn.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", "剪贴板已同步"), ("Update client clipboard", "更新客户端的粘贴板"), ("Untagged", "无标签"), + ("newer-version-of-{}-tip", "{} 版本更新"), ].iter().cloned().collect(); } diff --git a/src/lang/cs.rs b/src/lang/cs.rs index 25046cbcb..f67a0c527 100644 --- a/src/lang/cs.rs +++ b/src/lang/cs.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/da.rs b/src/lang/da.rs index fa3e6f100..6eafbccff 100644 --- a/src/lang/da.rs +++ b/src/lang/da.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/de.rs b/src/lang/de.rs index 482b45bfc..b35b2141a 100644 --- a/src/lang/de.rs +++ b/src/lang/de.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", "Zwischenablage ist synchronisiert"), ("Update client clipboard", "Client-Zwischenablage aktualisieren"), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/el.rs b/src/lang/el.rs index 57984b728..c463d9f73 100644 --- a/src/lang/el.rs +++ b/src/lang/el.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/en.rs b/src/lang/en.rs index 7ed83a8fe..cb3d599dc 100644 --- a/src/lang/en.rs +++ b/src/lang/en.rs @@ -236,5 +236,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("enable-trusted-devices-tip", "Skip 2FA verification on trusted devices"), ("one-way-file-transfer-tip", "One-way file transfer is enabled on the controlled side."), ("web_id_input_tip", "You can input an ID in the same server, direct IP access is not supported in web client.\nIf you want to access a device on another server, please append the server address (@?key=), for example,\n9123456234@192.168.16.1:21117?key=5Qbwsde3unUcJBtrx9ZkvUmwFNoExHzpryHuPUdqlWM=.\nIf you want to access a device on a public server, please input \"@public\", the key is not needed for public server."), + ("newer-version-of-{}-tip", "There is a newer version of {} available"), ].iter().cloned().collect(); } diff --git a/src/lang/eo.rs b/src/lang/eo.rs index 5fe2c8d3a..1acd6889e 100644 --- a/src/lang/eo.rs +++ b/src/lang/eo.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/es.rs b/src/lang/es.rs index 4b84b1c0f..692463619 100644 --- a/src/lang/es.rs +++ b/src/lang/es.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", "Portapapeles sincronizado"), ("Update client clipboard", "Actualizar portapapeles del cliente"), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/et.rs b/src/lang/et.rs index 931a3da2d..dcd90f725 100644 --- a/src/lang/et.rs +++ b/src/lang/et.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/eu.rs b/src/lang/eu.rs index e191a74f0..9cf484a5b 100644 --- a/src/lang/eu.rs +++ b/src/lang/eu.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/fa.rs b/src/lang/fa.rs index 051859f60..64caa142d 100644 --- a/src/lang/fa.rs +++ b/src/lang/fa.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/fr.rs b/src/lang/fr.rs index 774e03865..cd9d3b529 100644 --- a/src/lang/fr.rs +++ b/src/lang/fr.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/he.rs b/src/lang/he.rs index 39cd98fc4..7c38c803f 100644 --- a/src/lang/he.rs +++ b/src/lang/he.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/hr.rs b/src/lang/hr.rs index d3163ae03..47d19796c 100644 --- a/src/lang/hr.rs +++ b/src/lang/hr.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/hu.rs b/src/lang/hu.rs index c348db1d1..39dda41d9 100644 --- a/src/lang/hu.rs +++ b/src/lang/hu.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", "A vágólap szinkronizálva van"), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/id.rs b/src/lang/id.rs index d52c11a38..a23cac708 100644 --- a/src/lang/id.rs +++ b/src/lang/id.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/it.rs b/src/lang/it.rs index 838df4d99..068e03bf4 100644 --- a/src/lang/it.rs +++ b/src/lang/it.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", "Gli appunti sono sincronizzati"), ("Update client clipboard", "Aggiorna appunti client"), ("Untagged", "Senza tag"), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/ja.rs b/src/lang/ja.rs index 14c06e0d5..cb5168725 100644 --- a/src/lang/ja.rs +++ b/src/lang/ja.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/ko.rs b/src/lang/ko.rs index 93c174894..e5d0017a2 100644 --- a/src/lang/ko.rs +++ b/src/lang/ko.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", "클립보드가 동기화됨"), ("Update client clipboard", "클라이언트 클립보드 업데이트"), ("Untagged", "태그 없음"), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/kz.rs b/src/lang/kz.rs index f9ee96ca2..4eaf3d767 100644 --- a/src/lang/kz.rs +++ b/src/lang/kz.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/lt.rs b/src/lang/lt.rs index 31522364c..45ee545b1 100644 --- a/src/lang/lt.rs +++ b/src/lang/lt.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/lv.rs b/src/lang/lv.rs index 31a8d89c0..f84b2ca51 100644 --- a/src/lang/lv.rs +++ b/src/lang/lv.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", "Starpliktuve ir sinhronizēta"), ("Update client clipboard", "Atjaunināt klienta starpliktuvi"), ("Untagged", "Neatzīmēts"), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/nb.rs b/src/lang/nb.rs index 00ee513b1..ccaf9ee9a 100644 --- a/src/lang/nb.rs +++ b/src/lang/nb.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/nl.rs b/src/lang/nl.rs index f1c7ba97f..e1d889e0c 100644 --- a/src/lang/nl.rs +++ b/src/lang/nl.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", "Klembord is gesynchroniseerd"), ("Update client clipboard", "Klembord van client bijwerken"), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/pl.rs b/src/lang/pl.rs index 872fd5bf7..5ed4bfb39 100644 --- a/src/lang/pl.rs +++ b/src/lang/pl.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", "Schowek jest zsynchronizowany"), ("Update client clipboard", "Uaktualnij schowek klienta"), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/pt_PT.rs b/src/lang/pt_PT.rs index ad3a5f831..43cafa6be 100644 --- a/src/lang/pt_PT.rs +++ b/src/lang/pt_PT.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/ptbr.rs b/src/lang/ptbr.rs index 466952c02..c1f96e452 100644 --- a/src/lang/ptbr.rs +++ b/src/lang/ptbr.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/ro.rs b/src/lang/ro.rs index 830a26a49..9070b39ac 100644 --- a/src/lang/ro.rs +++ b/src/lang/ro.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/ru.rs b/src/lang/ru.rs index 5979961dd..6ce568813 100644 --- a/src/lang/ru.rs +++ b/src/lang/ru.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", "Буфер обмена синхронизирован"), ("Update client clipboard", "Обновить буфер обмена клиента"), ("Untagged", "Без метки"), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/sk.rs b/src/lang/sk.rs index d6bd0f711..bfb1dd1ff 100644 --- a/src/lang/sk.rs +++ b/src/lang/sk.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/sl.rs b/src/lang/sl.rs index 3fbf30ba3..af40e973f 100755 --- a/src/lang/sl.rs +++ b/src/lang/sl.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/sq.rs b/src/lang/sq.rs index b68e6a1e0..aa29aef0d 100644 --- a/src/lang/sq.rs +++ b/src/lang/sq.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/sr.rs b/src/lang/sr.rs index 9def539e5..3549c572b 100644 --- a/src/lang/sr.rs +++ b/src/lang/sr.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/sv.rs b/src/lang/sv.rs index af00b788e..de170cc26 100644 --- a/src/lang/sv.rs +++ b/src/lang/sv.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/template.rs b/src/lang/template.rs index ce3e99abd..0240534c8 100644 --- a/src/lang/template.rs +++ b/src/lang/template.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", "There is a newer version of {} available"), ].iter().cloned().collect(); } diff --git a/src/lang/th.rs b/src/lang/th.rs index 09fde8671..4a6107284 100644 --- a/src/lang/th.rs +++ b/src/lang/th.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/tr.rs b/src/lang/tr.rs index b7f9750f1..f7bebb014 100644 --- a/src/lang/tr.rs +++ b/src/lang/tr.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/tw.rs b/src/lang/tw.rs index 8a42a3311..d75e12add 100644 --- a/src/lang/tw.rs +++ b/src/lang/tw.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", "剪貼簿已同步"), ("Update client clipboard", "更新客戶端的剪貼簿"), ("Untagged", "無標籤"), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/uk.rs b/src/lang/uk.rs index e4d82563b..805db1afe 100644 --- a/src/lang/uk.rs +++ b/src/lang/uk.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", "Буфер обміну синхронізовано"), ("Update client clipboard", "Оновити буфер обміну клієнта"), ("Untagged", "Без міток"), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/vn.rs b/src/lang/vn.rs index 1970e17ca..81cf265d8 100644 --- a/src/lang/vn.rs +++ b/src/lang/vn.rs @@ -655,5 +655,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Clipboard is synchronized", ""), ("Update client clipboard", ""), ("Untagged", ""), + ("newer-version-of-{}-tip", ""), ].iter().cloned().collect(); }