mirror of https://github.com/MidnightCommander/mc
Namsh's fixes for i18n password input
This commit is contained in:
parent
55563b21b4
commit
779a7b8865
|
@ -1,5 +1,8 @@
|
|||
# List of files which containing translatable strings.
|
||||
|
||||
vfs/ftpfs.c
|
||||
vfs/mcfs.c
|
||||
|
||||
edit/edit.c
|
||||
edit/edit_key_translator.c
|
||||
edit/editcmd.c
|
||||
|
@ -48,4 +51,4 @@ gnome/gprop.c
|
|||
gnome/gscreen.c
|
||||
gnome/gtools.c
|
||||
gnome/gview.c
|
||||
gnome/gwidget.c
|
||||
gnome/gwidget.c
|
||||
|
|
|
@ -606,7 +606,7 @@ char *real_input_dialog_help (char *header, char *text, char *help, char *def_te
|
|||
len = max (strlen (header), msglen (text, &lines)) + 4;
|
||||
len = max (len, 64);
|
||||
|
||||
if (strncmp (text, _("Password"), 8) == 0){
|
||||
if (strncmp (text, _("Password:"), strlen (_("Password")) == 0){
|
||||
quick_widgets [INPUT_INDEX].value = 1;
|
||||
tk_name[3]=0;
|
||||
} else {
|
||||
|
|
|
@ -441,7 +441,7 @@ login_server (struct ftpfs_connection *bucket, char *netrcpass)
|
|||
if (!bucket->password){
|
||||
p = copy_strings (" FTP: Password required for ", quser(bucket),
|
||||
" ", NULL);
|
||||
op = input_dialog (p, "Password:", "");
|
||||
op = input_dialog (p, _("Password:"), "");
|
||||
free (p);
|
||||
if (op == NULL) {
|
||||
ftpfserrno = EPERM;
|
||||
|
@ -475,7 +475,7 @@ login_server (struct ftpfs_connection *bucket, char *netrcpass)
|
|||
wipe_password (proxypass);
|
||||
p = copy_strings(" Proxy: Password required for ", proxyname, " ",
|
||||
NULL);
|
||||
proxypass = input_dialog (p, "Password:", "");
|
||||
proxypass = input_dialog (p, _("Password:"), "");
|
||||
free(p);
|
||||
if (proxypass == NULL) {
|
||||
ftpfserrno = EPERM;
|
||||
|
|
|
@ -181,7 +181,7 @@ static int mcfs_login_server (int my_socket, char *user, int port,
|
|||
if (netrcpass != NULL)
|
||||
pass = strdup (netrcpass);
|
||||
else
|
||||
pass = input_dialog (" MCFS Password required ", "Password:", "");
|
||||
pass = input_dialog (" MCFS Password required ", _("Password:"), "");
|
||||
if (!pass){
|
||||
rpc_send (my_socket, RPC_INT, MC_QUIT, RPC_END);
|
||||
close (my_socket);
|
||||
|
|
Loading…
Reference in New Issue