changeset 87:40857cfb309b

Re #308: Make GTK# UI translatable * Switch to TranslatableLabel in army creation form
author IBBoard <dev@ibboard.co.uk>
date Wed, 29 Dec 2010 19:54:00 +0000
parents 9515b57ba752
children b0089e875754
files gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmNewArmy.cs gtk-gui/gui.stetic
diffstat 2 files changed, 12 insertions(+), 12 deletions(-) [+]
line diff
     1.1 --- a/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmNewArmy.cs	Wed Dec 29 19:41:51 2010 +0000
     1.2 +++ b/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmNewArmy.cs	Wed Dec 29 19:54:00 2010 +0000
     1.3 @@ -9,10 +9,10 @@
     1.4  		private global::Gtk.TreeView lstRaces;
     1.5  		private global::Gtk.HBox hbox2;
     1.6  		private global::Gtk.SpinButton sbPointsValue;
     1.7 -		private global::Gtk.Label lblArmyName;
     1.8 -		private global::Gtk.Label lblArmySize;
     1.9 -		private global::Gtk.Label lblGameSystem;
    1.10 -		private global::Gtk.Label lblRaceList;
    1.11 +		private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblArmyName;
    1.12 +		private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblArmySize;
    1.13 +		private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblGameSystem;
    1.14 +		private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblRaceList;
    1.15  		private global::Gtk.ComboBoxEntry systemCombo;
    1.16  		private global::Gtk.Entry txtArmyName;
    1.17  		private global::Gtk.Button bttnCancel;
    1.18 @@ -86,7 +86,7 @@
    1.19  			w5.XOptions = ((global::Gtk.AttachOptions)(4));
    1.20  			w5.YOptions = ((global::Gtk.AttachOptions)(4));
    1.21  			// Container child table1.Gtk.Table+TableChild
    1.22 -			this.lblArmyName = new global::Gtk.Label();
    1.23 +			this.lblArmyName = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel();
    1.24  			this.lblArmyName.Name = "lblArmyName";
    1.25  			this.lblArmyName.LabelProp = global::Mono.Unix.Catalog.GetString("army name");
    1.26  			this.table1.Add(this.lblArmyName);
    1.27 @@ -96,7 +96,7 @@
    1.28  			w6.XOptions = ((global::Gtk.AttachOptions)(4));
    1.29  			w6.YOptions = ((global::Gtk.AttachOptions)(4));
    1.30  			// Container child table1.Gtk.Table+TableChild
    1.31 -			this.lblArmySize = new global::Gtk.Label();
    1.32 +			this.lblArmySize = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel();
    1.33  			this.lblArmySize.Name = "lblArmySize";
    1.34  			this.lblArmySize.LabelProp = global::Mono.Unix.Catalog.GetString("points value");
    1.35  			this.table1.Add(this.lblArmySize);
    1.36 @@ -106,7 +106,7 @@
    1.37  			w7.XOptions = ((global::Gtk.AttachOptions)(4));
    1.38  			w7.YOptions = ((global::Gtk.AttachOptions)(4));
    1.39  			// Container child table1.Gtk.Table+TableChild
    1.40 -			this.lblGameSystem = new global::Gtk.Label();
    1.41 +			this.lblGameSystem = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel();
    1.42  			this.lblGameSystem.Name = "lblGameSystem";
    1.43  			this.lblGameSystem.LabelProp = global::Mono.Unix.Catalog.GetString("game system");
    1.44  			this.table1.Add(this.lblGameSystem);
    1.45 @@ -114,7 +114,7 @@
    1.46  			w8.XOptions = ((global::Gtk.AttachOptions)(4));
    1.47  			w8.YOptions = ((global::Gtk.AttachOptions)(4));
    1.48  			// Container child table1.Gtk.Table+TableChild
    1.49 -			this.lblRaceList = new global::Gtk.Label();
    1.50 +			this.lblRaceList = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel();
    1.51  			this.lblRaceList.Name = "lblRaceList";
    1.52  			this.lblRaceList.LabelProp = global::Mono.Unix.Catalog.GetString("race");
    1.53  			this.table1.Add(this.lblRaceList);
     2.1 --- a/gtk-gui/gui.stetic	Wed Dec 29 19:41:51 2010 +0000
     2.2 +++ b/gtk-gui/gui.stetic	Wed Dec 29 19:54:00 2010 +0000
     2.3 @@ -377,7 +377,7 @@
     2.4                </packing>
     2.5              </child>
     2.6              <child>
     2.7 -              <widget class="Gtk.Label" id="lblArmyName">
     2.8 +              <widget class="IBBoard.GtkSharp.Translatable.TranslatableLabel" id="lblArmyName">
     2.9                  <property name="MemberName" />
    2.10                  <property name="LabelProp" translatable="yes">army name</property>
    2.11                </widget>
    2.12 @@ -396,7 +396,7 @@
    2.13                </packing>
    2.14              </child>
    2.15              <child>
    2.16 -              <widget class="Gtk.Label" id="lblArmySize">
    2.17 +              <widget class="IBBoard.GtkSharp.Translatable.TranslatableLabel" id="lblArmySize">
    2.18                  <property name="MemberName" />
    2.19                  <property name="LabelProp" translatable="yes">points value</property>
    2.20                </widget>
    2.21 @@ -415,7 +415,7 @@
    2.22                </packing>
    2.23              </child>
    2.24              <child>
    2.25 -              <widget class="Gtk.Label" id="lblGameSystem">
    2.26 +              <widget class="IBBoard.GtkSharp.Translatable.TranslatableLabel" id="lblGameSystem">
    2.27                  <property name="MemberName" />
    2.28                  <property name="LabelProp" translatable="yes">game system</property>
    2.29                </widget>
    2.30 @@ -432,7 +432,7 @@
    2.31                </packing>
    2.32              </child>
    2.33              <child>
    2.34 -              <widget class="Gtk.Label" id="lblRaceList">
    2.35 +              <widget class="IBBoard.GtkSharp.Translatable.TranslatableLabel" id="lblRaceList">
    2.36                  <property name="MemberName" />
    2.37                  <property name="LabelProp" translatable="yes">race</property>
    2.38                </widget>