diff gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmReplaceEquipment.cs @ 93:e40d892a2298

Fixes #308: Make GTK# UI translatable * Move all remaining buttons to translatable buttons * Make the About dialog translatable (where appropriate) * Move to UTF-8 encoding in the XML to correctly handle copyright symbol * Switch About dialog to using Close button as per other apps
author IBBoard <dev@ibboard.co.uk>
date Fri, 31 Dec 2010 13:53:18 +0000
parents 58779fcd0166
children 6d2c8ad0d8f1
line wrap: on
line diff
--- a/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmReplaceEquipment.cs	Fri Dec 31 12:01:18 2010 +0000
+++ b/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmReplaceEquipment.cs	Fri Dec 31 13:53:18 2010 +0000
@@ -18,8 +18,8 @@
 		private global::Gtk.RadioButton rbEquipPercent;
 		private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblEquipAmount;
 		private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblEquipment;
-		private global::Gtk.Button buttonCancel;
-		private global::Gtk.Button buttonOk;
+		private global::IBBoard.GtkSharp.Translatable.TranslatableButton buttonCancel;
+		private global::IBBoard.GtkSharp.Translatable.TranslatableButton buttonOk;
 
 		protected virtual void Build()
 		{
@@ -195,7 +195,7 @@
 			w16.BorderWidth = ((uint)(5));
 			w16.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
 			// Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
-			this.buttonCancel = new global::Gtk.Button();
+			this.buttonCancel = new global::IBBoard.GtkSharp.Translatable.TranslatableButton();
 			this.buttonCancel.CanDefault = true;
 			this.buttonCancel.CanFocus = true;
 			this.buttonCancel.Name = "buttonCancel";
@@ -207,7 +207,7 @@
 			w17.Expand = false;
 			w17.Fill = false;
 			// Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
-			this.buttonOk = new global::Gtk.Button();
+			this.buttonOk = new global::IBBoard.GtkSharp.Translatable.TranslatableButton();
 			this.buttonOk.CanDefault = true;
 			this.buttonOk.CanFocus = true;
 			this.buttonOk.Name = "buttonOk";