From f64d2a3983ac913be3f24afef1c9b10b4327f0d4 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Sun, 18 Sep 2022 11:02:27 +0800 Subject: [PATCH] fix translation --- flutter/lib/mobile/widgets/dialog.dart | 2 +- src/lang/en.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/flutter/lib/mobile/widgets/dialog.dart b/flutter/lib/mobile/widgets/dialog.dart index 4169eecdf..503b82c50 100644 --- a/flutter/lib/mobile/widgets/dialog.dart +++ b/flutter/lib/mobile/widgets/dialog.dart @@ -6,7 +6,7 @@ import '../../models/model.dart'; import '../../models/platform_model.dart'; void clientClose(OverlayDialogManager dialogManager) { - msgBox('', 'Close', 'Are you sure you want to close the connection?', + msgBox('', 'Close', 'Are you sure to close the connection?', dialogManager); } diff --git a/src/lang/en.rs b/src/lang/en.rs index 8b21af4ef..14232c4e2 100644 --- a/src/lang/en.rs +++ b/src/lang/en.rs @@ -29,5 +29,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("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"), + ("Are you sure to close the connection?", "Are you sure you want to close the connection?"), ].iter().cloned().collect(); }