refactor remote_restarting_tip

This commit is contained in:
rustdesk 2022-07-27 16:00:48 +08:00
parent 9b21182886
commit ab2ac0755e
18 changed files with 18 additions and 17 deletions

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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");