Fix typos and a wrong switch expression (coverity CID #1399549).
authorwwp <wwp@free.fr>
Tue, 24 Jan 2017 06:41:39 +0000 (07:41 +0100)
committerwwp <wwp@free.fr>
Tue, 24 Jan 2017 06:41:39 +0000 (07:41 +0100)
src/mainwindow.c
src/mimeview.c

index 5f3a64b..08641dc 100644 (file)
@@ -4709,7 +4709,7 @@ void mainwindow_delete_duplicated(MainWindow *mainwin)
                STATUSBAR_POP(mainwin);
                main_window_cursor_normal(mainwin);
 
-               switch (result > 0) {
+               switch (result) {
                case -1:
                        break;
                case 0:
index 71447b3..62ea864 100644 (file)
@@ -1861,7 +1861,7 @@ static gboolean mimeview_write_part(const gchar *filename,
 static AlertValue mimeview_save_all_error_ask(gint n)
 {
        gchar *message = g_strdup_printf(
-               _("An error has ocurred while saving attachment #%d. "
+               _("An error has occurred while saving attachment #%d. "
                "Do you want to cancel operation or skip error and "
                "continue?"), n);
        AlertValue av = alertpanel_full(_("Error saving all attachments"),
@@ -1883,8 +1883,8 @@ static void mimeview_save_all_info(gint errors, gint total)
                g_free(msg);
        } else {
                gchar *msg1 = g_strdup_printf(
-                               ngettext("%d attachment saved succesfully",
-                                       "%d attachments saved succesfully",
+                               ngettext("%d attachment saved successfully",
+                                       "%d attachments saved successfully",
                                        total - errors),
                                total - errors);
                gchar *msg2 = g_strdup_printf(