nemo r33 - in trunk: gtk metadata po



Author: arj
Date: Mon Jan  7 10:47:00 2008
New Revision: 33
URL: http://svn.gnome.org/viewvc/nemo?rev=33&view=rev

Log:
Make more strings translateable

Weekdays + the initial category name



Modified:
   trunk/gtk/CalendarDrawer.cs
   trunk/gtk/Common.cs
   trunk/metadata/MetadataStore.cs
   trunk/po/da.po
   trunk/po/de.po

Modified: trunk/gtk/CalendarDrawer.cs
==============================================================================
--- trunk/gtk/CalendarDrawer.cs	(original)
+++ trunk/gtk/CalendarDrawer.cs	Mon Jan  7 10:47:00 2008
@@ -114,12 +114,12 @@
 	{
 		public MonthCalendarHeader(System.DateTime date)
 		{
-			header.Text = System.Convert.ToString(date.DayOfWeek);
+			header.Text = GtkCommon.day_name(date);
 		}
 
 		public MonthCalendarHeader(System.DateTime start_date, System.DateTime end_date)
 		{
-			header.Text = System.Convert.ToString(start_date.DayOfWeek) + " - "  + System.Convert.ToString(end_date.DayOfWeek);
+			header.Text = GtkCommon.day_name(start_date) + " - "  + GtkCommon.day_name(end_date);
 		}
 	}
 

Modified: trunk/gtk/Common.cs
==============================================================================
--- trunk/gtk/Common.cs	(original)
+++ trunk/gtk/Common.cs	Mon Jan  7 10:47:00 2008
@@ -212,5 +212,24 @@
 					return "";
 			}
 		}
+
+		public static string day_name(System.DateTime date)
+		{
+			if (date.DayOfWeek == System.DayOfWeek.Monday)
+				return Mono.Unix.Catalog.GetString("Monday");
+			else if (date.DayOfWeek == System.DayOfWeek.Tuesday)
+				return Mono.Unix.Catalog.GetString("Tuesday");
+			else if (date.DayOfWeek == System.DayOfWeek.Wednesday)
+				return Mono.Unix.Catalog.GetString("Wednesday");
+			else if (date.DayOfWeek == System.DayOfWeek.Thursday)
+				return Mono.Unix.Catalog.GetString("Thursday");
+			else if (date.DayOfWeek == System.DayOfWeek.Friday)
+				return Mono.Unix.Catalog.GetString("Friday");
+			else if (date.DayOfWeek == System.DayOfWeek.Saturday)
+				return Mono.Unix.Catalog.GetString("Saturday");
+			else if (date.DayOfWeek == System.DayOfWeek.Sunday)
+				return Mono.Unix.Catalog.GetString("Sunday");
+			return ""; // make compiler happy
+		}
 	}
 }

Modified: trunk/metadata/MetadataStore.cs
==============================================================================
--- trunk/metadata/MetadataStore.cs	(original)
+++ trunk/metadata/MetadataStore.cs	Mon Jan  7 10:47:00 2008
@@ -917,7 +917,7 @@
             cmd.CommandText += "create index labels_label_index on labels(label);";
             cmd.CommandText += "create index labels_parent_index on labels(parent);";
             
-            cmd.CommandText += "insert into labels values (0, \"All\", 1, -1, 1);";
+            cmd.CommandText += "insert into labels values (0, " + Mono.Unix.Catalog.GetString("All") + ", 1, -1, 1);";
 
             cmd.CommandText += "create table label_colors ("
                 + "id integer primary key, "



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