[gnome-sound-recorder] mainWindow.js: use ngettext for the headerbar title



commit 6cbe4654f62add896ffacd7a74f0d4119df396c1
Author: Meg Ford <meg387 gmail com>
Date:   Sun Mar 2 12:44:54 2014 -0600

    mainWindow.js: use ngettext for the headerbar title

 src/mainWindow.js |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 79bb708..08c5174 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -19,6 +19,7 @@
  
 imports.gi.versions.Gst = '1.0';
 
+const Gettext = imports.gettext;
 const _ = imports.gettext.gettext;
 const Gdk = imports.gi.Gdk;
 const GdkPixbuf = imports.gi.GdkPixbuf;
@@ -317,7 +318,12 @@ const MainView = new Lang.Class({
         this.groupGrid.add(this._scrolledWin);
         this._scrolledWin.show();
         let itemNumber = list.getItemCount();
-        let title = _("%d Recorded Sounds").format(itemNumber);
+        let title;
+        // Translators: This is the title in the headerbar
+        if (sounds > 0)
+            title = Gettext.ngettext("%d Recorded Sound",
+                                     "%d Recorded Sounds", 
+                                      sounds).format(sounds);
         header.set_title(title);
         this.listBox = null;
         this._startIdx = 0;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]