diff gtk-gui/IBBoard.WarFoundry.GUI.GTK.Widgets.UnitDisplayWidget.cs @ 92:58779fcd0166

Re #308: Make GTK# UI translatable * Switch lots of labels to translatable versions * Swap some default text to lower-case to make it easier to spot missing translations
author IBBoard <dev@ibboard.co.uk>
date Fri, 31 Dec 2010 12:01:18 +0000
parents 68804784bf6f
children e40d892a2298
line wrap: on
line diff
--- a/gtk-gui/IBBoard.WarFoundry.GUI.GTK.Widgets.UnitDisplayWidget.cs	Fri Dec 31 11:36:06 2010 +0000
+++ b/gtk-gui/IBBoard.WarFoundry.GUI.GTK.Widgets.UnitDisplayWidget.cs	Fri Dec 31 12:01:18 2010 +0000
@@ -13,15 +13,15 @@
 		private global::Gtk.HSeparator hseparator1;
 		private global::Gtk.HBox hbox2;
 		private global::Gtk.Table table1;
-		private global::Gtk.Label equipmentLabel;
+		private global::IBBoard.GtkSharp.Translatable.TranslatableLabel equipmentLabel;
 		private global::Gtk.ScrolledWindow GtkScrolledWindow2;
 		private global::Gtk.NodeView equipmentList;
 		private global::Gtk.ScrolledWindow GtkScrolledWindow3;
 		private global::Gtk.TextView notesView;
 		private global::Gtk.ScrolledWindow GtkScrolledWindow4;
 		private global::Gtk.NodeView abilitiesList;
-		private global::Gtk.Label lblAbilities;
-		private global::Gtk.Label lblNotes;
+		private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblAbilities;
+		private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblNotes;
 		private global::Gtk.VBox vbox3;
 		private global::Gtk.Button bttnAddEquipment;
 		private global::Gtk.Button bttnEditEquipment;
@@ -103,7 +103,7 @@
 			this.table1.RowSpacing = ((uint)(6));
 			this.table1.ColumnSpacing = ((uint)(6));
 			// Container child table1.Gtk.Table+TableChild
-			this.equipmentLabel = new global::Gtk.Label();
+			this.equipmentLabel = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel();
 			this.equipmentLabel.Name = "equipmentLabel";
 			this.equipmentLabel.LabelProp = global::Mono.Unix.Catalog.GetString("equipment:");
 			this.table1.Add(this.equipmentLabel);
@@ -160,7 +160,7 @@
 			w15.RightAttach = ((uint)(2));
 			w15.YOptions = ((global::Gtk.AttachOptions)(4));
 			// Container child table1.Gtk.Table+TableChild
-			this.lblAbilities = new global::Gtk.Label();
+			this.lblAbilities = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel();
 			this.lblAbilities.Name = "lblAbilities";
 			this.lblAbilities.LabelProp = global::Mono.Unix.Catalog.GetString("abilities:");
 			this.table1.Add(this.lblAbilities);
@@ -170,7 +170,7 @@
 			w16.XOptions = ((global::Gtk.AttachOptions)(4));
 			w16.YOptions = ((global::Gtk.AttachOptions)(4));
 			// Container child table1.Gtk.Table+TableChild
-			this.lblNotes = new global::Gtk.Label();
+			this.lblNotes = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel();
 			this.lblNotes.Name = "lblNotes";
 			this.lblNotes.LabelProp = global::Mono.Unix.Catalog.GetString("notes:");
 			this.table1.Add(this.lblNotes);
@@ -191,7 +191,7 @@
 			this.bttnAddEquipment.CanFocus = true;
 			this.bttnAddEquipment.Name = "bttnAddEquipment";
 			this.bttnAddEquipment.UseUnderline = true;
-			this.bttnAddEquipment.Label = global::Mono.Unix.Catalog.GetString("Add");
+			this.bttnAddEquipment.Label = global::Mono.Unix.Catalog.GetString("add");
 			this.vbox3.Add(this.bttnAddEquipment);
 			global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnAddEquipment]));
 			w19.Position = 0;
@@ -203,7 +203,7 @@
 			this.bttnEditEquipment.CanFocus = true;
 			this.bttnEditEquipment.Name = "bttnEditEquipment";
 			this.bttnEditEquipment.UseUnderline = true;
-			this.bttnEditEquipment.Label = global::Mono.Unix.Catalog.GetString("Edit");
+			this.bttnEditEquipment.Label = global::Mono.Unix.Catalog.GetString("edit");
 			this.vbox3.Add(this.bttnEditEquipment);
 			global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnEditEquipment]));
 			w20.Position = 1;
@@ -215,7 +215,7 @@
 			this.bttnReplaceEquipment.CanFocus = true;
 			this.bttnReplaceEquipment.Name = "bttnReplaceEquipment";
 			this.bttnReplaceEquipment.UseUnderline = true;
-			this.bttnReplaceEquipment.Label = global::Mono.Unix.Catalog.GetString("Replace");
+			this.bttnReplaceEquipment.Label = global::Mono.Unix.Catalog.GetString("replace");
 			this.vbox3.Add(this.bttnReplaceEquipment);
 			global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnReplaceEquipment]));
 			w21.Position = 2;
@@ -227,7 +227,7 @@
 			this.bttnRemoveEquipment.CanFocus = true;
 			this.bttnRemoveEquipment.Name = "bttnRemoveEquipment";
 			this.bttnRemoveEquipment.UseUnderline = true;
-			this.bttnRemoveEquipment.Label = global::Mono.Unix.Catalog.GetString("Remove");
+			this.bttnRemoveEquipment.Label = global::Mono.Unix.Catalog.GetString("remove");
 			this.vbox3.Add(this.bttnRemoveEquipment);
 			global::Gtk.Box.BoxChild w22 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnRemoveEquipment]));
 			w22.Position = 3;