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
diff options
context:
space:
mode:
authorAntenore Gatta (tmow) <antenore@simbiosi.org>2021-07-06 13:30:15 +0300
committerAntenore Gatta (tmow) <antenore@simbiosi.org>2021-07-06 13:30:15 +0300
commit9fa5f4a656f81460900baea92a918355decdd146 (patch)
treed705aff0aaa516aef9a2d0cb0d8a71172b5e90ab /src/remmina_protocol_widget.c
parent1ad88cb249eaffdead296c6321b9fcffb34115c2 (diff)
Adding various comments
Diffstat (limited to 'src/remmina_protocol_widget.c')
-rw-r--r--src/remmina_protocol_widget.c24
1 files changed, 22 insertions, 2 deletions
diff --git a/src/remmina_protocol_widget.c b/src/remmina_protocol_widget.c
index f6e67ddbc..e779246fa 100644
--- a/src/remmina_protocol_widget.c
+++ b/src/remmina_protocol_widget.c
@@ -323,6 +323,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");
+ // TRANSLATORS: “%s” is a placeholder for the connection profile name
s = g_strdup_printf(_("Connecting to “%s”…"), (name ? name : "*"));
mp = remmina_message_panel_new();
@@ -906,6 +907,7 @@ static RemminaSSHTunnel* remmina_protocol_widget_init_tunnel(RemminaProtocolWidg
tunnel = remmina_ssh_tunnel_new_from_file(gp->priv->remmina_file);
REMMINA_DEBUG ("Creating SSH tunnel to “%s” via SSH…", REMMINA_SSH(tunnel)->server);
+ // TRANSLATORS: “%s” is a placeholder for an hostname or an IP address.
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);
@@ -1090,6 +1092,7 @@ gchar *remmina_protocol_widget_start_direct_tunnel(RemminaProtocolWidget *gp, gi
return NULL;
}
+ // TRANSLATORS: “%s” is a placeholder for an hostname or an IP address.
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);
@@ -1153,6 +1156,7 @@ gboolean remmina_protocol_widget_start_reverse_tunnel(RemminaProtocolWidget *gp,
if (!(tunnel = remmina_protocol_widget_init_tunnel(gp)))
return FALSE;
+ // TRANSLATORS: “%i” is a placeholder for a TCP port number.
msg = g_strdup_printf(_("Awaiting incoming SSH connection on port %i…"), remmina_file_get_int(gp->priv->remmina_file, "listenport", 0));
mp = remmina_protocol_widget_mpprogress(gp->cnnobj, msg, cancel_start_reverse_tunnel_cb, NULL);
g_free(msg);
@@ -1204,10 +1208,12 @@ gboolean remmina_protocol_widget_ssh_exec(RemminaProtocolWidget *gp, gboolean wa
ret = TRUE;
break;
case 127:
+ // TRANSLATORS: “%s” is a place holder for a unix command path.
remmina_ssh_set_application_error(REMMINA_SSH(tunnel),
_("The “%s” command is not available on the SSH server."), cmd);
break;
default:
+ // TRANSLATORS: “%s” is a place holder for a unix command path. “%i” is a placeholder for an error code number.
remmina_ssh_set_application_error(REMMINA_SSH(tunnel),
_("Could not run the “%s” command on the SSH server (status = %i)."), cmd, status);
break;
@@ -1286,6 +1292,7 @@ gboolean remmina_protocol_widget_start_xport_tunnel(RemminaProtocolWidget *gp, R
if (!(tunnel = remmina_protocol_widget_init_tunnel(gp))) return FALSE;
+ // TRANSLATORS: “%s” is a placeholder for a hostname or IP address.
msg = g_strdup_printf(_("Connecting to %s via SSH…"), remmina_file_get_string(gp->priv->remmina_file, "server"));
mp = remmina_protocol_widget_mpprogress(gp->cnnobj, msg, cancel_connect_xport_cb, NULL);
g_free(msg);
@@ -1742,10 +1749,15 @@ gint remmina_protocol_widget_panel_new_certificate(RemminaProtocolWidget *gp, co
// For markup see https://developer.gnome.org/pygtk/stable/pango-markup-language.html
s = g_strdup_printf(
"<big>%s</big>\n\n%s %s\n%s %s\n%s %s\n\n<big>%s</big>",
+ // TRANSLATORS: The user is asked to verify a new SSL certificate.
_("Certificate details:"),
+ // TRANSLATORS: An SSL certificate subject is usually the remote server the user connect to.
_("Subject:"), subject,
+ // TRANSLATORS: The name or email of the entity that have issued the SSL certificate
_("Issuer:"), issuer,
+ // TRANSLATORS: An SSL certificate fingerprint, is a hash of a certificate calculated on all certificate's data and its signature.
_("Fingerprint:"), fingerprint,
+ // TRANSLATORS: The user is asked to accept or refuse a new SSL certificate.
_("Accept certificate?"));
rc = remmina_protocol_widget_dialog(RPWDT_QUESTIONYESNO, gp, 0, s, NULL, NULL, NULL, NULL);
g_free(s);
@@ -1769,11 +1781,17 @@ gint remmina_protocol_widget_panel_changed_certificate(RemminaProtocolWidget *gp
// For markup see https://developer.gnome.org/pygtk/stable/pango-markup-language.html
s = g_strdup_printf(
"<big>%s</big>\n\n%s %s\n%s %s\n%s %s\n%s %s\n\n<big>%s</big>",
+ // TRANSLATORS: The user is asked to verify a new SSL certificate.
_("The certificate changed! Details:"),
+ // TRANSLATORS: An SSL certificate subject is usually the remote server the user connect to.
_("Subject:"), subject,
+ // TRANSLATORS: The name or email of the entity that have issued the SSL certificate
_("Issuer:"), issuer,
+ // TRANSLATORS: An SSL certificate fingerprint, is a hash of a certificate calculated on all certificate's data and its signature.
_("Old fingerprint:"), old_fingerprint,
+ // TRANSLATORS: An SSL certificate fingerprint, is a hash of a certificate calculated on all certificate's data and its signature.
_("New fingerprint:"), new_fingerprint,
+ // TRANSLATORS: The user is asked to accept or refuse a new SSL certificate.
_("Accept changed certificate?"));
rc = remmina_protocol_widget_dialog(RPWDT_QUESTIONYESNO, gp, 0, s, NULL, NULL, NULL, NULL);
g_free(s);
@@ -1916,8 +1934,9 @@ void remmina_protocol_widget_panel_show_listen(RemminaProtocolWidget *gp, gint p
mp = remmina_message_panel_new();
s = g_strdup_printf(
- _("Listening on port %i for an incoming %s connection…"), port,
- remmina_file_get_string(gp->priv->remmina_file, "protocol"));
+ // TRANSLATORS: “%i” is a placeholder for a port number. “%s” is a placeholder for a protocol name (VNC).
+ _("Listening on port %i for an incoming %s connection…"), port,
+ remmina_file_get_string(gp->priv->remmina_file, "protocol"));
remmina_message_panel_setup_progress(mp, s, NULL, NULL);
g_free(s);
gp->priv->listen_message_panel = mp;
@@ -2020,6 +2039,7 @@ void remmina_protocol_widget_setup(RemminaProtocolWidget *gp, RemminaFile *remmi
remmina_file_get_string(remminafile, "protocol"));
if (!plugin || !plugin->init || !plugin->open_connection) {
+ // TRANSLATORS: “%s” is a placeholder for a protocol name, like “RDP”.
remmina_protocol_widget_set_error(gp, _("Install the %s protocol plugin first."),
remmina_file_get_string(remminafile, "protocol"));
gp->priv->plugin = NULL;