From da392f7f7249725a75f88e69d8951e5d8fb2c42c Mon Sep 17 00:00:00 2001 From: fufesou Date: Tue, 31 May 2022 12:01:22 +0800 Subject: [PATCH] privacy_mode_win_magnifier: ui prompt if succeeded Signed-off-by: fufesou --- src/lang/cn.rs | 2 ++ src/lang/cs.rs | 2 ++ src/lang/de.rs | 2 ++ src/lang/eo.rs | 2 ++ src/lang/fr.rs | 2 ++ src/lang/id.rs | 2 ++ src/lang/it.rs | 2 ++ src/lang/ptbr.rs | 2 ++ src/lang/ru.rs | 2 ++ src/lang/sk.rs | 2 ++ src/lang/template.rs | 2 ++ src/lang/tr.rs | 2 ++ src/lang/tw.rs | 2 ++ src/ui/remote.rs | 4 ++++ 14 files changed, 30 insertions(+) diff --git a/src/lang/cn.rs b/src/lang/cn.rs index 5c83fffc8..3e0c9bed8 100644 --- a/src/lang/cn.rs +++ b/src/lang/cn.rs @@ -279,5 +279,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Peer exit", "被控端退出"), ("Failed to turn off", "退出失败"), ("Turned off", "退出"), + ("In privacy mode", "进入隐私模式"), + ("Out privacy mode", "退出隐私模式"), ].iter().cloned().collect(); } diff --git a/src/lang/cs.rs b/src/lang/cs.rs index b369e2dd4..afe414a44 100644 --- a/src/lang/cs.rs +++ b/src/lang/cs.rs @@ -279,5 +279,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Peer exit", "Peer exit"), ("Failed to turn off", "Nepodařilo se vypnout"), ("Turned off", "Vypnutý"), + ("In privacy mode", "v režimu soukromí"), + ("Out privacy mode", "mimo režim soukromí"), ].iter().cloned().collect(); } diff --git a/src/lang/de.rs b/src/lang/de.rs index 752cb0df1..e6321d929 100644 --- a/src/lang/de.rs +++ b/src/lang/de.rs @@ -279,5 +279,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Peer exit", "Peer-Ausgang"), ("Failed to turn off", "Ausschalten fehlgeschlagen"), ("Turned off", "Ausgeschaltet"), + ("In privacy mode", "im Datenschutzmodus"), + ("Out privacy mode", "Datenschutzmodus aus"), ].iter().cloned().collect(); } diff --git a/src/lang/eo.rs b/src/lang/eo.rs index 2f12d63b9..8f24385b8 100644 --- a/src/lang/eo.rs +++ b/src/lang/eo.rs @@ -279,5 +279,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Peer exit", ""), ("Failed to turn off", ""), ("Turned off", ""), + ("In privacy mode", ""), + ("Out privacy mode", ""), ].iter().cloned().collect(); } diff --git a/src/lang/fr.rs b/src/lang/fr.rs index 8f1ca3356..924cbfcae 100644 --- a/src/lang/fr.rs +++ b/src/lang/fr.rs @@ -279,5 +279,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Peer exit", "Sortie des pairs"), ("Failed to turn off", "Échec de la désactivation"), ("Turned off", "Éteindre"), + ("In privacy mode", "en mode privé"), + ("Out privacy mode", "hors mode de confidentialité"), ].iter().cloned().collect(); } diff --git a/src/lang/id.rs b/src/lang/id.rs index 78c18250e..9db2bde41 100644 --- a/src/lang/id.rs +++ b/src/lang/id.rs @@ -279,5 +279,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Peer exit", "keluar rekan"), ("Failed to turn off", "Gagal mematikan"), ("Turned off", "Matikan"), + ("In privacy mode", "Dalam mode privasi"), + ("Out privacy mode", "Keluar dari mode privasi"), ].iter().cloned().collect(); } diff --git a/src/lang/it.rs b/src/lang/it.rs index 853f44de0..8b1e5925b 100644 --- a/src/lang/it.rs +++ b/src/lang/it.rs @@ -279,5 +279,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Peer exit", "Uscita tra pari"), ("Failed to turn off", "Impossibile spegnere"), ("Turned off", "Spegni"), + ("In privacy mode", "In modalità privacy"), + ("Out privacy mode", "Fuori modalità privacy"), ].iter().cloned().collect(); } diff --git a/src/lang/ptbr.rs b/src/lang/ptbr.rs index 2370cf35d..e517c0dbb 100644 --- a/src/lang/ptbr.rs +++ b/src/lang/ptbr.rs @@ -279,5 +279,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Peer exit", "Saída de pares"), ("Failed to turn off", "Falha ao desligar"), ("Turned off", "Desligado"), + ("In privacy mode", "No modo de privacidade"), + ("Out privacy mode", "Fora do modo de privacidade"), ].iter().cloned().collect(); } diff --git a/src/lang/ru.rs b/src/lang/ru.rs index 31317f9c3..87e5673f9 100644 --- a/src/lang/ru.rs +++ b/src/lang/ru.rs @@ -279,5 +279,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Peer exit", "Одноранговый выход"), ("Failed to turn off", "Не удалось отключить"), ("Turned off", "Выключен"), + ("In privacy mode", "В режиме конфиденциальности"), + ("Out privacy mode", "Выход из режима конфиденциальности"), ].iter().cloned().collect(); } diff --git a/src/lang/sk.rs b/src/lang/sk.rs index 81885f176..b2577630c 100644 --- a/src/lang/sk.rs +++ b/src/lang/sk.rs @@ -279,5 +279,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Peer exit", "Peer exit"), ("Failed to turn off", "Nepodarilo sa vypnúť"), ("Turned off", "Vypnutý"), + ("In privacy mode", "V režime súkromia"), + ("Out privacy mode", "Mimo režimu súkromia"), ].iter().cloned().collect(); } diff --git a/src/lang/template.rs b/src/lang/template.rs index c9551a0bf..c6542a24a 100644 --- a/src/lang/template.rs +++ b/src/lang/template.rs @@ -279,5 +279,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Peer exit", ""), ("Failed to turn off", ""), ("Turned off", ""), + ("In privacy mode", ""), + ("Out privacy mode", ""), ].iter().cloned().collect(); } diff --git a/src/lang/tr.rs b/src/lang/tr.rs index 173438b75..b4e2e986b 100644 --- a/src/lang/tr.rs +++ b/src/lang/tr.rs @@ -279,5 +279,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Peer exit", "akran çıkışı"), ("Failed to turn off", "kapatılamadı"), ("Turned off", "Kapalı"), + ("In privacy mode", "Gizlilik modunda"), + ("Out privacy mode", "Gizlilik modu dışında"), ].iter().cloned().collect(); } diff --git a/src/lang/tw.rs b/src/lang/tw.rs index 26ceeb014..67093d173 100644 --- a/src/lang/tw.rs +++ b/src/lang/tw.rs @@ -280,5 +280,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Peer exit", "被控端退出"), ("Failed to turn off", "退出失敗"), ("Turned off", "退出"), + ("In privacy mode", "開啟隱私模式"), + ("Out privacy mode", "退出隱私模式"), ].iter().cloned().collect(); } diff --git a/src/ui/remote.rs b/src/ui/remote.rs index aaf0249e4..a073b81c6 100644 --- a/src/ui/remote.rs +++ b/src/ui/remote.rs @@ -2349,6 +2349,8 @@ impl Remote { self.update_privacy_mode(false); } back_notification::PrivacyModeState::OnSucceeded => { + self.handler + .msgbox("custom-nocancel", "Privacy mode", "In privacy mode"); self.update_privacy_mode(true); } back_notification::PrivacyModeState::OnFailedDenied => { @@ -2367,6 +2369,8 @@ impl Remote { self.update_privacy_mode(false); } back_notification::PrivacyModeState::OffSucceeded => { + self.handler + .msgbox("custom-nocancel", "Privacy mode", "Out privacy mode"); self.update_privacy_mode(false); } back_notification::PrivacyModeState::OffByPeer => {