[gnome-sound-recorder] fileutil.js, mainWindow.js: trivial style fixes



commit f998b4bafb9267119c3ee69ddbeae8627a2901b3
Author: Meg Ford <meg387 gmail com>
Date:   Sun Mar 2 13:05:31 2014 -0600

    fileutil.js, mainWindow.js: trivial style fixes

 src/fileUtil.js   |   16 ++++++++--------
 src/mainWindow.js |    4 +++-
 2 files changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/src/fileUtil.js b/src/fileUtil.js
index 994e260..40bc77e 100644
--- a/src/fileUtil.js
+++ b/src/fileUtil.js
@@ -92,26 +92,26 @@ const DisplayTime = new Lang.Class({
             text = _("Yesterday");
         } else if (difference < 7 * DAY) {
             text = Gettext.ngettext("%d day ago",
-                                                 "%d days ago",
-                                                 days).format(days);
+                                    "%d days ago",
+                                     days).format(days);
         } else if (difference < 14 * DAY) {
             text = _("Last week");
         } else if (difference < 28 * DAY) {
             text = Gettext.ngettext("%d week ago",
-                                                 "%d weeks ago",
-                                                 weeks).format(weeks);
+                                     "%d weeks ago",
+                                     weeks).format(weeks);
         } else if (difference < 60 * DAY) {
             text = _("Last month");
         } else if (difference < 360 * DAY) {
             text = Gettext.ngettext("%d month ago",
-                                                 "%d months ago",
-                                                 months).format(months);
+                                     "%d months ago",
+                                     months).format(months);
         } else if (difference < 730 * DAY) {
             text = _("Last year");
         } else {
             text = Gettext.ngettext("%d year ago",
-                                                 "%d years ago",
-                                                 years).format(years);
+                                    "%d years ago",
+                                    years).format(years);
         }
         return text;
     }
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 08c5174..b587af1 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -319,11 +319,13 @@ const MainView = new Lang.Class({
         this._scrolledWin.show();
         let itemNumber = list.getItemCount();
         let title;
+        
         // Translators: This is the title in the headerbar
-        if (sounds > 0)
+        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]