From 91020b05a3107e4ae51d7aa33dc0bebe5b668e6d Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 23 Apr 2010 11:20:50 +0200 Subject: Bug #360461 - Avoid markup in translatable messages --- plugins/caldav/caldav-browse-server.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'plugins/caldav') 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 %s on server %s"), username, soup_auth_get_host (auth)); + bold_user = g_strconcat ("", username, "", NULL); + bold_host = g_strconcat ("", soup_auth_get_host (auth), "", 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; -- cgit v1.2.3