f-spot r3944 - trunk/src



Author: sdelcroix
Date: Tue May 20 08:27:28 2008
New Revision: 3944
URL: http://svn.gnome.org/viewvc/f-spot?rev=3944&view=rev

Log:
help for translators

Modified:
   trunk/src/MainWindow.cs

Modified: trunk/src/MainWindow.cs
==============================================================================
--- trunk/src/MainWindow.cs	(original)
+++ trunk/src/MainWindow.cs	Tue May 20 08:27:28 2008
@@ -2106,30 +2106,20 @@
 
 	private void UpdateStatusLabel ()
 	{
-		StringBuilder label_str = new StringBuilder();
-		
 		switch (view_mode) {
 		case ModeType.PhotoView:
 			break;
 		case ModeType.IconView:		
-			label_str.Append (String.Format (Catalog.GetPluralString ("{0} Photo", 
-										  "{0} Photos", 
-										  query.Count), 
-							 query.Count));
-
 			int total_photos = Database.Photos.TotalPhotos;
 			if (total_photos != query.Count)
-				label_str.Append (String.Format (Catalog.GetString (" out of {0}"), total_photos));
-
+				status_label.Text = String.Format (Catalog.GetPluralString ("{0} Photo out of {1}", "{0} Photos out of {1}", query.Count), query.Count, total_photos);
+			else
+				status_label.Text = String.Format (Catalog.GetPluralString ("{0} Photo", "{0} Photos", query.Count), query.Count);
+	
 			if ((selection != null) && (selection.Count > 0))
-				label_str.Append (String.Format (Catalog.GetPluralString (" ({0} selected)", 
-											  " ({0} selected)", 
-											  selection.Count), 
-								 selection.Count));
+				status_label.Text += String.Format (Catalog.GetPluralString (" ({0} selected)", " ({0} selected)", selection.Count), selection.Count);
 			break;
 		}
-		
-		status_label.Text = label_str.ToString();
 		status_label.UseMarkup = true;
 	}
 	



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