mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-18 17:40:34 +01:00
cli: make prompts asking for user input translatable in 'nmcli device'
This commit is contained in:
parent
55e816b36e
commit
0376f0be16
1 changed files with 3 additions and 3 deletions
|
|
@ -1169,7 +1169,7 @@ do_device_disconnect (NmCli *nmc, int argc, char **argv)
|
|||
|
||||
if (argc == 0) {
|
||||
if (nmc->ask) {
|
||||
ifname = ifname_ask = nmc_get_user_input ("Interface: ");
|
||||
ifname = ifname_ask = nmc_get_user_input (_("Interface: "));
|
||||
// TODO: list available devices when just Enter is pressed ?
|
||||
}
|
||||
if (!ifname_ask) {
|
||||
|
|
@ -1646,7 +1646,7 @@ do_device_wifi_connect_network (NmCli *nmc, int argc, char **argv)
|
|||
argv++;
|
||||
} else {
|
||||
if (nmc->ask) {
|
||||
ssid_ask = nmc_get_user_input ("SSID or BSSID: ");
|
||||
ssid_ask = nmc_get_user_input (_("SSID or BSSID: "));
|
||||
param_user = ssid_ask ? ssid_ask : "";
|
||||
bssid1_arr = nm_utils_hwaddr_atoba (param_user, ARPHRD_ETHER);
|
||||
}
|
||||
|
|
@ -1825,7 +1825,7 @@ do_device_wifi_connect_network (NmCli *nmc, int argc, char **argv)
|
|||
if (ap_flags & NM_802_11_AP_FLAGS_PRIVACY) {
|
||||
/* Ask for missing password when one is expected and '--ask' is used */
|
||||
if (!password && nmc->ask)
|
||||
password = passwd_ask = nmc_get_user_input ("Password: ");
|
||||
password = passwd_ask = nmc_get_user_input (_("Password: "));
|
||||
|
||||
if (password) {
|
||||
if (!connection)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue