summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendsftp.c
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2012-08-28 09:43:10 -0400
committerWilliam Jon McCann <jmccann@redhat.com>2012-08-30 14:54:10 -0400
commita1983951e725e511ae4cb901c19eb7c900cae23d (patch)
treebc272148c26220e2065de982dbffd8c9d5102bc6 /daemon/gvfsbackendsftp.c
parent3ef1deba4a05597a8b2bba6222ce9d94b02d6312 (diff)
downloadgvfs-a1983951e725e511ae4cb901c19eb7c900cae23d.tar.gz
Don't include jargon in mount display names and messages
The backend protocol isn't necessary in the display name for a location. And having it there makes it much harder to actually find the user interesting part of the name. Once a mount is connected the user interesting part of the name is "what it is" and not "how it is accessed". This is possible now that we aren't using the display name to make a unique mount point. https://bugzilla.gnome.org/show_bug.cgi?id=682878
Diffstat (limited to 'daemon/gvfsbackendsftp.c')
-rw-r--r--daemon/gvfsbackendsftp.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/daemon/gvfsbackendsftp.c b/daemon/gvfsbackendsftp.c
index 654ad715..6a59a50d 100644
--- a/daemon/gvfsbackendsftp.c
+++ b/daemon/gvfsbackendsftp.c
@@ -951,17 +951,17 @@ handle_login (GVfsBackend *backend,
if (op_backend->user_specified)
if (strcmp (authtype, "publickey") == 0)
/* Translators: the first %s is the username, the second the host name */
- prompt = g_strdup_printf (_("Enter passphrase for key for ssh as %s on %s"), op_backend->user, op_backend->host);
+ prompt = g_strdup_printf (_("Enter passphrase for secure key for %s on %s"), op_backend->user, op_backend->host);
else
/* Translators: the first %s is the username, the second the host name */
- prompt = g_strdup_printf (_("Enter password for ssh as %s on %s"), op_backend->user, op_backend->host);
+ prompt = g_strdup_printf (_("Enter password for %s on %s"), op_backend->user, op_backend->host);
else
if (strcmp (authtype, "publickey") == 0)
/* Translators: %s is the hostname */
- prompt = g_strdup_printf (_("Enter passphrase for key for ssh on %s"), op_backend->host);
+ prompt = g_strdup_printf (_("Enter passphrase for secure key for %s"), op_backend->host);
else
/* Translators: %s is the hostname */
- prompt = g_strdup_printf (_("Enter password for ssh on %s"), op_backend->host);
+ prompt = g_strdup_printf (_("Enter password for %s"), op_backend->host);
if (!g_mount_source_ask_password (mount_source,
prompt,
@@ -1683,11 +1683,10 @@ do_mount (GVfsBackend *backend,
g_mount_spec_unref (sftp_mount_spec);
if (op_backend->user_specified_in_uri)
- /* Translators: This is the name of an SFTP share, like "SFTP for <user> on <hostname>" */
- display_name = g_strdup_printf (_("SFTP for %s on %s"), op_backend->user, op_backend->host);
+ /* Translators: This is the name of an SFTP share, like "<user> on <hostname>" */
+ display_name = g_strdup_printf (_("%s on %s"), op_backend->user, op_backend->host);
else
- /* Translators: This is the name of an SFTP share, like "SFTP on <hostname>" */
- display_name = g_strdup_printf (_("SFTP on %s"), op_backend->host);
+ display_name = g_strdup (op_backend->host);
g_vfs_backend_set_display_name (backend, display_name);
g_free (display_name);