diff options
Diffstat (limited to 'daemon/gvfsbackendsmb.c')
-rw-r--r-- | daemon/gvfsbackendsmb.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/daemon/gvfsbackendsmb.c b/daemon/gvfsbackendsmb.c index 01b1de79..5146ace8 100644 --- a/daemon/gvfsbackendsmb.c +++ b/daemon/gvfsbackendsmb.c @@ -263,9 +263,19 @@ auth_callback (SMBCCTX *context, g_debug ("auth_callback - asking for password...\n"); - /* translators: First %s is a share name, second is a server name */ - message = g_strdup_printf (_("Password required for share %s on %s"), - share_name, server_name); + if (backend->user) + { + /* Translators: First %s is a share name, second is a server name */ + message = g_strdup_printf (_("Authentication Required\nEnter password for share “%s” on “%s”:"), + share_name, server_name); + } + else + { + /* Translators: First %s is a share name, second is a server name */ + message = g_strdup_printf (_("Authentication Required\nEnter user and password for share “%s” on “%s”:"), + share_name, server_name); + } + handled = g_mount_source_ask_password (backend->mount_source, message, username_out, |