From: Murray Cumming Date: Fri, 6 Jul 2007 21:17:55 +0000 (+0000) Subject: 2007-07-06 Murray Cumming X-Git-Tag: git_migration_finished~2916 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=09a0446211891995a4148ae847a92c26df0ae448 2007-07-06 Murray Cumming * src/modest-tny-account-store.c: (modest_tny_account_store_alert): Use the new TNY_ACCOUNT_ERROR_TRY_CONNECT_CERTIFICATE error code to give a more exact error message that can be partly translated. pmo-trunk-r2622 --- diff --git a/ChangeLog2 b/ChangeLog2 index 6f8e357..d10e4e1 100644 --- a/ChangeLog2 +++ b/ChangeLog2 @@ -1,3 +1,9 @@ +2007-07-06 Murray Cumming + + * src/modest-tny-account-store.c: (modest_tny_account_store_alert): + Use the new TNY_ACCOUNT_ERROR_TRY_CONNECT_CERTIFICATE error code to + give a more exact error message that can be partly translated. + 2007-07-05 Murray Cumming * src/maemo/modest-address-book.c: diff --git a/src/modest-tny-account-store.c b/src/modest-tny-account-store.c index 3f1d5cc..bf4a233 100644 --- a/src/modest-tny-account-store.c +++ b/src/modest-tny-account-store.c @@ -986,8 +986,7 @@ modest_tny_account_store_alert (TnyAccountStore *self, TnyAlertType type, prompt = g_strdup (_("emev_ni_ui_pop3_msg_connect_error")); /* prompt = g_strdup_printf( - "%s\n Host lookup failed.%s", - _("Incorrect Account Settings"), + _("Incorrect Account Settings:\n Host lookup failed.%s"), error->message); */ break; @@ -995,8 +994,14 @@ modest_tny_account_store_alert (TnyAccountStore *self, TnyAlertType type, g_debug ("%s: Handling GError domain=%d, code=%d (authentication not supported), message=%s", __FUNCTION__, error->domain, error->code, error->message); prompt = g_strdup_printf( - "%s\n The secure authentication method is not supported.\n%s", - _("Incorrect Account Settings"), + _("Incorrect Account Settings:\n The secure authentication method is not supported.\n%s"), + error->message); + break; + case TNY_ACCOUNT_ERROR_TRY_CONNECT_CERTIFICATE: + g_debug ("%s: Handling GError domain=%d, code=%d (certificatae), message=%s", + __FUNCTION__, error->domain, error->code, error->message); + prompt = g_strdup_printf( + _("Certificate Problem:\n%s"), error->message); break;