2007-07-06 Murray Cumming <murrayc@murrayc.com>
authorMurray Cumming <murrayc@murrayc.com>
Fri, 6 Jul 2007 21:17:55 +0000 (21:17 +0000)
committerMurray Cumming <murrayc@murrayc.com>
Fri, 6 Jul 2007 21:17:55 +0000 (21:17 +0000)
* 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

ChangeLog2
src/modest-tny-account-store.c

index 6f8e357..d10e4e1 100644 (file)
@@ -1,3 +1,9 @@
+2007-07-06  Murray Cumming <murrayc@murrayc.com>
+
+       * 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 <murrayc@murrayc.com>
 
        * src/maemo/modest-address-book.c:
index 3f1d5cc..bf4a233 100644 (file)
@@ -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;