better connect dialog tips

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2023-03-24 16:22:05 +08:00
parent 9bca87a51f
commit 98f24bb85a
35 changed files with 117 additions and 105 deletions

View File

@ -517,9 +517,12 @@ _connectDialog(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(Icons.password_rounded, color: MyTheme.accent),
Text(translate(usernameController == null
? 'Password Required'
: 'Login Required'))
(usernameController == null
? Text(translate('Password Required'))
: Tooltip(
message: translate('login_linux_tooltip_tip'),
child: Text(translate('login_linux_tip')),
))
.paddingOnly(left: 10),
],
),
@ -538,12 +541,15 @@ _connectDialog(
controller: passwordController,
autoFocus: false,
),
usernameController == null || usernameController == null
? Offstage()
: const Divider(),
peerPasswordController == null
? Offstage()
: PasswordWidget(
controller: peerPasswordController,
autoFocus: usernameController == null,
hintText: 'Enter RustDesk password',
hintText: 'enter_rustdesk_passwd_tip',
),
peerPasswordController == null
? Offstage()
@ -552,7 +558,7 @@ _connectDialog(
dense: true,
controlAffinity: ListTileControlAffinity.leading,
title: Text(
translate('Remember RustDesk password'),
translate('remember_rustdesk_passwd_tip'),
),
value: remember,
onChanged: (v) {

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""),
("show_monitors_tip", ""),
("View Mode", ""),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", "此文件与对方的一致"),
("show_monitors_tip", ""),
("View Mode", "浏览模式"),
("Enter RustDesk password", "请输入 RustDesk 密码"),
("Remember RustDesk password", "记住 RustDesk 密码"),
("Login Required", "需要登陆"),
("enter_rustdesk_passwd_tip", "请输入 RustDesk 密码"),
("remember_rustdesk_passwd_tip", "记住 RustDesk 密码"),
("login_linux_tip", "登陆被控端的 Linux 账户"),
("login_linux_tooltip_tip", "登陆被控端的 Linux 账户,才能启用 X 桌面"),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""),
("show_monitors_tip", ""),
("View Mode", ""),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""),
("show_monitors_tip", ""),
("View Mode", ""),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", "Diese Datei ist identisch mit der Datei der Gegenstelle."),
("show_monitors_tip", "Monitore in der Symbolleiste anzeigen"),
("View Mode", "Ansichtsmodus"),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", "Το αρχείο είναι πανομοιότυπο με αυτό του άλλου υπολογιστή."),
("show_monitors_tip", "Εμφάνιση οθονών στη γραμμή εργαλείων"),
("View Mode", "Λειτουργία προβολής"),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -53,6 +53,10 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("empty_lan_tip", "Oh no, it looks like we haven't discovered any peers yet."),
("empty_address_book_tip", "Oh dear, it appears that there are currently no peers listed in your address book."),
("identical_file_tip", "This file is identical with the peer's one."),
("show_monitors_tip", "Show monitors in toolbar")
("show_monitors_tip", "Show monitors in toolbar."),
("enter_rustdesk_passwd_tip", "Enter RustDesk password."),
("remember_rustdesk_passwd_tip", "Remember RustDesk password."),
("login_linux_tip", "Login to remote Linux account"),
("login_linux_tooltip_tip", "You need to login to remote Linux account to enable a X desktop session."),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""),
("show_monitors_tip", ""),
("View Mode", ""),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", "Este archivo es idéntico al del par."),
("show_monitors_tip", "Mostrar monitores en la barra de herramientas"),
("View Mode", "Modo Vista"),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", "این فایل با فایل همتا یکسان است."),
("show_monitors_tip", "نمایش مانیتورها در نوار ابزار"),
("View Mode", ""),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""),
("show_monitors_tip", ""),
("View Mode", ""),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""),
("show_monitors_tip", ""),
("View Mode", ""),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""),
("show_monitors_tip", ""),
("View Mode", ""),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", "Questo file è identico a quello del peer."),
("show_monitors_tip", "Mostra schermi nella barra degli strumenti"),
("View Mode", "Modalità di visualizzazione"),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""),
("show_monitors_tip", ""),
("View Mode", ""),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""),
("show_monitors_tip", ""),
("View Mode", ""),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""),
("show_monitors_tip", ""),
("View Mode", ""),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""),
("show_monitors_tip", ""),
("View Mode", ""),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""),
("show_monitors_tip", ""),
("View Mode", ""),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""),
("show_monitors_tip", ""),
("View Mode", ""),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""),
("show_monitors_tip", ""),
("View Mode", ""),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""),
("show_monitors_tip", ""),
("View Mode", ""),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", "Файл идентичен файлу на удалённом узле."),
("show_monitors_tip", "Показывать мониторы на панели инструментов"),
("View Mode", "Режим просмотра"),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""),
("show_monitors_tip", ""),
("View Mode", ""),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""),
("show_monitors_tip", ""),
("View Mode", ""),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""),
("show_monitors_tip", ""),
("View Mode", ""),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""),
("show_monitors_tip", ""),
("View Mode", ""),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""),
("show_monitors_tip", ""),
("View Mode", ""),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,9 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""),
("show_monitors_tip", ""),
("View Mode", ""),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
("login_linux_tooltip_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""),
("show_monitors_tip", ""),
("View Mode", ""),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""),
("show_monitors_tip", ""),
("View Mode", ""),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", "此檔案與對方的檔案一致"),
("show_monitors_tip", "在工具列中顯示顯示器"),
("View Mode", "瀏覽模式"),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""),
("show_monitors_tip", ""),
("View Mode", ""),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}

View File

@ -480,8 +480,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("identical_file_tip", ""),
("show_monitors_tip", ""),
("View Mode", ""),
("Enter RustDesk password", ""),
("Remember RustDesk password", ""),
("Login Required", ""),
("enter_rustdesk_passwd_tip", ""),
("remember_rustdesk_passwd_tip", ""),
("login_linux_tip", ""),
].iter().cloned().collect();
}