Namsh's fixes for i18n password input
Этот коммит содержится в:
родитель
55563b21b4
Коммит
779a7b8865
@ -1,5 +1,8 @@
|
|||||||
# List of files which containing translatable strings.
|
# List of files which containing translatable strings.
|
||||||
|
|
||||||
|
vfs/ftpfs.c
|
||||||
|
vfs/mcfs.c
|
||||||
|
|
||||||
edit/edit.c
|
edit/edit.c
|
||||||
edit/edit_key_translator.c
|
edit/edit_key_translator.c
|
||||||
edit/editcmd.c
|
edit/editcmd.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 (strlen (header), msglen (text, &lines)) + 4;
|
||||||
len = max (len, 64);
|
len = max (len, 64);
|
||||||
|
|
||||||
if (strncmp (text, _("Password"), 8) == 0){
|
if (strncmp (text, _("Password:"), strlen (_("Password")) == 0){
|
||||||
quick_widgets [INPUT_INDEX].value = 1;
|
quick_widgets [INPUT_INDEX].value = 1;
|
||||||
tk_name[3]=0;
|
tk_name[3]=0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -441,7 +441,7 @@ login_server (struct ftpfs_connection *bucket, char *netrcpass)
|
|||||||
if (!bucket->password){
|
if (!bucket->password){
|
||||||
p = copy_strings (" FTP: Password required for ", quser(bucket),
|
p = copy_strings (" FTP: Password required for ", quser(bucket),
|
||||||
" ", NULL);
|
" ", NULL);
|
||||||
op = input_dialog (p, "Password:", "");
|
op = input_dialog (p, _("Password:"), "");
|
||||||
free (p);
|
free (p);
|
||||||
if (op == NULL) {
|
if (op == NULL) {
|
||||||
ftpfserrno = EPERM;
|
ftpfserrno = EPERM;
|
||||||
@ -475,7 +475,7 @@ login_server (struct ftpfs_connection *bucket, char *netrcpass)
|
|||||||
wipe_password (proxypass);
|
wipe_password (proxypass);
|
||||||
p = copy_strings(" Proxy: Password required for ", proxyname, " ",
|
p = copy_strings(" Proxy: Password required for ", proxyname, " ",
|
||||||
NULL);
|
NULL);
|
||||||
proxypass = input_dialog (p, "Password:", "");
|
proxypass = input_dialog (p, _("Password:"), "");
|
||||||
free(p);
|
free(p);
|
||||||
if (proxypass == NULL) {
|
if (proxypass == NULL) {
|
||||||
ftpfserrno = EPERM;
|
ftpfserrno = EPERM;
|
||||||
|
@ -181,7 +181,7 @@ static int mcfs_login_server (int my_socket, char *user, int port,
|
|||||||
if (netrcpass != NULL)
|
if (netrcpass != NULL)
|
||||||
pass = strdup (netrcpass);
|
pass = strdup (netrcpass);
|
||||||
else
|
else
|
||||||
pass = input_dialog (" MCFS Password required ", "Password:", "");
|
pass = input_dialog (" MCFS Password required ", _("Password:"), "");
|
||||||
if (!pass){
|
if (!pass){
|
||||||
rpc_send (my_socket, RPC_INT, MC_QUIT, RPC_END);
|
rpc_send (my_socket, RPC_INT, MC_QUIT, RPC_END);
|
||||||
close (my_socket);
|
close (my_socket);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user