2006-09-28 [ticho] 2.5.2cvs13
authorAndrej Kacian <ticho@claws-mail.org>
Thu, 28 Sep 2006 15:22:25 +0000 (15:22 +0000)
committerAndrej Kacian <ticho@claws-mail.org>
Thu, 28 Sep 2006 15:22:25 +0000 (15:22 +0000)
* src/export.c
* src/messageview.c
* src/mimeview.c
* src/news.c
* src/pop.c
* src/prefs_themes.c
* src/procmsg.c
Small i18n string optimization.
* src/send_message.c
* src/summaryview.c
* src/common/session.c
* src/common/smtp.c
* src/common/ssl_certificate.c
* src/common/utils.c
Use "Couldn't" instead of "Can't" in UI messages,
where appropriate.

16 files changed:
ChangeLog
PATCHSETS
configure.ac
src/common/session.c
src/common/smtp.c
src/common/ssl_certificate.c
src/common/utils.c
src/export.c
src/messageview.c
src/mimeview.c
src/news.c
src/pop.c
src/prefs_themes.c
src/procmsg.c
src/send_message.c
src/summaryview.c

index f39466c25d338ff69d474a88ffaf81caedd0444f..6d6f8af9122ee6a6f75f33e77d85627435e6ed7c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,22 @@
+2006-09-28 [ticho]     2.5.2cvs13
+
+       * src/export.c
+       * src/messageview.c
+       * src/mimeview.c
+       * src/news.c
+       * src/pop.c
+       * src/prefs_themes.c
+       * src/procmsg.c
+               Small i18n string optimization.
+       * src/send_message.c
+       * src/summaryview.c
+       * src/common/session.c
+       * src/common/smtp.c
+       * src/common/ssl_certificate.c
+       * src/common/utils.c
+               Use "Couldn't" instead of "Can't" in UI messages,
+               where appropriate.
+
 2006-09-28 [colin]     2.5.2cvs12
 
        * configure.ac
index c0d26adeba3f77a5a2730aca85f02e3d307d1295..e7b0e5bfc86b154e899ea1e0716a5184c9e10681 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.60.2.65 -r 1.60.2.66 src/addressbook.c;  ) > 2.5.2cvs10.patchset
 ( cvs diff -u -r 1.1.2.25 -r 1.1.2.26 src/gtk/authors.h;  cvs diff -u -r 1.1.2.4 -r 1.1.2.5 doc/man/sylpheed-claws.1;  cvs diff -u -r 1.1.2.6 -r 1.1.2.7 manual/ack.xml;  cvs diff -u -r 1.1.2.2 -r 1.1.2.3 manual/es/ack.xml;  cvs diff -u -r 1.1.2.5 -r 1.1.2.6 manual/fr/ack.xml;  cvs diff -u -r 1.1.2.2 -r 1.1.2.3 manual/pl/ack.xml;  ) > 2.5.2cvs11.patchset
 ( cvs diff -u -r 1.654.2.1975 -r 1.654.2.1976 configure.ac;  ) > 2.5.2cvs12.patchset
