diff gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmAddEquipment.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.FrmAddEquipment.cs	Fri Dec 31 11:36:06 2010 +0000
+++ b/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmAddEquipment.cs	Fri Dec 31 12:01:18 2010 +0000
@@ -9,15 +9,15 @@
 		private global::Gtk.TreeView lstEquipment;
 		private global::Gtk.HBox hbox2;
 		private global::Gtk.Table table2;
-		private global::Gtk.Label lblEquipAll;
-		private global::Gtk.Label lblPercent;
+		private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblEquipAll;
+		private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblPercent;
 		private global::Gtk.SpinButton numericAmount;
 		private global::Gtk.SpinButton percentageAmount;
 		private global::Gtk.RadioButton rbEquipAll;
 		private global::Gtk.RadioButton rbEquipNumeric;
 		private global::Gtk.RadioButton rbEquipPercent;
-		private global::Gtk.Label lblEquipAmount;
-		private global::Gtk.Label lblEquipment;
+		private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblEquipAmount;
+		private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblEquipment;
 		private global::Gtk.Button buttonCancel;
 		private global::Gtk.Button buttonOk;
 
@@ -65,7 +65,7 @@
 			this.table2.RowSpacing = ((uint)(6));
 			this.table2.ColumnSpacing = ((uint)(6));
 			// Container child table2.Gtk.Table+TableChild
-			this.lblEquipAll = new global::Gtk.Label();
+			this.lblEquipAll = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel();
 			this.lblEquipAll.Name = "lblEquipAll";
 			this.lblEquipAll.LabelProp = global::Mono.Unix.Catalog.GetString("equip all");
 			this.table2.Add(this.lblEquipAll);
@@ -76,7 +76,7 @@
 			w4.RightAttach = ((uint)(2));
 			w4.YOptions = ((global::Gtk.AttachOptions)(4));
 			// Container child table2.Gtk.Table+TableChild
-			this.lblPercent = new global::Gtk.Label();
+			this.lblPercent = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel();
 			this.lblPercent.Name = "lblPercent";
 			this.lblPercent.LabelProp = global::Mono.Unix.Catalog.GetString("%");
 			this.table2.Add(this.lblPercent);
@@ -120,7 +120,6 @@
 			this.rbEquipAll = new global::Gtk.RadioButton("");
 			this.rbEquipAll.CanFocus = true;
 			this.rbEquipAll.Name = "rbEquipAll";
-			this.rbEquipAll.Active = true;
 			this.rbEquipAll.DrawIndicator = true;
 			this.rbEquipAll.UseUnderline = true;
 			this.rbEquipAll.Group = new global::GLib.SList(global::System.IntPtr.Zero);
@@ -167,7 +166,7 @@
 			w12.RightAttach = ((uint)(2));
 			w12.YOptions = ((global::Gtk.AttachOptions)(4));
 			// Container child table1.Gtk.Table+TableChild
-			this.lblEquipAmount = new global::Gtk.Label();
+			this.lblEquipAmount = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel();
 			this.lblEquipAmount.Name = "lblEquipAmount";
 			this.lblEquipAmount.LabelProp = global::Mono.Unix.Catalog.GetString("amount:");
 			this.table1.Add(this.lblEquipAmount);
@@ -177,7 +176,7 @@
 			w13.XOptions = ((global::Gtk.AttachOptions)(4));
 			w13.YOptions = ((global::Gtk.AttachOptions)(4));
 			// Container child table1.Gtk.Table+TableChild
-			this.lblEquipment = new global::Gtk.Label();
+			this.lblEquipment = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel();
 			this.lblEquipment.Name = "lblEquipment";
 			this.lblEquipment.LabelProp = global::Mono.Unix.Catalog.GetString("equipment");
 			this.table1.Add(this.lblEquipment);