summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendsmb.c
diff options
context:
space:
mode:
authorJonas Dreßler <verdre@v0yd.nl>2020-02-14 21:54:21 +0100
committerOndrej Holy <oholy@redhat.com>2021-01-15 15:06:55 +0000
commitf50d701fd0cc892675f1e72cd9c8064b72a4b0c7 (patch)
treed685f02d1aaf52c473f04c7c95a06e1a4e847c81 /daemon/gvfsbackendsmb.c
parent0be9552b734ef99ce8cd50c8a9914b11c2e980ca (diff)
downloadgvfs-f50d701fd0cc892675f1e72cd9c8064b72a4b0c7.tar.gz
Use shorter strings for prompt dialog titles
The layout of the modal dialogs in gnome-shell changed [1] and the title now is larger and uses the style of a headline. Make sure all titles remain fully visible and use shorter strings for those. Also unify the generic "Enter password" strings a bit to make work easier for translators and use this string for most cases: "Authentication Required\nEnter password for “%s”:" [1] https://gitlab.gnome.org/GNOME/gnome-shell/issues/1343
Diffstat (limited to 'daemon/gvfsbackendsmb.c')
-rw-r--r--daemon/gvfsbackendsmb.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/daemon/gvfsbackendsmb.c b/daemon/gvfsbackendsmb.c
index b8319c60..1bd4baab 100644
--- a/daemon/gvfsbackendsmb.c
+++ b/daemon/gvfsbackendsmb.c
@@ -264,9 +264,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,