Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
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 wrap: on
line diff
--- a/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmNewArmy.cs Wed Dec 29 19:41:51 2010 +0000 +++ b/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmNewArmy.cs Wed Dec 29 19:54:00 2010 +0000 @@ -9,10 +9,10 @@ private global::Gtk.TreeView lstRaces; private global::Gtk.HBox hbox2; private global::Gtk.SpinButton sbPointsValue; - private global::Gtk.Label lblArmyName; - private global::Gtk.Label lblArmySize; - private global::Gtk.Label lblGameSystem; - private global::Gtk.Label lblRaceList; + private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblArmyName; + private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblArmySize; + private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblGameSystem; + private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblRaceList; private global::Gtk.ComboBoxEntry systemCombo; private global::Gtk.Entry txtArmyName; private global::Gtk.Button bttnCancel; @@ -86,7 +86,7 @@ w5.XOptions = ((global::Gtk.AttachOptions)(4)); w5.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.lblArmyName = new global::Gtk.Label(); + this.lblArmyName = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel(); this.lblArmyName.Name = "lblArmyName"; this.lblArmyName.LabelProp = global::Mono.Unix.Catalog.GetString("army name"); this.table1.Add(this.lblArmyName); @@ -96,7 +96,7 @@ w6.XOptions = ((global::Gtk.AttachOptions)(4)); w6.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.lblArmySize = new global::Gtk.Label(); + this.lblArmySize = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel(); this.lblArmySize.Name = "lblArmySize"; this.lblArmySize.LabelProp = global::Mono.Unix.Catalog.GetString("points value"); this.table1.Add(this.lblArmySize); @@ -106,7 +106,7 @@ w7.XOptions = ((global::Gtk.AttachOptions)(4)); w7.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.lblGameSystem = new global::Gtk.Label(); + this.lblGameSystem = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel(); this.lblGameSystem.Name = "lblGameSystem"; this.lblGameSystem.LabelProp = global::Mono.Unix.Catalog.GetString("game system"); this.table1.Add(this.lblGameSystem); @@ -114,7 +114,7 @@ w8.XOptions = ((global::Gtk.AttachOptions)(4)); w8.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.lblRaceList = new global::Gtk.Label(); + this.lblRaceList = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel(); this.lblRaceList.Name = "lblRaceList"; this.lblRaceList.LabelProp = global::Mono.Unix.Catalog.GetString("race"); this.table1.Add(this.lblRaceList);
--- a/gtk-gui/gui.stetic Wed Dec 29 19:41:51 2010 +0000 +++ b/gtk-gui/gui.stetic Wed Dec 29 19:54:00 2010 +0000 @@ -377,7 +377,7 @@ </packing> </child> <child> - <widget class="Gtk.Label" id="lblArmyName"> + <widget class="IBBoard.GtkSharp.Translatable.TranslatableLabel" id="lblArmyName"> <property name="MemberName" /> <property name="LabelProp" translatable="yes">army name</property> </widget> @@ -396,7 +396,7 @@ </packing> </child> <child> - <widget class="Gtk.Label" id="lblArmySize"> + <widget class="IBBoard.GtkSharp.Translatable.TranslatableLabel" id="lblArmySize"> <property name="MemberName" /> <property name="LabelProp" translatable="yes">points value</property> </widget> @@ -415,7 +415,7 @@ </packing> </child> <child> - <widget class="Gtk.Label" id="lblGameSystem"> + <widget class="IBBoard.GtkSharp.Translatable.TranslatableLabel" id="lblGameSystem"> <property name="MemberName" /> <property name="LabelProp" translatable="yes">game system</property> </widget> @@ -432,7 +432,7 @@ </packing> </child> <child> - <widget class="Gtk.Label" id="lblRaceList"> + <widget class="IBBoard.GtkSharp.Translatable.TranslatableLabel" id="lblRaceList"> <property name="MemberName" /> <property name="LabelProp" translatable="yes">race</property> </widget>