+( cvs diff -u -r 1.8.2.19 -r 1.8.2.20 src/export.c;  cvs diff -u -r 1.94.2.106 -r 1.94.2.107 src/messageview.c;  cvs diff -u -r 1.83.2.90 -r 1.83.2.91 src/mimeview.c;  cvs diff -u -r 1.101.2.30 -r 1.101.2.31 src/news.c;  cvs diff -u -r 1.56.2.43 -r 1.56.2.44 src/pop.c;  cvs diff -u -r 1.3.2.43 -r 1.3.2.44 src/prefs_themes.c;  cvs diff -u -r 1.150.2.79 -r 1.150.2.80 src/procmsg.c;  cvs diff -u -r 1.17.2.33 -r 1.17.2.34 src/send_message.c;  cvs diff -u -r 1.395.2.255 -r 1.395.2.256 src/summaryview.c;  cvs diff -u -r 1.23.2.8 -r 1.23.2.9 src/common/session.c;  cvs diff -u -r 1.11.2.17 -r 1.11.2.18 src/common/smtp.c;  cvs diff -u -r 1.4.2.12 -r 1.4.2.13 src/common/ssl_certificate.c;  cvs diff -u -r 1.36.2.79 -r 1.36.2.80 src/common/utils.c;  ) > 2.5.2cvs13.patchset
index 3e28530db2e6206c4c553437fdcb13687e2bcbe9..abb2f05494a57687857700388337b363a8120051 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=5
 MICRO_VERSION=2
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=12
+EXTRA_VERSION=13
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index dc407cba73bc3a49b29bad3e604477150ad0398e..612eea99044b487084bf3aa53a0bdd2a88971089 100644 (file)
@@ -343,7 +343,7 @@ gint session_start_tls(Session *session)
                sock_set_nonblocking_mode(session->sock, FALSE);
 
        if (!ssl_init_socket_with_method(session->sock, SSL_METHOD_TLSv1)) {
-               g_warning("can't start TLS session.\n");
+               g_warning("couldn't start TLS session.\n");
                if (nb_mode)
                        sock_set_nonblocking_mode(session->sock, TRUE);
                return -1;
index 653b4d5db5850396716ee6c4a94c1a06a686a846..60915a326209a4abb1f8a45ffebc6215ab45bcd0 100644 (file)
@@ -632,7 +632,7 @@ static gint smtp_session_recv_msg(Session *session, const gchar *msg)
        case SMTP_STARTTLS:
 #if USE_OPENSSL
                if (session_start_tls(session) < 0) {
-                       log_warning(_("can't start TLS session\n"));
+                       log_warning(_("couldn't start TLS session\n"));
                        smtp_session->state = SMTP_ERROR;
                        smtp_session->error_val = SM_ERROR;
                        return -1;
index ff24372f2c58d52bd429e62fa7d1e3f3c7906a5e..1b57accf96760c98082a143b26037dc0883f53ab 100644 (file)
@@ -345,7 +345,7 @@ char *ssl_certificate_check_signer (X509 *cert)
        }
        if (!X509_STORE_set_default_paths(store)) {
                X509_STORE_free (store);
-               return g_strdup(_("Can't load X509 default paths"));
+               return g_strdup(_("Couldn't load X509 default paths"));
        }
        
        X509_STORE_CTX_init (&store_ctx, store, cert, NULL);
index ebd4020ff08f703c962e8379c9a8b4984d5d6cb3..6ebe191b8bdfd17115e6d0b04baabc32543f3366 100644 (file)
@@ -3277,7 +3277,7 @@ gint execute_async(gchar *const argv[])
 
        if (g_spawn_async(NULL, (gchar **)argv, NULL, G_SPAWN_SEARCH_PATH,
                          NULL, NULL, NULL, FALSE) == FALSE) {
-               g_warning("Can't execute command: %s\n", argv[0]);
+               g_warning("Couldn't execute command: %s\n", argv[0]);
                return -1;
        }
 
@@ -3292,7 +3292,7 @@ gint execute_sync(gchar *const argv[])
 
        if (g_spawn_sync(NULL, (gchar **)argv, NULL, G_SPAWN_SEARCH_PATH,
                         NULL, NULL, NULL, NULL, &status, NULL) == FALSE) {
-               g_warning("Can't execute command: %s\n", argv[0]);
+               g_warning("Couldn't execute command: %s\n", argv[0]);
                return -1;
        }
 
@@ -3336,7 +3336,7 @@ gchar *get_command_output(const gchar *cmdline)
 
        if (g_spawn_command_line_sync(cmdline, &child_stdout, NULL, &status,
                                      NULL) == FALSE) {
-               g_warning("Can't execute command: %s\n", cmdline);
+               g_warning("Couldn't execute command: %s\n", cmdline);
                return NULL;
        }
 
index 3fbaa55aacb458e288ab8b4beedadc81d1e088a3..c88f9e378ca18b640ede2c512f5817aa71c18c98 100644 (file)
@@ -226,7 +226,7 @@ static void export_ok_cb(GtkWidget *widget, gpointer data)
 
        src = folder_find_item_from_identifier(srcdir);
        if (!src) {
-               alertpanel_error(_("Can't find the source folder."));
+               alertpanel_error(_("Couldn't find the source folder."));
                gtk_widget_grab_focus(src_entry);
                return;
        } else {
index c3f21bcf3230e09cd4cf3a18ea9db48cb02ac8e7..53bc7561fbb4f7e2de6fa2181c6ff1b7a3b5f643 100644 (file)
@@ -1151,7 +1151,7 @@ void messageview_save_as(MessageView *messageview)
        src = procmsg_get_message_file(msginfo);
        if (copy_file(src, dest, TRUE) < 0) {
                tmp =  g_path_get_basename(dest);
-               alertpanel_error(_("Can't save the file '%s'."), tmp);
+               alertpanel_error(_("Couldn't save the file '%s'."), tmp);
                g_free(tmp);
        }
        g_free(dest);
index a30d1c6e6ade29bacf867768fd321b4b6ba161a4..5ce0421a90285ab270a0f9b4b3eef521db8a497f 100644 (file)
@@ -1346,7 +1346,7 @@ static void mimeview_drag_data_get(GtkWidget          *widget,
 
        if (procmime_get_part(filename, partinfo) < 0)
                alertpanel_error
-                       (_("Can't save the part of multipart message."));
+                       (_("Couldn't save the part of multipart message."));
        uriname = g_strconcat("file://", filename, "\r\n", NULL);
 
        gtk_selection_data_set(selection_data, selection_data->target, 8,
@@ -1427,7 +1427,7 @@ static gboolean mimeview_write_part(const gchar *filename,
 
        if (procmime_get_part(filename, partinfo) < 0) {
                alertpanel_error
-                       (_("Can't save the part of multipart message."));
+                       (_("Couldn't save the part of multipart message."));
                return FALSE;
        }
 
@@ -1603,7 +1603,7 @@ static void mimeview_launch(MimeView *mimeview, MimeInfo *partinfo)
 
        if (procmime_get_part(filename, partinfo) < 0)
                alertpanel_error
-                       (_("Can't save the part of multipart message."));
+                       (_("Couldn't save the part of multipart message."));
        else
                mimeview_view_file(filename, partinfo, NULL, mimeview);
 
@@ -1636,7 +1636,7 @@ static void mimeview_open_part_with(MimeView *mimeview, MimeInfo *partinfo, gboo
 
        if (procmime_get_part(filename, partinfo) < 0) {
                alertpanel_error
-                       (_("Can't save the part of multipart message."));
+                       (_("Couldn't save the part of multipart message."));
                g_free(filename);
                return;
        }
index 7ddfe103ff8d01918da5695aca477adcbd43498b..889fb71752fe5934b154e29044eef7e407b3a587 100644 (file)
@@ -585,7 +585,7 @@ gint news_post_stream(Folder *folder, FILE *fp)
 
        ok = nntp_post(session, fp);
        if (ok != NN_SUCCESS) {
-               log_warning(_("can't post article.\n"));
+               log_warning(_("couldn't post article.\n"));
                if (ok == NN_SOCKET) {
                        session_destroy(SESSION(session));
                        REMOTE_FOLDER(folder)->session = NULL;
@@ -611,7 +611,7 @@ static gint news_get_article_cmd(NNTPSession *session, const gchar *cmd,
 
        ok = recv_write_to_file(SESSION(session)->sock, filename);
        if (ok < 0) {
-               log_warning(_("can't retrieve article %d\n"), num);
+               log_warning(_("couldn't retrieve article %d\n"), num);
                if (ok == -2)
                        return NN_SOCKET;
                else
@@ -660,7 +660,7 @@ static gint news_select_group(NNTPSession *session, const gchar *group,
        if (ok == NN_SUCCESS)
                session->group = g_strdup(group);
        else
-               log_warning(_("can't select group: %s\n"), group);
+               log_warning(_("couldn't select group: %s\n"), group);
 
        return ok;
 }
@@ -885,7 +885,7 @@ gint news_get_num_list(Folder *folder, FolderItem *item, GSList **msgnum_list, g
 
        ok = news_select_group(session, item->path, &num, &first, &last);
        if (ok != NN_SUCCESS) {
-               log_warning(_("can't set group: %s\n"), item->path);
+               log_warning(_("couldn't set group: %s\n"), item->path);
                news_folder_unlock(NEWS_FOLDER(item->folder));
                return -1;
        }
@@ -959,7 +959,7 @@ MsgInfo *news_get_msginfo(Folder *folder, FolderItem *item, gint num)
        news_folder_lock(NEWS_FOLDER(item->folder));
        
        if (ok != NN_SUCCESS) {
-               log_warning(_("can't get xover\n"));
+               log_warning(_("couldn't get xover\n"));
                if (ok == NN_SOCKET) {
                        session_destroy(SESSION(session));
                        REMOTE_FOLDER(item->folder)->session = NULL;
@@ -994,7 +994,7 @@ MsgInfo *news_get_msginfo(Folder *folder, FolderItem *item, gint num)
 
        ok = nntp_xhdr(session, "to", num, num);
        if (ok != NN_SUCCESS) {
-               log_warning(_("can't get xhdr\n"));
+               log_warning(_("couldn't get xhdr\n"));
                if (ok == NN_SOCKET) {
                        session_destroy(SESSION(session));
                        REMOTE_FOLDER(item->folder)->session = NULL;
@@ -1015,7 +1015,7 @@ MsgInfo *news_get_msginfo(Folder *folder, FolderItem *item, gint num)
 
        ok = nntp_xhdr(session, "cc", num, num);
        if (ok != NN_SUCCESS) {
-               log_warning(_("can't get xhdr\n"));
+               log_warning(_("couldn't get xhdr\n"));
                if (ok == NN_SOCKET) {
                        session_destroy(SESSION(session));
                        REMOTE_FOLDER(item->folder)->session = NULL;
@@ -1053,7 +1053,7 @@ static GSList *news_get_msginfos_for_range(NNTPSession *session, FolderItem *ite
                    begin, end, item->path);
        ok = nntp_xover(session, begin, end);
        if (ok != NN_SUCCESS) {
-               log_warning(_("can't get xover\n"));
+               log_warning(_("couldn't get xover\n"));
                if (ok == NN_SOCKET) {
                        session_destroy(SESSION(session));
                        REMOTE_FOLDER(item->folder)->session = NULL;
@@ -1098,7 +1098,7 @@ static GSList *news_get_msginfos_for_range(NNTPSession *session, FolderItem *ite
 
        ok = nntp_xhdr(session, "to", begin, end);
        if (ok != NN_SUCCESS) {
-               log_warning(_("can't get xhdr\n"));
+               log_warning(_("couldn't get xhdr\n"));
                if (ok == NN_SOCKET) {
                        session_destroy(SESSION(session));
                        REMOTE_FOLDER(item->folder)->session = NULL;
@@ -1130,7 +1130,7 @@ static GSList *news_get_msginfos_for_range(NNTPSession *session, FolderItem *ite
 
        ok = nntp_xhdr(session, "cc", begin, end);
        if (ok != NN_SUCCESS) {
-               log_warning(_("can't get xhdr\n"));
+               log_warning(_("couldn't get xhdr\n"));
                if (ok == NN_SOCKET) {
                        session_destroy(SESSION(session));
                        REMOTE_FOLDER(item->folder)->session = NULL;
index 318e7fba9b221de465fa97d7fa38b434b4f64239..da9b7d41c71268a73c6b022eb136b57ebe7878ac 100644 (file)
--- a/src/pop.c
+++ b/src/pop.c
@@ -832,7 +832,7 @@ static Pop3ErrorValue pop3_ok(Pop3Session *session, const gchar *msg)
                        switch (session->state) {
 #if USE_OPENSSL
                        case POP3_STLS:
-                               log_error(_("can't start TLS session\n"));
+                               log_error(_("couldn't start TLS session\n"));
                                ok = PS_ERROR;
                                break;
 #endif
index bd8905edeb7d16df61eaf411d7fd9345493939c0..6f9678c3534e1d07091deefe6b4eab44ab3c586e 100644 (file)
@@ -729,7 +729,7 @@ static void prefs_themes_get_theme_info(ThemesData *tdata)
 
                info->status = prefs_themes_get_theme_stats(path);
                if (info->status == NULL) {
-                       info->status = g_strdup(_("Error: can't get theme status"));
+                       info->status = g_strdup(_("Error: couldn't get theme status"));
                }
        }
 
index 9e4431805246636f00587a259fb2da0d5f4cee44..c43451200b26aa3a0a6d3979370ad8d392a5c338 100644 (file)
@@ -904,7 +904,8 @@ gint procmsg_send_queue(FolderItem *queue, gboolean save_msgs, gchar **errstr)
        GNode *node, *next;
        
        if (send_queue_lock) {
-               log_warning(_("Already trying to send\n"));
+               /* Avoid having to translate two similar strings */
+               log_warning("%s\n", _("Already trying to send."));
                if (errstr) {
                        if (*errstr) g_free(*errstr);
                        *errstr = g_strdup_printf(_("Already trying to send."));
@@ -1683,7 +1684,7 @@ send_mail:
                if ((tmpfp = g_fopen(tmp, "wb")) == NULL) {
                        FILE_OP_ERROR(tmp, "fopen");
                        newsval = -1;
-                       alertpanel_error(_("Could not create temporary file for news sending."));
+                       alertpanel_error(_("Couldn't create temporary file for news sending."));
                } else {
                        if (change_file_mode_rw(tmpfp, tmp) < 0) {
                                FILE_OP_ERROR(tmp, "chmod");
index 393515410eaa2b08127405c98dee877ae4099005..065396713936823e7ee07491f1ff1e1f28d6f3ba 100644 (file)
@@ -148,7 +148,7 @@ gint send_message_local(const gchar *command, FILE *fp)
                                     &pid, &child_stdin, NULL, NULL,
                                     NULL) == FALSE) {
                g_snprintf(buf, sizeof(buf),
-                          _("Can't execute command: %s"), command);
+                          _("Couldn't execute command: %s"), command);
                log_warning("%s\n", buf);
                alertpanel_error("%s", buf);
                g_strfreev(argv);
index b8532cd516a811924c834312100452ff23c4c3b2..7db4bd6e0802fbac341651d391eabb12ac2185dd 100644 (file)
@@ -4037,10 +4037,10 @@ void summary_save_as(SummaryView *summaryview)
 
        if ( aval==0 ) { /* append */
                if (append_file(src, dest, TRUE) < 0) 
-                       alertpanel_error(_("Can't save the file '%s'."), tmp);
+                       alertpanel_error(_("Couldn't save the file '%s'."), tmp);
        } else { /* overwrite */
                if (copy_file(src, dest, TRUE) < 0)
-                       alertpanel_error(_("Can't save the file '%s'."), tmp);
+                       alertpanel_error(_("Couldn't save the file '%s'."), tmp);
        }
        g_free(src);
        
@@ -4055,7 +4055,7 @@ void summary_save_as(SummaryView *summaryview)
                        if (!msginfo) break;
                        src = procmsg_get_message_file(msginfo);
                        if (append_file(src, dest, TRUE) < 0)
-                               alertpanel_error(_("Can't save the file '%s'."), tmp);
+                               alertpanel_error(_("Couldn't save the file '%s'."), tmp);
                }
                g_free(src);
        }