From 2e256c0fca18a4651ddc803f263fa290054703ce Mon Sep 17 00:00:00 2001 From: fufesou Date: Sat, 29 Jul 2023 17:35:44 +0800 Subject: [PATCH] refact, wayland login screen translate Signed-off-by: fufesou --- flutter/lib/desktop/pages/desktop_home_page.dart | 2 +- src/lang/en.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flutter/lib/desktop/pages/desktop_home_page.dart b/flutter/lib/desktop/pages/desktop_home_page.dart index 5b03b39ef..05b0c1720 100644 --- a/flutter/lib/desktop/pages/desktop_home_page.dart +++ b/flutter/lib/desktop/pages/desktop_home_page.dart @@ -377,7 +377,7 @@ class _DesktopHomePageState extends State link: 'https://rustdesk.com/docs/en/manual/linux/#x11-required'); } else if (bind.mainIsLoginWayland()) { return buildInstallCard("Warning", - "Login screen using Wayland is not supported", "", () async {}, + translate("login_wayland_text_tip"), "", () async {}, help: 'Help', link: 'https://rustdesk.com/docs/en/manual/linux/#login-screen'); } diff --git a/src/lang/en.rs b/src/lang/en.rs index 6563f5ada..e9b2789a3 100644 --- a/src/lang/en.rs +++ b/src/lang/en.rs @@ -74,6 +74,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("logout_tip", "Are you sure you want to log out?"), ("exceed_max_devices", "You have reached the maximum number of managed devices."), ("login_wayland_title_tip", "Failed to connect"), - ("login_wayland_text_tip", "Login screen of Wayland is not supported."), + ("login_wayland_text_tip", "Login screen using Wayland is not supported."), ].iter().cloned().collect(); }