Show "non-plural form" for messages count in folder view if count == 1
authorJose Dapena Paz <jdapena@igalia.com>
Sun, 29 Mar 2009 18:54:16 +0000 (18:54 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Sun, 29 Mar 2009 18:54:16 +0000 (18:54 +0000)
(fixes NB#108387).

pmo-trunk-r8457

src/widgets/modest-folder-view.c

index 5140a68..cfe7ea8 100644 (file)
@@ -838,10 +838,13 @@ messages_cell_data  (GtkTreeViewColumn *column,
                }
 
                if (priv->cell_style == MODEST_FOLDER_VIEW_CELL_STYLE_COMPACT) {
-                       if (number > 0) {
+                       if (number > 1) {
                                item_name = g_strdup_printf (drafts?_("mcen_ti_messages"):_("mcen_ti_new_messages"), 
                                                             number);
-                       } 
+                       } else if (number == 1) {
+                               item_name = g_strdup_printf (drafts?_("mcen_ti_message"):_("mcen_ti_new_message"), 
+                                                            number);
+                       }
                } 
 
        }