diff options
author | Antenore Gatta <antenore@simbiosi.org> | 2019-11-13 02:32:36 +0300 |
---|---|---|
committer | Antenore Gatta <antenore@simbiosi.org> | 2019-11-13 02:32:36 +0300 |
commit | 870a2e7a589ab93f0cda779ae882d30e9e18c1cc (patch) | |
tree | 2d925746a3cabb1431774c5f00a5714c6d4b3c8a /src | |
parent | 7c635923deb41cf287b7bb9cb047613e2d38bf04 (diff) |
Adding comments for translators
Diffstat (limited to 'src')
-rw-r--r-- | src/remmina.c | 16 | ||||
-rw-r--r-- | src/remmina_about.c | 1 | ||||
-rw-r--r-- | src/remmina_main.c | 1 | ||||
-rw-r--r-- | src/remmina_pref_dialog.c | 1 | ||||
-rw-r--r-- | src/remmina_protocol_widget.c | 3 | ||||
-rw-r--r-- | src/remmina_sftp_client.c | 4 | ||||
-rw-r--r-- | src/remmina_ssh.c | 57 | ||||
-rw-r--r-- | src/remmina_ssh_plugin.c | 3 |
8 files changed, 72 insertions, 14 deletions
diff --git a/src/remmina.c b/src/remmina.c index 7e323738e..a07da19a0 100644 --- a/src/remmina.c +++ b/src/remmina.c @@ -80,22 +80,38 @@ gboolean kioskmode; static GOptionEntry remmina_options[] = { + /// TRANSLATORS: Shown in terminal. Do not use charcters that may be not supported on a terminal { "about", 'a', 0, G_OPTION_ARG_NONE, NULL, N_("Show \'About\'"), NULL }, + /// TRANSLATORS: Shown in terminal. Do not use charcters that may be not supported on a terminal { "connect", 'c', 0, G_OPTION_ARG_FILENAME, NULL, N_("Connect to desktop described in file (.remmina or type supported by plugin)"), "FILE" }, + /// TRANSLATORS: Shown in terminal. Do not use charcters that may be not supported on a terminal { G_OPTION_REMAINING, '\0', 0, G_OPTION_ARG_FILENAME_ARRAY, NULL, N_("Connect to desktop described in file (.remmina or type supported by plugin)"), "FILE" }, + /// TRANSLATORS: Shown in terminal. Do not use charcters that may be not supported on a terminal { "edit", 'e', 0, G_OPTION_ARG_FILENAME, NULL, N_("Edit desktop connection described in file (.remmina or type supported by plugin)"), "FILE" }, { "help", '?', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, NULL, NULL, NULL }, + /// TRANSLATORS: Shown in terminal. Do not use charcters that may be not supported on a terminal { "kiosk", 'k', 0, G_OPTION_ARG_NONE, NULL, N_("Start in kiosk mode"), NULL }, + /// TRANSLATORS: Shown in terminal. Do not use charcters that may be not supported on a terminal { "new", 'n', 0, G_OPTION_ARG_NONE, NULL, N_("Create new connection profile"), NULL }, + /// TRANSLATORS: Shown in terminal. Do not use charcters that may be not supported on a terminal { "pref", 'p', 0, G_OPTION_ARG_STRING, NULL, N_("Show preferences"), "PAGENR" }, + /// TRANSLATORS: Shown in terminal. Do not use charcters that may be not supported on a terminal { "plugin", 'x', 0, G_OPTION_ARG_STRING, NULL, N_("Run a plugin"), "PLUGIN" }, + /// TRANSLATORS: Shown in terminal. Do not use charcters that may be not supported on a terminal { "quit", 'q', 0, G_OPTION_ARG_NONE, NULL, N_("Quit"), NULL }, + /// TRANSLATORS: Shown in terminal. Do not use charcters that may be not supported on a terminal { "server", 's', 0, G_OPTION_ARG_STRING, NULL, N_("Use default server name (for --new)"), "SERVER" }, + /// TRANSLATORS: Shown in terminal. Do not use charcters that may be not supported on a terminal { "protocol", 't', 0, G_OPTION_ARG_STRING, NULL, N_("Use default protocol (for --new)"), "PROTOCOL" }, + /// TRANSLATORS: Shown in terminal. Do not use charcters that may be not supported on a terminal { "icon", 'i', 0, G_OPTION_ARG_NONE, NULL, N_("Start in tray"), NULL }, + /// TRANSLATORS: Shown in terminal. Do not use charcters that may be not supported on a terminal { "version", 'v', 0, G_OPTION_ARG_NONE, NULL, N_("Show the application version"), NULL }, + /// TRANSLATORS: Shown in terminal. Do not use charcters that may be not supported on a terminal { "full-version", 'V', 0, G_OPTION_ARG_NONE, NULL, N_("Show version of the application and its plugins"), NULL }, + /// TRANSLATORS: Shown in terminal. Do not use charcters that may be not supported on a terminal { "update-profile", 0, 0, G_OPTION_ARG_FILENAME, NULL, N_("Modify connection profile, (requires --set-option)"), NULL }, + /// TRANSLATORS: Shown in terminal. Do not use charcters that may be not supported on a terminal { "set-option", 0, 0, G_OPTION_ARG_STRING_ARRAY, NULL, N_("Set one or more profile settings, to be used with --update-profile"), NULL }, { NULL } }; diff --git a/src/remmina_about.c b/src/remmina_about.c index 9723d63e7..c1c7d4d89 100644 --- a/src/remmina_about.c +++ b/src/remmina_about.c @@ -50,6 +50,7 @@ void remmina_about_open(GtkWindow *parent) GtkDialog *dialog = GTK_DIALOG(gtk_builder_get_object(builder, "dialog_remmina_about")); gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(dialog), VERSION " (git " REMMINA_GIT_REVISION ")"); + /// TRANSLATORS: translator-credits should be replaced with a formatted list of translators in your own language gtk_about_dialog_set_translator_credits(GTK_ABOUT_DIALOG(dialog), _("translator-credits")); if (parent) { diff --git a/src/remmina_main.c b/src/remmina_main.c index 652275db4..9fd087a3e 100644 --- a/src/remmina_main.c +++ b/src/remmina_main.c @@ -921,6 +921,7 @@ static void remmina_main_import_file_list(GSList *files) } g_slist_free(files); if (err->len > 0) { + /// TRANSLATORS: The placeholder %s is an error message dlg = gtk_message_dialog_new(remminamain->window, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, _("Unable to import:\n%s"), err->str); g_signal_connect(G_OBJECT(dlg), "response", G_CALLBACK(gtk_widget_destroy), NULL); diff --git a/src/remmina_pref_dialog.c b/src/remmina_pref_dialog.c index 8c2363ad9..ea3f518de 100644 --- a/src/remmina_pref_dialog.c +++ b/src/remmina_pref_dialog.c @@ -440,6 +440,7 @@ static void remmina_pref_dialog_init(void) #else gtk_switch_set_active(GTK_SWITCH(remmina_pref_dialog->switch_security_use_master_password), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(remmina_pref_dialog->switch_security_use_master_password), FALSE); + /// TRANSLATORS: Do not translate libsodium, is the name of a library gtk_widget_set_tooltip_text (GTK_WIDGET(remmina_pref_dialog->switch_security_use_master_password), _("libsodium >= 1.9.0 is required to use master password")); gtk_widget_set_sensitive(GTK_WIDGET(remmina_pref_dialog->unlock_password), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(remmina_pref_dialog->unlock_repassword), FALSE); diff --git a/src/remmina_protocol_widget.c b/src/remmina_protocol_widget.c index 1c2d6ddad..1232011d1 100644 --- a/src/remmina_protocol_widget.c +++ b/src/remmina_protocol_widget.c @@ -899,7 +899,8 @@ gboolean remmina_protocol_widget_ssh_exec(RemminaProtocolWidget *gp, gboolean wa ret = TRUE; } } else { - remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not run command, %s")); + /// TRANSLATORS: %s is a placeholder for an error message + 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 872234d96..8370c7824 100644 --- a/src/remmina_sftp_client.c +++ b/src/remmina_sftp_client.c @@ -167,6 +167,7 @@ remmina_sftp_client_thread_download_file(RemminaSFTPClient *client, RemminaSFTP if (tmp && tmp != buf) { *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); return FALSE; } @@ -174,6 +175,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); return FALSE; } @@ -194,6 +196,7 @@ remmina_sftp_client_thread_download_file(RemminaSFTPClient *client, RemminaSFTP fclose(local_file); 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); return FALSE; } @@ -211,6 +214,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"), remote_path, ssh_get_error(REMMINA_SSH(client->sftp)->session)); return FALSE; diff --git a/src/remmina_ssh.c b/src/remmina_ssh.c index 229fd6031..494a3e37f 100644 --- a/src/remmina_ssh.c +++ b/src/remmina_ssh.c @@ -199,6 +199,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")); return 0; } @@ -219,6 +220,7 @@ remmina_ssh_auth_pubkey(RemminaSSH *ssh) if (ssh->authenticated) return 1; if (ssh->privkeyfile == NULL) { + /// TRANSLATORS: The placeholder %s is an error message ssh->error = g_strdup_printf(_("SSH public key authentication failed: %s"), _("SSH Key file not yet set.")); return 0; @@ -230,6 +232,7 @@ remmina_ssh_auth_pubkey(RemminaSSH *ssh) if (g_file_test(pubkey, G_FILE_TEST_EXISTS)) { 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")); return 0; } @@ -241,6 +244,7 @@ remmina_ssh_auth_pubkey(RemminaSSH *ssh) NULL, NULL, &key) != SSH_OK) { 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")); return 0; } @@ -249,6 +253,7 @@ remmina_ssh_auth_pubkey(RemminaSSH *ssh) ssh_key_free(key); if (ret != SSH_AUTH_SUCCESS) { + /// TRANSLATORS: The placeholder %s is an error message remmina_ssh_set_error(ssh, _("SSH public key authentication failed: %s")); return 0; } @@ -290,6 +295,7 @@ remmina_ssh_auth_auto_pubkey(RemminaSSH *ssh, RemminaProtocolWidget *gp, Remmina ret = ssh_userauth_publickey_auto(ssh->session, NULL, ssh->passphrase); 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")); return -1; } @@ -306,6 +312,7 @@ remmina_ssh_auth_agent(RemminaSSH *ssh) ret = ssh_userauth_agent(ssh->session, NULL); 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")); return 0; } @@ -325,6 +332,7 @@ remmina_ssh_auth_gssapi(RemminaSSH *ssh) ret = ssh_userauth_gssapi(ssh->session); if (ret != SSH_AUTH_SUCCESS) { + /// TRANSLATORS: The placeholder %s is an error message remmina_ssh_set_error(ssh, _("SSH Kerberos/GSSAPI authentication failed: %s")); return 0; } @@ -429,17 +437,20 @@ remmina_ssh_auth_gui(RemminaSSH *ssh, RemminaProtocolWidget *gp, RemminaFile *re case SSH_SERVER_FOUND_OTHER: #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")); 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")); return 0; } #endif 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")); return 0; } @@ -469,6 +480,7 @@ remmina_ssh_auth_gui(RemminaSSH *ssh, RemminaProtocolWidget *gp, RemminaFile *re break; case SSH_SERVER_ERROR: default: + /// TRANSLATORS: The placeholder %s is an error message remmina_ssh_set_error(ssh, _("SSH known host checking failed: %s")); return 0; } @@ -658,6 +670,7 @@ remmina_ssh_init_session(RemminaSSH *ssh) ssh_options_parse_config(ssh->session, NULL); if (ssh_connect(ssh->session)) { + /// TRANSLATORS: The placeholder %s is an error message remmina_ssh_set_error(ssh, _("Could not start SSH session: %s")); return FALSE; } @@ -1016,7 +1029,8 @@ remmina_ssh_tunnel_create_forward_channel(RemminaSSHTunnel *tunnel) channel = ssh_channel_new(tunnel->ssh.session); if (!channel) { - remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not create channel, %s")); + /// TRANSLATORS: The placeholder %s is an error message + remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not create channel: %s")); return NULL; } @@ -1026,7 +1040,8 @@ remmina_ssh_tunnel_create_forward_channel(RemminaSSHTunnel *tunnel) ssh_channel_close(channel); ssh_channel_send_eof(channel); ssh_channel_free(channel); - remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not connect to the SSH tunnel destination %s")); + /// TRANSLATORS: The placeholder %s is an error message + remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not connect to the SSH tunnel destination: %s")); return NULL; } @@ -1076,7 +1091,8 @@ remmina_ssh_tunnel_main_thread_proc(gpointer data) case REMMINA_SSH_TUNNEL_X11: if ((tunnel->x11_channel = ssh_channel_new(tunnel->ssh.session)) == NULL) { - remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not create channel, %s")); + /// TRANSLATORS: The placeholder %s is an error message + remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not create channel: %s")); tunnel->thread = 0; return NULL; } @@ -1090,7 +1106,8 @@ remmina_ssh_tunnel_main_thread_proc(gpointer data) ssh_channel_request_x11(tunnel->x11_channel, TRUE, NULL, ptr, gdk_x11_screen_get_screen_number(gdk_screen_get_default()))) { g_free(ptr); - remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not open channel, %s")); + /// TRANSLATORS: The placeholder %s is an error message + remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not open channel: %s")); tunnel->thread = 0; return NULL; } @@ -1133,7 +1150,8 @@ remmina_ssh_tunnel_main_thread_proc(gpointer data) #endif } if (tunnel->remotedisplay < 1) { - remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not request port forwarding, %s")); + /// TRANSLATORS: The placeholder %s is an error message + 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; @@ -1153,7 +1171,8 @@ remmina_ssh_tunnel_main_thread_proc(gpointer data) case REMMINA_SSH_TUNNEL_REVERSE: #if LIBSSH_VERSION_INT >= SSH_VERSION_INT(0, 7, 0) if (ssh_channel_listen_forward(REMMINA_SSH(tunnel)->session, NULL, tunnel->port, NULL)) { - remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not request port forwarding, %s")); + /// TRANSLATORS: The placeholder %s is an error message + 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; @@ -1161,7 +1180,8 @@ remmina_ssh_tunnel_main_thread_proc(gpointer data) } #else if (ssh_forward_listen(REMMINA_SSH(tunnel)->session, NULL, tunnel->port, NULL)) { - remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not request port forwarding, %s")); + /// TRANSLATORS: The placeholder %s is an error message + 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; @@ -1284,13 +1304,15 @@ remmina_ssh_tunnel_main_thread_proc(gpointer data) lenw = ssh_channel_write(tunnel->channels[i], (char *)ptr, len); if (lenw <= 0) { disconnected = TRUE; - remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not run ssh_channel_write(), %s")); + /// TRANSLATORS: The placeholder %s is an error message + remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not run ssh_channel_write(): %s")); break; } } } if (len == 0) { - remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not read from tunnel listening socket, %s")); + /// TRANSLATORS: The placeholder %s is an error message + remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not read from tunnel listening socket: %s")); disconnected = TRUE; } } @@ -1309,13 +1331,15 @@ remmina_ssh_tunnel_main_thread_proc(gpointer data) if (!tunnel->socketbuffers[i]) { len = ssh_channel_poll(tunnel->channels[i], 0); if (len == SSH_ERROR || len == SSH_EOF) { - remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not run ssh_channel_poll(), %s")); + /// TRANSLATORS: The placeholder %s is an error message + remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not run ssh_channel_poll(): %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) { - remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not run ssh_channel_read_nonblocking(), %s")); + /// TRANSLATORS: The placeholder %s is an error message + remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not run ssh_channel_read_nonblocking(): %s")); disconnected = TRUE; } else { tunnel->socketbuffers[i]->len = len; @@ -1333,7 +1357,8 @@ remmina_ssh_tunnel_main_thread_proc(gpointer data) * break, leave the buffer there, and continue with other data */ break; if (lenw <= 0) { - remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not send data to tunnel listening socket, %s")); + /// TRANSLATORS: The placeholder %s is an error message + remmina_ssh_set_error(REMMINA_SSH(tunnel), _("Could not send data to tunnel listening socket: %s")); disconnected = TRUE; break; } @@ -1444,6 +1469,7 @@ remmina_ssh_tunnel_open(RemminaSSHTunnel *tunnel, const gchar *host, gint port, tunnel->running = TRUE; 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 start pthread.")); tunnel->thread = 0; return FALSE; @@ -1460,6 +1486,7 @@ remmina_ssh_tunnel_x11(RemminaSSHTunnel *tunnel, const gchar *cmd) tunnel->running = TRUE; 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.")); tunnel->thread = 0; return FALSE; @@ -1476,6 +1503,7 @@ remmina_ssh_tunnel_xport(RemminaSSHTunnel *tunnel, gboolean bindlocalhost) tunnel->running = TRUE; 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), _("Failed to initialize pthread.")); tunnel->thread = 0; return FALSE; @@ -1493,6 +1521,7 @@ remmina_ssh_tunnel_reverse(RemminaSSHTunnel *tunnel, gint port, gint local_port) tunnel->running = TRUE; 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.")); tunnel->thread = 0; return FALSE; @@ -1581,10 +1610,12 @@ remmina_sftp_open(RemminaSFTP *sftp) TRACE_CALL(__func__); 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")); 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")); return FALSE; } @@ -1669,6 +1700,7 @@ remmina_ssh_shell_thread(gpointer data) if ((channel = ssh_channel_new(REMMINA_SSH(shell)->session)) == NULL || 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")); if (channel) ssh_channel_free(channel); shell->thread = 0; @@ -1698,6 +1730,7 @@ remmina_ssh_shell_thread(gpointer data) ret = ssh_channel_request_shell(channel); 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")); ssh_channel_close(channel); ssh_channel_send_eof(channel); diff --git a/src/remmina_ssh_plugin.c b/src/remmina_ssh_plugin.c index 2d6f61929..c36a1899e 100644 --- a/src/remmina_ssh_plugin.c +++ b/src/remmina_ssh_plugin.c @@ -474,8 +474,9 @@ remmina_plugin_ssh_vte_save_session(GtkMenuItem *menuitem, RemminaProtocolWidget GFileOutputStream *stream = g_file_replace(gpdata->vte_session_file, NULL, FALSE, G_FILE_CREATE_NONE, NULL, &err); if (err != NULL) { + /// TRANSLATORS: %s is aplaceholder for an error message widget = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, - _("%s"), err->message); + _("Error: %s"), err->message); g_signal_connect(G_OBJECT(widget), "response", G_CALLBACK(gtk_widget_destroy), NULL); gtk_widget_show(widget); return; |