diff options
author | Milan Crha <mcrha@redhat.com> | 2010-04-23 17:20:50 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2010-04-23 17:20:50 +0800 |
commit | 91020b05a3107e4ae51d7aa33dc0bebe5b668e6d (patch) | |
tree | e3b2445f54a7d74e5ff00ebbd8ecfa70235ed016 /plugins/caldav | |
parent | edf6286a38279e6db82dee4da50e94c587f06e02 (diff) | |
download | gsoc2013-evolution-91020b05a3107e4ae51d7aa33dc0bebe5b668e6d.tar.gz gsoc2013-evolution-91020b05a3107e4ae51d7aa33dc0bebe5b668e6d.tar.zst gsoc2013-evolution-91020b05a3107e4ae51d7aa33dc0bebe5b668e6d.zip |
Bug #360461 - Avoid markup in translatable messages
Diffstat (limited to 'plugins/caldav')
-rw-r--r-- | plugins/caldav/caldav-browse-server.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/caldav/caldav-browse-server.c b/plugins/caldav/caldav-browse-server.c index c1edc21639..8b2d1ae0e4 100644 --- a/plugins/caldav/caldav-browse-server.c +++ b/plugins/caldav/caldav-browse-server.c @@ -788,6 +788,7 @@ soup_authenticate (SoupSession *session, SoupMessage *msg, SoupAuth *auth, gbool if (!password || !*password || retrying) { gchar *pass, *prompt, *add = NULL; + gchar *bold_user, *bold_host; if (retrying && msg && msg->reason_phrase) { add = g_strdup_printf (_("Previous attempt failed: %s"), msg->reason_phrase); @@ -795,7 +796,11 @@ soup_authenticate (SoupSession *session, SoupMessage *msg, SoupAuth *auth, gbool add = g_strdup_printf (_("Previous attempt failed with code %d"), msg->status_code); } - prompt = g_strdup_printf (_("Enter password for user <b>%s</b> on server <b>%s</b>"), username, soup_auth_get_host (auth)); + bold_user = g_strconcat ("<b>", username, "</b>", NULL); + bold_host = g_strconcat ("<b>", soup_auth_get_host (auth), "</b>", NULL); + prompt = g_strdup_printf (_("Enter password for user %s on server %s"), bold_user, bold_host); + g_free (bold_user); + g_free (bold_host); if (add) { gchar *tmp; |