[blam] Add comments to a couple of translatable strings (Bug #624388)



commit 6d451bbf50624f1d3c6c19e93c521b74f3591c03
Author: Carlos Martín Nieto <carlos cmartin tk>
Date:   Fri Jul 23 15:16:33 2010 +0200

    Add comments to a couple of translatable strings (Bug #624388)

 src/Application.cs        |   10 ++++++++--
 src/UnreadNotification.cs |    8 ++++++--
 2 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/src/Application.cs b/src/Application.cs
index 6e34bda..6b80475 100644
--- a/src/Application.cs
+++ b/src/Application.cs
@@ -738,6 +738,7 @@ namespace Imendio.Blam {
             int update_time = Conf.Get(Preference.AUTO_REFRESH_RATE, 15);
             DateTime NextUpdate = DateTime.Now.AddMinutes(update_time);
 
+            /* This is the time (hour:minute) when the next update will be run */
             String StatusString = String.Format(Catalog.GetString("Next update at {0}"), NextUpdate.ToShortTimeString());
 
             statusbar.Push(contextId, StatusString);
@@ -857,8 +858,13 @@ namespace Imendio.Blam {
                                                  "</b>",
                                                  nrOfUnread);
 
-            trayIcon.Tooltip = string.Format (Catalog.GetPluralString ("{0} unread item ({1} new)", "{0} unread items ({1} new)", nrOfUnread),
-                                             nrOfUnread, nrOfNew);
+            /* Total number of unread items */
+            string str = string.Format (Catalog.GetPluralString ("{0} unread item", "{0} unread items", nrOfUnread),
+                                             nrOfUnread);
+            str += " ";
+            /* Number of new (not-skipped-over) entries. Gets appended to previous string */
+            str += string.Format(Catalog.GetPluralString("({0} new)", "({0} new)", nrOfNew), nrOfNew);
+            trayIcon.Tooltip = str;
         }
 
 	public static void SetProcessName(string name)
diff --git a/src/UnreadNotification.cs b/src/UnreadNotification.cs
index d47c7c0..f35ee60 100644
--- a/src/UnreadNotification.cs
+++ b/src/UnreadNotification.cs
@@ -17,8 +17,12 @@ namespace Imendio.Blam
         public static void NotifyUnreadPosts(int unread, int new_items)
         {
             /* Same as for the tray icon tooltip */
-            String str = string.Format (Catalog.GetPluralString ("{0} unread item ({1} new)", "{0} unread items ({1} new)", unread),
-                                             unread, new_items);
+            /* Total number of unread items */
+            string str = string.Format (Catalog.GetPluralString ("{0} unread item", "{0} unread items", nrOfUnread),
+                                             nrOfUnread);
+            str += " ";
+            /* Number of new (not-skipped-over) entries. Gets appended to previous string */
+            str += string.Format(Catalog.GetPluralString("({0} new)", "({0} new)", nrOfNew), nrOfNew);
 
             note.IconName = "blam";
             note.Summary = Catalog.GetString("Feeds refreshed");



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