Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAllan Nordhøy <epost@anotheragency.no>2019-12-07 09:59:46 +0300
committerAntenore Gatta <antenore@simbiosi.org>2019-12-07 09:59:46 +0300
commit1bce349ce82cd40cf52e164a1907c8a26cd4d5a2 (patch)
tree793d232e780c7c5f39ac2923f276f91d3cf59626 /src
parent61bd7ed8f720aaeacb0b4b368853983c87ba59ca (diff)
Spelling: Error messages
Diffstat (limited to 'src')
-rw-r--r--src/rcw.c2
-rw-r--r--src/remmina_main.c2
-rw-r--r--src/remmina_protocol_widget.c14
-rw-r--r--src/remmina_sftp_client.c40
-rw-r--r--src/remmina_ssh.c78
5 files changed, 68 insertions, 68 deletions
diff --git a/src/rcw.c b/src/rcw.c
index 38f771817..95e4144d2 100644
--- a/src/rcw.c
+++ b/src/rcw.c
@@ -3771,7 +3771,7 @@ gboolean rcw_open_from_filename(const gchar *filename)
return TRUE;
} else {
dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,
- _("The file %s is corrupted, unreadable, or could not be found."), filename);
+ _("The file \"%s\" is corrupted, unreadable, or could not be found."), filename);
g_signal_connect(G_OBJECT(dialog), "response", G_CALLBACK(gtk_widget_destroy), NULL);
gtk_widget_show(dialog);
remmina_widget_pool_register(dialog);
diff --git a/src/remmina_main.c b/src/remmina_main.c
index cd365e9cd..77ce381b3 100644
--- a/src/remmina_main.c
+++ b/src/remmina_main.c
@@ -825,7 +825,7 @@ void remmina_main_on_action_connection_delete(GSimpleAction *action, GVariant *p
return;
dialog = gtk_message_dialog_new(remminamain->window, GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO,
- _("Are you sure you want to delete '%s'?"), remminamain->priv->selected_name);
+ _("Are you sure you want to delete \"%s\"?"), remminamain->priv->selected_name);
if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_YES) {
delfilename = g_strdup(remminamain->priv->selected_filename);
remmina_file_delete(delfilename);
diff --git a/src/remmina_protocol_widget.c b/src/remmina_protocol_widget.c
index f5d945aa0..37afefc50 100644
--- a/src/remmina_protocol_widget.c
+++ b/src/remmina_protocol_widget.c
@@ -286,7 +286,7 @@ void remmina_protocol_widget_open_connection(RemminaProtocolWidget *gp)
rco_destroy_message_panel(gp->cnnobj, mp);
name = remmina_file_get_string(gp->priv->remmina_file, "name");
- s = g_strdup_printf(_("Connecting to '%s'…"), (name ? name : "*"));
+ s = g_strdup_printf(_("Connecting to \"%s\"…"), (name ? name : "*"));
mp = remmina_message_panel_new();
remmina_message_panel_setup_progress(mp, s, cancel_open_connection_cb, gp);
@@ -713,8 +713,8 @@ static gboolean remmina_protocol_widget_init_tunnel(RemminaProtocolWidget *gp)
if (gp->priv->ssh_tunnel == NULL) {
tunnel = remmina_ssh_tunnel_new_from_file(gp->priv->remmina_file);
- g_debug ("Connecting to %s via SSH…", REMMINA_SSH(tunnel)->server);
- msg = g_strdup_printf(_("Connecting to %s via SSH…"), REMMINA_SSH(tunnel)->server);
+ g_debug ("Connecting to \"%s\" via SSH…", REMMINA_SSH(tunnel)->server);
+ msg = g_strdup_printf(_("Connecting to \"%s\" via SSH…"), REMMINA_SSH(tunnel)->server);
mp = remmina_protocol_widget_mpprogress(gp->cnnobj, msg, cancel_init_tunnel_cb, NULL);
g_free(msg);
@@ -802,7 +802,7 @@ gchar *remmina_protocol_widget_start_direct_tunnel(RemminaProtocolWidget *gp, gi
return NULL;
}
- msg = g_strdup_printf(_("Connecting to %s via SSH…"), server);
+ msg = g_strdup_printf(_("Connecting to \"%s\" via SSH…"), server);
mp = remmina_protocol_widget_mpprogress(gp->cnnobj, msg, cancel_start_direct_tunnel_cb, NULL);
g_free(msg);
@@ -897,11 +897,11 @@ gboolean remmina_protocol_widget_ssh_exec(RemminaProtocolWidget *gp, gboolean wa
break;
case 127:
remmina_ssh_set_application_error(REMMINA_SSH(tunnel),
- _("Could not find %s command on the SSH server"), cmd);
+ _("The \"%s\" command is not available on the SSH server."), cmd);
break;
default:
remmina_ssh_set_application_error(REMMINA_SSH(tunnel),
- _("Could not run %s command on the SSH server (status = %i)."), cmd, status);
+ _("Could not run the \"%s\" command on the SSH server (status = %i)."), cmd, status);
break;
}
} else {
@@ -909,7 +909,7 @@ gboolean remmina_protocol_widget_ssh_exec(RemminaProtocolWidget *gp, gboolean wa
}
} else {
// TRANSLATORS: %s is a placeholder for an error message
- remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not run command: %s"));
+ remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not run command. %s"));
}
g_free(cmd);
if (wait)
diff --git a/src/remmina_sftp_client.c b/src/remmina_sftp_client.c
index 35e1d85b5..733c7748f 100644
--- a/src/remmina_sftp_client.c
+++ b/src/remmina_sftp_client.c
@@ -168,7 +168,7 @@ remmina_sftp_client_thread_download_file(RemminaSFTPClient *client, RemminaSFTP
*tmp = '\0';
if (g_mkdir_with_parents(buf, 0755) < 0) {
// TRANSLATORS: The placeholder %s is a directory path
- remmina_sftp_client_thread_set_error(client, task, _("Error creating directory %s."), buf);
+ remmina_sftp_client_thread_set_error(client, task, _("Could not create the folder \"%s\"."), buf);
return FALSE;
}
}
@@ -176,7 +176,7 @@ remmina_sftp_client_thread_download_file(RemminaSFTPClient *client, RemminaSFTP
local_file = g_fopen(local_path, "ab");
if (!local_file) {
// TRANSLATORS: The placeholder %s is a file path
- remmina_sftp_client_thread_set_error(client, task, _("Error creating file %s."), local_path);
+ remmina_sftp_client_thread_set_error(client, task, _("Could not create the file \"%s\"."), local_path);
return FALSE;
}
@@ -197,7 +197,7 @@ remmina_sftp_client_thread_download_file(RemminaSFTPClient *client, RemminaSFTP
local_file = g_fopen(local_path, "wb");
if (!local_file) {
// TRANSLATORS: The placeholder %s is a file path
- remmina_sftp_client_thread_set_error(client, task, _("Error creating file %s."), local_path);
+ remmina_sftp_client_thread_set_error(client, task, _("Could not create the file \"%s\"."), local_path);
return FALSE;
}
size = 0;
@@ -215,7 +215,7 @@ remmina_sftp_client_thread_download_file(RemminaSFTPClient *client, RemminaSFTP
if (!remote_file) {
fclose(local_file);
// TRANSLATORS: The placeholders %s are a file path and a server name
- remmina_sftp_client_thread_set_error(client, task, _("Error opening file %s on server. %s"),
+ remmina_sftp_client_thread_set_error(client, task, _("Could not open the file \"%s\" on the server. %s"),
remote_path, ssh_get_error(REMMINA_SSH(client->sftp)->session));
return FALSE;
}
@@ -224,7 +224,7 @@ remmina_sftp_client_thread_download_file(RemminaSFTPClient *client, RemminaSFTP
if (sftp_seek64(remote_file, size) < 0) {
sftp_close(remote_file);
fclose(local_file);
- remmina_sftp_client_thread_set_error(client, task, "Error seeking remote file %s. %s",
+ remmina_sftp_client_thread_set_error(client, task, "Could not download the file \"%s\". %s",
remote_path, ssh_get_error(REMMINA_SSH(client->sftp)->session));
return FALSE;
}
@@ -237,7 +237,7 @@ remmina_sftp_client_thread_download_file(RemminaSFTPClient *client, RemminaSFTP
if (fwrite(buf, 1, len, local_file) < len) {
sftp_close(remote_file);
fclose(local_file);
- remmina_sftp_client_thread_set_error(client, task, _("Error writing file %s."), local_path);
+ remmina_sftp_client_thread_set_error(client, task, _("Could not save the file \"%s\"."), local_path);
return FALSE;
}
@@ -276,7 +276,7 @@ remmina_sftp_client_thread_recursive_dir(RemminaSFTPClient *client, RemminaSFTP
g_free(tmp);
if (!sftpdir) {
- remmina_sftp_client_thread_set_error(client, task, _("Error opening directory %s. %s"),
+ remmina_sftp_client_thread_set_error(client, task, _("Could not open the folder \"%s\". %s"),
dir_path, ssh_get_error(REMMINA_SSH(client->sftp)->session));
g_free(dir_path);
return FALSE;
@@ -380,7 +380,7 @@ remmina_sftp_client_thread_mkdir(RemminaSFTPClient *client, RemminaSFTP *sftp, R
return TRUE;
}
if (sftp_mkdir(sftp->sftp_sess, path, 0755) < 0) {
- remmina_sftp_client_thread_set_error(client, task, _("Error creating folder %s on server. %s"),
+ remmina_sftp_client_thread_set_error(client, task, _("Could not create the folder \"%s\" on the server. %s"),
path, ssh_get_error(REMMINA_SSH(client->sftp)->session));
return FALSE;
}
@@ -408,7 +408,7 @@ remmina_sftp_client_thread_upload_file(RemminaSFTPClient *client, RemminaSFTP *s
g_free(tmp);
if (!remote_file) {
- remmina_sftp_client_thread_set_error(client, task, _("Error creating file %s on server. %s"),
+ remmina_sftp_client_thread_set_error(client, task, _("Could not create the file \"%s\" on the server. %s"),
remote_path, ssh_get_error(REMMINA_SSH(client->sftp)->session));
return FALSE;
}
@@ -430,7 +430,7 @@ remmina_sftp_client_thread_upload_file(RemminaSFTPClient *client, RemminaSFTP *s
remote_file = sftp_open(sftp->sftp_sess, tmp, O_WRONLY | O_CREAT | O_TRUNC, 0644);
g_free(tmp);
if (!remote_file) {
- remmina_sftp_client_thread_set_error(client, task, _("Error creating file %s on server. %s"),
+ remmina_sftp_client_thread_set_error(client, task, _("Could not create the file \"%s\" on the server. %s"),
remote_path, ssh_get_error(REMMINA_SSH(client->sftp)->session));
return FALSE;
}
@@ -440,7 +440,7 @@ remmina_sftp_client_thread_upload_file(RemminaSFTPClient *client, RemminaSFTP *s
case GTK_RESPONSE_APPLY:
if (sftp_seek64(remote_file, size) < 0) {
sftp_close(remote_file);
- remmina_sftp_client_thread_set_error(client, task, "Error seeking remote file %s. %s",
+ remmina_sftp_client_thread_set_error(client, task, "Could not download the file \"%s\". %s",
remote_path, ssh_get_error(REMMINA_SSH(client->sftp)->session));
return FALSE;
}
@@ -451,7 +451,7 @@ remmina_sftp_client_thread_upload_file(RemminaSFTPClient *client, RemminaSFTP *s
local_file = g_fopen(local_path, "rb");
if (!local_file) {
sftp_close(remote_file);
- remmina_sftp_client_thread_set_error(client, task, _("Error opening file %s."), local_path);
+ remmina_sftp_client_thread_set_error(client, task, _("Could not open the file \"%s\"."), local_path);
return FALSE;
}
@@ -459,7 +459,7 @@ remmina_sftp_client_thread_upload_file(RemminaSFTPClient *client, RemminaSFTP *s
if (fseeko(local_file, size, SEEK_SET) < 0) {
sftp_close(remote_file);
fclose(local_file);
- remmina_sftp_client_thread_set_error(client, task, "Error seeking local file %s.", local_path);
+ remmina_sftp_client_thread_set_error(client, task, "Could not find the local file \"%s\".", local_path);
return FALSE;
}
*donesize = size;
@@ -471,7 +471,7 @@ remmina_sftp_client_thread_upload_file(RemminaSFTPClient *client, RemminaSFTP *s
if (sftp_write(remote_file, buf, len) < len) {
sftp_close(remote_file);
fclose(local_file);
- remmina_sftp_client_thread_set_error(client, task, _("Error writing file %s on server. %s"),
+ remmina_sftp_client_thread_set_error(client, task, _("Could not write to the file \"%s\" on the server. %s"),
remote_path, ssh_get_error(REMMINA_SSH(client->sftp)->session));
return FALSE;
}
@@ -667,7 +667,7 @@ remmina_sftp_client_sftp_session_opendir(RemminaSFTPClient *client, const gchar
if (!sftpdir) {
dialog = gtk_message_dialog_new(GTK_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(client))),
GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK,
- _("Failed to open directory %s. %s"), dir,
+ _("Could not open the folder \"%s\". %s"), dir,
ssh_get_error(REMMINA_SSH(client->sftp)->session));
gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_destroy(dialog);
@@ -685,7 +685,7 @@ remmina_sftp_client_sftp_session_closedir(RemminaSFTPClient *client, sftp_dir sf
if (!sftp_dir_eof(sftpdir)) {
dialog = gtk_message_dialog_new(GTK_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(client))),
GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK,
- _("Failed reading directory. %s"), ssh_get_error(REMMINA_SSH(client->sftp)->session));
+ _("Could not read from the folder. %s"), ssh_get_error(REMMINA_SSH(client->sftp)->session));
gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_destroy(dialog);
return FALSE;
@@ -730,7 +730,7 @@ remmina_sftp_client_on_opendir(RemminaSFTPClient *client, gchar *dir, gpointer d
if (!newdir) {
dialog = gtk_message_dialog_new(NULL,
GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK,
- _("Failed to open directory %s. %s"), dir,
+ _("Could not open the folder \"%s\". %s"), dir,
ssh_get_error(REMMINA_SSH(client->sftp)->session));
gtk_widget_show(dialog);
g_signal_connect(G_OBJECT(dialog), "response", G_CALLBACK(gtk_widget_destroy), NULL);
@@ -792,7 +792,7 @@ remmina_sftp_client_on_canceltask(RemminaSFTPClient *client, gint taskid, gpoint
dialog = gtk_message_dialog_new(GTK_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(client))),
GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO,
- _("File transfer currently in progress.\nAre you sure to cancel it?"));
+ _("Are you sure you want to cancel the file transfer in progress?"));
ret = gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_destroy(dialog);
if (ret == GTK_RESPONSE_YES) {
@@ -826,7 +826,7 @@ remmina_sftp_client_on_deletefile(RemminaSFTPClient *client, gint type, gchar *n
if (ret != 0) {
dialog = gtk_message_dialog_new(GTK_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(client))),
GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK,
- _("Failed to delete '%s'. %s"),
+ _("Could not delete \"%s\". %s"),
name, ssh_get_error(REMMINA_SSH(client->sftp)->session));
gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_destroy(dialog);
@@ -907,7 +907,7 @@ remmina_sftp_client_confirm_resume(RemminaSFTPClient *client, const gchar *path)
filename = strrchr(path, '/');
filename = filename ? filename + 1 : path;
- dialog = gtk_dialog_new_with_buttons(_("File exists"),
+ dialog = gtk_dialog_new_with_buttons(_("The file exists already"),
GTK_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(client))),
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
_("Resume"), GTK_RESPONSE_APPLY,
diff --git a/src/remmina_ssh.c b/src/remmina_ssh.c
index 6c236aac8..e4d92377e 100644
--- a/src/remmina_ssh.c
+++ b/src/remmina_ssh.c
@@ -200,7 +200,7 @@ remmina_ssh_auth_password(RemminaSSH *ssh)
ret = ssh_userauth_password(ssh->session, NULL, ssh->password);
if (ret != SSH_AUTH_SUCCESS) {
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(ssh, _("SSH password authentication failed: %s"));
+ remmina_ssh_set_error(ssh, _("Could not authenticate with SSH password. %s"));
return 0;
}
@@ -221,7 +221,7 @@ remmina_ssh_auth_pubkey(RemminaSSH *ssh)
if (ssh->privkeyfile == NULL) {
// TRANSLATORS: The placeholder %s is an error message
- ssh->error = g_strdup_printf(_("SSH public key authentication failed: %s"),
+ ssh->error = g_strdup_printf(_("Could not authenticate with public SSH key. %s"),
_("SSH Key file not yet set."));
return 0;
}
@@ -233,7 +233,7 @@ remmina_ssh_auth_pubkey(RemminaSSH *ssh)
ret = ssh_pki_import_pubkey_file(pubkey, &key);
if (ret != SSH_OK) {
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(ssh, _("SSH public key cannot be imported: %s"));
+ remmina_ssh_set_error(ssh, _("Public SSH key cannot be imported. %s"));
return 0;
}
ssh_key_free(key);
@@ -245,7 +245,7 @@ remmina_ssh_auth_pubkey(RemminaSSH *ssh)
if (ssh->passphrase == NULL || ssh->passphrase[0] == '\0') return -1;
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(ssh, _("SSH public key authentication failed: %s"));
+ remmina_ssh_set_error(ssh, _("Could not authenticate with public SSH key. %s"));
return 0;
}
@@ -254,7 +254,7 @@ remmina_ssh_auth_pubkey(RemminaSSH *ssh)
if (ret != SSH_AUTH_SUCCESS) {
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(ssh, _("SSH public key authentication failed: %s"));
+ remmina_ssh_set_error(ssh, _("Could not authenticate with public SSH key. %s"));
return 0;
}
@@ -296,7 +296,7 @@ remmina_ssh_auth_auto_pubkey(RemminaSSH *ssh, RemminaProtocolWidget *gp, Remmina
if (ret != SSH_AUTH_SUCCESS) {
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(ssh, _("SSH automatic public key authentication failed: %s"));
+ remmina_ssh_set_error(ssh, _("Could not authenticate automatically with public SSH key. %s"));
return -1;
}
@@ -313,7 +313,7 @@ remmina_ssh_auth_agent(RemminaSSH *ssh)
if (ret != SSH_AUTH_SUCCESS) {
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(ssh, _("SSH public key authentication with SSH agent failed: %s"));
+ remmina_ssh_set_error(ssh, _("Could not authenticate with public SSH key using SSH agent. %s"));
return 0;
}
@@ -333,7 +333,7 @@ remmina_ssh_auth_gssapi(RemminaSSH *ssh)
if (ret != SSH_AUTH_SUCCESS) {
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(ssh, _("SSH Kerberos/GSSAPI authentication failed: %s"));
+ remmina_ssh_set_error(ssh, _("Could not authenticate with SSH Kerberos/GSSAPI. %s"));
return 0;
}
@@ -489,14 +489,14 @@ remmina_ssh_auth_gui(RemminaSSH *ssh, RemminaProtocolWidget *gp, RemminaFile *re
#if LIBSSH_VERSION_INT >= SSH_VERSION_INT(0, 8, 6)
if (ssh_get_server_publickey(ssh->session, &server_pubkey) != SSH_OK) {
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(ssh, _("ssh_get_server_publickey() has failed: %s"));
+ remmina_ssh_set_error(ssh, _("Could not fetch the server\'s public SSH key. %s"));
g_debug ("ssh_get_server_publickey() has failed");
return 0;
}
#else
if (ssh_get_publickey(ssh->session, &server_pubkey) != SSH_OK) {
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(ssh, _("ssh_get_publickey() has failed: %s"));
+ remmina_ssh_set_error(ssh, _("Could not fetch public SSH key. %s"));
g_debug ("ssh_get_publickey() has failed");
return 0;
}
@@ -504,7 +504,7 @@ remmina_ssh_auth_gui(RemminaSSH *ssh, RemminaProtocolWidget *gp, RemminaFile *re
if (ssh_get_publickey_hash(server_pubkey, SSH_PUBLICKEY_HASH_MD5, &pubkey, &len) != 0) {
ssh_key_free(server_pubkey);
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(ssh, _("ssh_get_publickey_hash() has failed: %s"));
+ remmina_ssh_set_error(ssh, _("Could not fetch checksum for public SSH key. %s"));
g_debug ("ssh_get_publickey_hash() has failed");
return 0;
}
@@ -547,7 +547,7 @@ remmina_ssh_auth_gui(RemminaSSH *ssh, RemminaProtocolWidget *gp, RemminaFile *re
#endif
default:
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(ssh, _("Could not check list of known SSH hosts: %s"));
+ remmina_ssh_set_error(ssh, _("Could not check list of known SSH hosts. %s"));
g_debug ("Could not check list of known SSH hosts");
return 0;
}
@@ -700,32 +700,32 @@ remmina_ssh_init_session(RemminaSSH *ssh)
if (rc == 0)
remmina_log_printf("[SSH] SSH_OPTIONS_KEY_EXCHANGE is now %s\n", ssh->kex_algorithms);
else
- remmina_log_printf("[SSH] SSH_OPTIONS_KEY_EXCHANGE does not have a valid value, %s\n", ssh->kex_algorithms);
+ remmina_log_printf("[SSH] SSH_OPTIONS_KEY_EXCHANGE does not have a valid value. %s\n", ssh->kex_algorithms);
rc = ssh_options_set(ssh->session, SSH_OPTIONS_CIPHERS_C_S, ssh->ciphers);
if (rc == 0)
remmina_log_printf("[SSH] SSH_OPTIONS_CIPHERS_C_S has been set to %s\n", ssh->ciphers);
else
- remmina_log_printf("[SSH] SSH_OPTIONS_CIPHERS_C_S does not have a valid value, %s\n", ssh->ciphers);
+ remmina_log_printf("[SSH] SSH_OPTIONS_CIPHERS_C_S does not have a valid value. %s\n", ssh->ciphers);
rc = ssh_options_set(ssh->session, SSH_OPTIONS_HOSTKEYS, ssh->hostkeytypes);
if (rc == 0)
remmina_log_printf("[SSH] SSH_OPTIONS_HOSTKEYS is now %s\n", ssh->hostkeytypes);
else
- remmina_log_printf("[SSH] SSH_OPTIONS_HOSTKEYS does not have a valid value, %s\n", ssh->hostkeytypes);
+ remmina_log_printf("[SSH] SSH_OPTIONS_HOSTKEYS does not have a valid value. %s\n", ssh->hostkeytypes);
rc = ssh_options_set(ssh->session, SSH_OPTIONS_PROXYCOMMAND, ssh->proxycommand);
if (rc == 0)
remmina_log_printf("[SSH] SSH_OPTIONS_PROXYCOMMAND is now %s\n", ssh->proxycommand);
else
- remmina_log_printf("[SSH] SSH_OPTIONS_PROXYCOMMAND does not have a valid value, %s\n", ssh->proxycommand);
+ remmina_log_printf("[SSH] SSH_OPTIONS_PROXYCOMMAND does not have a valid value. %s\n", ssh->proxycommand);
rc = ssh_options_set(ssh->session, SSH_OPTIONS_STRICTHOSTKEYCHECK, &ssh->stricthostkeycheck);
if (rc == 0)
remmina_log_printf("[SSH] SSH_OPTIONS_STRICTHOSTKEYCHECK is now %d\n", ssh->stricthostkeycheck);
else
- remmina_log_printf("[SSH] SSH_OPTIONS_STRICTHOSTKEYCHECK does not have a valid value, %d\n", ssh->stricthostkeycheck);
+ remmina_log_printf("[SSH] SSH_OPTIONS_STRICTHOSTKEYCHECK does not have a valid value. %d\n", ssh->stricthostkeycheck);
rc = ssh_options_set(ssh->session, SSH_OPTIONS_COMPRESSION, ssh->compression);
if (rc == 0)
remmina_log_printf("[SSH] SSH_OPTIONS_COMPRESSION is now %s\n", ssh->compression);
else
- remmina_log_printf("[SSH] SSH_OPTIONS_COMPRESSION does not have a valid value, %s\n", ssh->compression);
+ remmina_log_printf("[SSH] SSH_OPTIONS_COMPRESSION does not have a valid value. %s\n", ssh->compression);
ssh_callbacks_init(ssh->callback);
if (remmina_log_running()) {
@@ -744,7 +744,7 @@ remmina_ssh_init_session(RemminaSSH *ssh)
if (ssh_connect(ssh->session)) {
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(ssh, _("Could not start SSH session: %s"));
+ remmina_ssh_set_error(ssh, _("Could not start SSH session. %s"));
return FALSE;
}
@@ -1103,7 +1103,7 @@ remmina_ssh_tunnel_create_forward_channel(RemminaSSHTunnel *tunnel)
channel = ssh_channel_new(tunnel->ssh.session);
if (!channel) {
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not create channel: %s"));
+ remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not create channel. %s"));
return NULL;
}
@@ -1114,7 +1114,7 @@ remmina_ssh_tunnel_create_forward_channel(RemminaSSHTunnel *tunnel)
ssh_channel_send_eof(channel);
ssh_channel_free(channel);
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not connect to SSH tunnel: %s"));
+ remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not connect to SSH tunnel. %s"));
return NULL;
}
@@ -1165,7 +1165,7 @@ remmina_ssh_tunnel_main_thread_proc(gpointer data)
case REMMINA_SSH_TUNNEL_X11:
if ((tunnel->x11_channel = ssh_channel_new(tunnel->ssh.session)) == NULL) {
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not create channel: %s"));
+ remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not create channel. %s"));
tunnel->thread = 0;
return NULL;
}
@@ -1180,7 +1180,7 @@ remmina_ssh_tunnel_main_thread_proc(gpointer data)
gdk_x11_screen_get_screen_number(gdk_screen_get_default()))) {
g_free(ptr);
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not open channel: %s"));
+ remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not open channel. %s"));
tunnel->thread = 0;
return NULL;
}
@@ -1224,7 +1224,7 @@ remmina_ssh_tunnel_main_thread_proc(gpointer data)
}
if (tunnel->remotedisplay < 1) {
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not request port forwarding: %s"));
+ remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not request port forwarding. %s"));
if (tunnel->disconnect_func)
(*tunnel->disconnect_func)(tunnel, tunnel->callback_data);
tunnel->thread = 0;
@@ -1245,7 +1245,7 @@ remmina_ssh_tunnel_main_thread_proc(gpointer data)
#if LIBSSH_VERSION_INT >= SSH_VERSION_INT(0, 7, 0)
if (ssh_channel_listen_forward(REMMINA_SSH(tunnel)->session, NULL, tunnel->port, NULL)) {
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not request port forwarding: %s"));
+ remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not request port forwarding. %s"));
if (tunnel->disconnect_func)
(*tunnel->disconnect_func)(tunnel, tunnel->callback_data);
tunnel->thread = 0;
@@ -1254,7 +1254,7 @@ remmina_ssh_tunnel_main_thread_proc(gpointer data)
#else
if (ssh_forward_listen(REMMINA_SSH(tunnel)->session, NULL, tunnel->port, NULL)) {
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not request port forwarding: %s"));
+ remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not request port forwarding. %s"));
if (tunnel->disconnect_func)
(*tunnel->disconnect_func)(tunnel, tunnel->callback_data);
tunnel->thread = 0;
@@ -1382,14 +1382,14 @@ remmina_ssh_tunnel_main_thread_proc(gpointer data)
if (lenw <= 0) {
disconnected = TRUE;
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not run ssh_channel_write(): %s"));
+ remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not write to SSH channel. %s"));
break;
}
}
}
if (len == 0) {
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not read from tunnel listening socket: %s"));
+ remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not read from tunnel listening socket. %s"));
disconnected = TRUE;
}
}
@@ -1409,14 +1409,14 @@ remmina_ssh_tunnel_main_thread_proc(gpointer data)
len = ssh_channel_poll(tunnel->channels[i], 0);
if (len == SSH_ERROR || len == SSH_EOF) {
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not run ssh_channel_poll(): %s"));
+ remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not poll SSH channel. %s"));
disconnected = TRUE;
} else if (len > 0) {
tunnel->socketbuffers[i] = remmina_ssh_tunnel_buffer_new(len);
len = ssh_channel_read_nonblocking(tunnel->channels[i], tunnel->socketbuffers[i]->data, len, 0);
if (len <= 0) {
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not run ssh_channel_read_nonblocking(): %s"));
+ remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not read SSH channel in a non-blocking way. %s"));
disconnected = TRUE;
} else {
tunnel->socketbuffers[i]->len = len;
@@ -1435,7 +1435,7 @@ remmina_ssh_tunnel_main_thread_proc(gpointer data)
break;
if (lenw <= 0) {
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not send data to tunnel listening socket: %s"));
+ remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not send data to tunnel listening socket. %s"));
disconnected = TRUE;
break;
}
@@ -1447,7 +1447,7 @@ remmina_ssh_tunnel_main_thread_proc(gpointer data)
}
if (disconnected) {
- remmina_log_printf("Connection to [SSH] tunnel lost, %s\n", REMMINA_SSH(tunnel)->error);
+ remmina_log_printf("Connection to SSH tunnel dropped. %s\n", REMMINA_SSH(tunnel)->error);
remmina_ssh_tunnel_remove_channel(tunnel, i);
continue;
}
@@ -1461,7 +1461,7 @@ remmina_ssh_tunnel_main_thread_proc(gpointer data)
if (sock > 0) {
channel = remmina_ssh_tunnel_create_forward_channel(tunnel);
if (!channel) {
- remmina_log_printf("Could not open new [SSH] connection, %s\n", REMMINA_SSH(tunnel)->error);
+ remmina_log_printf("Could not open new SSH connection. %s\n", REMMINA_SSH(tunnel)->error);
close(sock);
/* Leave thread loop */
tunnel->running = FALSE;
@@ -1564,7 +1564,7 @@ remmina_ssh_tunnel_x11(RemminaSSHTunnel *tunnel, const gchar *cmd)
if (pthread_create(&tunnel->thread, NULL, remmina_ssh_tunnel_main_thread, tunnel)) {
// TRANSLATORS: Do not translate pthread
- remmina_ssh_set_application_error(REMMINA_SSH(tunnel), _("Could not initialize pthread."));
+ remmina_ssh_set_application_error(REMMINA_SSH(tunnel), _("Could not start pthread."));
tunnel->thread = 0;
return FALSE;
}
@@ -1599,7 +1599,7 @@ remmina_ssh_tunnel_reverse(RemminaSSHTunnel *tunnel, gint port, gint local_port)
if (pthread_create(&tunnel->thread, NULL, remmina_ssh_tunnel_main_thread, tunnel)) {
// TRANSLATORS: Do not translate pthread
- remmina_ssh_set_application_error(REMMINA_SSH(tunnel), _("Could not initialize pthread."));
+ remmina_ssh_set_application_error(REMMINA_SSH(tunnel), _("Could not start pthread."));
tunnel->thread = 0;
return FALSE;
}
@@ -1688,12 +1688,12 @@ remmina_sftp_open(RemminaSFTP *sftp)
sftp->sftp_sess = sftp_new(sftp->ssh.session);
if (!sftp->sftp_sess) {
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(REMMINA_SSH(sftp), _("Could not create SFTP session: %s"));
+ remmina_ssh_set_error(REMMINA_SSH(sftp), _("Could not create SFTP session. %s"));
return FALSE;
}
if (sftp_init(sftp->sftp_sess)) {
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(REMMINA_SSH(sftp), _("Could not initialize SFTP session: %s"));
+ remmina_ssh_set_error(REMMINA_SSH(sftp), _("Could not start SFTP session. %s"));
return FALSE;
}
return TRUE;
@@ -1778,7 +1778,7 @@ remmina_ssh_shell_thread(gpointer data)
ssh_channel_open_session(channel)) {
UNLOCK_SSH(shell)
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(REMMINA_SSH(shell), _("Could not open channel: %s"));
+ remmina_ssh_set_error(REMMINA_SSH(shell), _("Could not open channel. %s"));
if (channel) ssh_channel_free(channel);
shell->thread = 0;
return NULL;
@@ -1808,7 +1808,7 @@ remmina_ssh_shell_thread(gpointer data)
if (ret) {
UNLOCK_SSH(shell)
// TRANSLATORS: The placeholder %s is an error message
- remmina_ssh_set_error(REMMINA_SSH(shell), _("Could not request shell: %s"));
+ remmina_ssh_set_error(REMMINA_SSH(shell), _("Could not request shell. %s"));
ssh_channel_close(channel);
ssh_channel_send_eof(channel);
ssh_channel_free(channel);