Movie list window: use gettext plural forms
authorPhilipp Zabel <philipp.zabel@gmail.com>
Mon, 9 Aug 2010 20:38:59 +0000 (22:38 +0200)
committerPhilipp Zabel <philipp.zabel@gmail.com>
Mon, 9 Aug 2010 20:38:59 +0000 (22:38 +0200)
src/movie-list-menu.vala
src/movie-list-window.vala

index b88f973..0c7e9f5 100644 (file)
@@ -245,7 +245,10 @@ public class MovieListMenu : AppMenu {
                file_chooser.destroy ();
                file_chooser = null;
 
-               Banner.show_information (movie_list_window, null, _("%d movies imported").printf (imported_movies));
+               Banner.show_information (movie_list_window, null, 
+                                        ngettext("%d movie imported",
+                                                 "%d movies imported",
+                                                  imported_movies).printf (imported_movies));
                imported_movies = 0;
        }
 
index 5d702ef..c4f992b 100644 (file)
@@ -178,7 +178,10 @@ public class MovieListWindow : StackableWindow {
                        return;
                }
 
-               var dialog = new Note.confirmation (this, _("Delete %d movies?").printf (count));
+               var dialog = new Note.confirmation (this, 
+                                                   ngettext ("Delete %d movie?",
+                                                             "Delete %d movies?",
+                                                             count).printf (count));
                var res = dialog.run ();
 
                if (res == Gtk.ResponseType.OK) {