2007-08-29 Murray Cumming <murrayc@murrayc.com>
authorMurray Cumming <murrayc@murrayc.com>
Wed, 29 Aug 2007 15:21:10 +0000 (15:21 +0000)
committerMurray Cumming <murrayc@murrayc.com>
Wed, 29 Aug 2007 15:21:10 +0000 (15:21 +0000)
* src/modest-tny-account-store.c: (modest_tny_account_store_alert):
Use the mail_ni_ssl_certificate_error (Secure connection failed)
logical ID when the secure authentication method is not supported by
the server, as requested by Mox on the wiki, though I hate not
giving the user the clue.

pmo-trunk-r3134

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

index f20c750..0cdbdea 100644 (file)
@@ -1,5 +1,13 @@
 2007-08-29  Murray Cumming  <murrayc@murrayc.com>
 
+       * src/modest-tny-account-store.c: (modest_tny_account_store_alert):
+       Use the mail_ni_ssl_certificate_error ("Secure connection failed") 
+       logical ID when the secure authentication method is not supported by 
+       the server, as requested by Mox on the wiki, though I hate not 
+       giving the user the clue.
+
+2007-08-29  Murray Cumming  <murrayc@murrayc.com>
+
        * src/modest-search.c: (modest_search_all_accounts):
        * src/modest-platform.h:
        * src/maemo/modest-platform.c: Moved and renamed 
index 4dad898..da34c49 100644 (file)
@@ -1124,15 +1124,23 @@ modest_tny_account_store_alert (TnyAccountStore *self, TnyAccount *account, TnyA
                case TNY_ACCOUNT_ERROR_TRY_CONNECT_AUTHENTICATION_NOT_SUPPORTED:
                        g_debug ("%s: Handling GError domain=%d, code=%d (authentication not supported), message=%s", 
                                __FUNCTION__, error->domain, error->code, error->message);
-                       /* TODO: This needs a logical ID for the string: */
+                       /*
+                       A more helpful error message than what the UI spec wants
                        prompt = g_strdup_printf(
                                _("Incorrect Account Settings:\nThe secure authentication method is not supported.\n%s"), 
                                error->message);
+                       */
+
+                       /* This is "Secure connection failed", even though the logical ID has _certificate_ in the name: */
+                       prompt = g_strdup (_("mail_ni_ssl_certificate_error")); 
+                        
                        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);
+
+                       /* TODO: This needs a logical ID and/or some specified way to ask the different certificate questions: */
                        prompt = g_strdup_printf(
                                _("Certificate Problem:\n%s"), 
                                error->message);
@@ -1154,6 +1162,8 @@ modest_tny_account_store_alert (TnyAccountStore *self, TnyAccount *account, TnyA
                        
                        /* TODO: Remove the internal error message for the real release.
                         * This is just so the testers can give us more information: */
+                       /* However, I haven't seen this for a few weeks, so maybe the users 
+                        * will never see it. murrayc. */
                        /* prompt = _("Modest account not yet fully configured."); */
                        prompt = g_strdup_printf(
                                "%s\n (Internal error message, often very misleading):\n%s",