From ab2ac0755eb6ce90d6791a9b311b33ece4d043fa Mon Sep 17 00:00:00 2001 From: rustdesk Date: Wed, 27 Jul 2022 16:00:48 +0800 Subject: [PATCH] refactor remote_restarting_tip --- src/lang/cn.rs | 2 +- src/lang/cs.rs | 2 +- src/lang/da.rs | 2 +- src/lang/de.rs | 2 +- src/lang/en.rs | 1 + src/lang/eo.rs | 2 +- src/lang/es.rs | 2 +- src/lang/fr.rs | 2 +- src/lang/hu.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 | 2 +- 18 files changed, 18 insertions(+), 17 deletions(-) diff --git a/src/lang/cn.rs b/src/lang/cn.rs index 2e173739c..bc06828a5 100644 --- a/src/lang/cn.rs +++ b/src/lang/cn.rs @@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Restart Remote Device", "重启远程电脑"), ("Are you sure you want to restart", "确定要重启"), ("Restarting Remote Device", "正在重启远程设备"), - ("Remote device is restarting, please close this message box and reconnect with permanent password after a while", "远程设备正在重启, 请关闭当前提示框, 并在一段时间后使用永久密码重新连接"), + ("remote_restarting_tip", "远程设备正在重启, 请关闭当前提示框, 并在一段时间后使用永久密码重新连接"), ].iter().cloned().collect(); } diff --git a/src/lang/cs.rs b/src/lang/cs.rs index da5ae70a5..91437b2af 100644 --- a/src/lang/cs.rs +++ b/src/lang/cs.rs @@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Restart Remote Device", ""), ("Are you sure you want to restart", ""), ("Restarting Remote Device", ""), - ("Remote device is restarting, please close this message box and reconnect with permanent password after a while", ""), + ("remote_restarting_tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/da.rs b/src/lang/da.rs index 3825c447d..87e687936 100644 --- a/src/lang/da.rs +++ b/src/lang/da.rs @@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Restart Remote Device", ""), ("Are you sure you want to restart", ""), ("Restarting Remote Device", ""), - ("Remote device is restarting, please close this message box and reconnect with permanent password after a while", ""), + ("remote_restarting_tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/de.rs b/src/lang/de.rs index c64c15a57..b78a3be44 100644 --- a/src/lang/de.rs +++ b/src/lang/de.rs @@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Restart Remote Device", ""), ("Are you sure you want to restart", ""), ("Restarting Remote Device", ""), - ("Remote device is restarting, please close this message box and reconnect with permanent password after a while", ""), + ("remote_restarting_tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/en.rs b/src/lang/en.rs index a4923eb19..8b21af4ef 100644 --- a/src/lang/en.rs +++ b/src/lang/en.rs @@ -28,5 +28,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("doc_fix_wayland", "https://rustdesk.com/docs/en/manual/linux/#x11-required"), ("server_not_support", "Not yet supported by the server"), ("android_open_battery_optimizations_tip", "If you want to disable this feature, please go to the next RustDesk application settings page, find and enter [Battery], Uncheck [Unrestricted]"), + ("remote_restarting_tip", "Remote device is restarting, please close this message box and reconnect with permanent password after a while"), ].iter().cloned().collect(); } diff --git a/src/lang/eo.rs b/src/lang/eo.rs index 52fb8649f..1be29dd07 100644 --- a/src/lang/eo.rs +++ b/src/lang/eo.rs @@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Restart Remote Device", ""), ("Are you sure you want to restart", ""), ("Restarting Remote Device", ""), - ("Remote device is restarting, please close this message box and reconnect with permanent password after a while", ""), + ("remote_restarting_tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/es.rs b/src/lang/es.rs index 14dabe93f..8ae2feecd 100644 --- a/src/lang/es.rs +++ b/src/lang/es.rs @@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Restart Remote Device", "Reiniciar dispositivo"), ("Are you sure you want to restart", "Esta Seguro que desea reiniciar?"), ("Restarting Remote Device", "Reiniciando dispositivo remoto"), - ("Remote device is restarting, please close this message box and reconnect with permanent password after a while", "Dispositivo remoto reiniciando, favor de cerrar este mensaje y reconectarse con la contraseña permamente despues de un momento."), + ("remote_restarting_tip", "Dispositivo remoto reiniciando, favor de cerrar este mensaje y reconectarse con la contraseña permamente despues de un momento."), ].iter().cloned().collect(); } diff --git a/src/lang/fr.rs b/src/lang/fr.rs index 555e52d1f..7dd0fb9a9 100644 --- a/src/lang/fr.rs +++ b/src/lang/fr.rs @@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Restart Remote Device", ""), ("Are you sure you want to restart", ""), ("Restarting Remote Device", ""), - ("Remote device is restarting, please close this message box and reconnect with permanent password after a while", ""), + ("remote_restarting_tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/hu.rs b/src/lang/hu.rs index e7df21be7..de9f8922b 100644 --- a/src/lang/hu.rs +++ b/src/lang/hu.rs @@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Restart Remote Device", ""), ("Are you sure you want to restart", ""), ("Restarting Remote Device", ""), - ("Remote device is restarting, please close this message box and reconnect with permanent password after a while", ""), + ("remote_restarting_tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/id.rs b/src/lang/id.rs index 60b1b8f11..21c6cb98a 100644 --- a/src/lang/id.rs +++ b/src/lang/id.rs @@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Restart Remote Device", ""), ("Are you sure you want to restart", ""), ("Restarting Remote Device", ""), - ("Remote device is restarting, please close this message box and reconnect with permanent password after a while", ""), + ("remote_restarting_tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/it.rs b/src/lang/it.rs index ef8c60ba2..8058806c2 100644 --- a/src/lang/it.rs +++ b/src/lang/it.rs @@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Restart Remote Device", ""), ("Are you sure you want to restart", ""), ("Restarting Remote Device", ""), - ("Remote device is restarting, please close this message box and reconnect with permanent password after a while", ""), + ("remote_restarting_tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/ptbr.rs b/src/lang/ptbr.rs index aef3b5315..0aac8bc8a 100644 --- a/src/lang/ptbr.rs +++ b/src/lang/ptbr.rs @@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Restart Remote Device", ""), ("Are you sure you want to restart", ""), ("Restarting Remote Device", ""), - ("Remote device is restarting, please close this message box and reconnect with permanent password after a while", ""), + ("remote_restarting_tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/ru.rs b/src/lang/ru.rs index 919918cfd..3c6787289 100644 --- a/src/lang/ru.rs +++ b/src/lang/ru.rs @@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Restart Remote Device", ""), ("Are you sure you want to restart", ""), ("Restarting Remote Device", ""), - ("Remote device is restarting, please close this message box and reconnect with permanent password after a while", ""), + ("remote_restarting_tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/sk.rs b/src/lang/sk.rs index 10b5c97d2..7f07657eb 100644 --- a/src/lang/sk.rs +++ b/src/lang/sk.rs @@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Restart Remote Device", ""), ("Are you sure you want to restart", ""), ("Restarting Remote Device", ""), - ("Remote device is restarting, please close this message box and reconnect with permanent password after a while", ""), + ("remote_restarting_tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/template.rs b/src/lang/template.rs index 2fc0aef47..e6b2bd01d 100644 --- a/src/lang/template.rs +++ b/src/lang/template.rs @@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Restart Remote Device", ""), ("Are you sure you want to restart", ""), ("Restarting Remote Device", ""), - ("Remote device is restarting, please close this message box and reconnect with permanent password after a while", ""), + ("remote_restarting_tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/tr.rs b/src/lang/tr.rs index 385c66b78..21a722116 100644 --- a/src/lang/tr.rs +++ b/src/lang/tr.rs @@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Restart Remote Device", ""), ("Are you sure you want to restart", ""), ("Restarting Remote Device", ""), - ("Remote device is restarting, please close this message box and reconnect with permanent password after a while", ""), + ("remote_restarting_tip", ""), ].iter().cloned().collect(); } diff --git a/src/lang/tw.rs b/src/lang/tw.rs index fe597ac25..ce7804a65 100644 --- a/src/lang/tw.rs +++ b/src/lang/tw.rs @@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Restart Remote Device", "重啓遠程電腦"), ("Are you sure you want to restart", "确定要重启"), ("Restarting Remote Device", "正在重啓遠程設備"), - ("Remote device is restarting, please close this message box and reconnect with permanent password after a while", "遠程設備正在重啓,請關閉當前提示框,並在一段時間後使用永久密碼重新連接"), + ("remote_restarting_tip", "遠程設備正在重啓,請關閉當前提示框,並在一段時間後使用永久密碼重新連接"), ].iter().cloned().collect(); } diff --git a/src/ui/remote.rs b/src/ui/remote.rs index e0d0cfb96..ad6b3cbd5 100644 --- a/src/ui/remote.rs +++ b/src/ui/remote.rs @@ -1503,7 +1503,7 @@ impl Remote { } else { if self.handler.is_restarting_remote_device() { log::info!("Restart remote device"); - self.handler.msgbox("restarting", "Restarting Remote Device", "Remote device is restarting, please close this message box and reconnect with permanent password after a while"); + self.handler.msgbox("restarting", "Restarting Remote Device", "remote_restarting_tip"); } else { log::info!("Reset by the peer"); self.handler.msgbox("error", "Connection Error", "Reset by the peer");