Mercurial > repos > IBBoard.WarFoundry.GUI.GTK
diff gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmNewUnit.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 | a754a2d1881c |
children | 6d2c8ad0d8f1 |
line wrap: on
line diff
--- a/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmNewUnit.cs Fri Dec 31 11:36:06 2010 +0000 +++ b/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmNewUnit.cs Fri Dec 31 12:01:18 2010 +0000 @@ -9,7 +9,7 @@ private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblUnitType; private global::Gtk.ScrolledWindow GtkScrolledWindow; private global::Gtk.TreeView lstUnitTypes; - private global::Gtk.Label lblNewUnitWarning; + private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblNewUnitWarning; private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnCancel; private global::IBBoard.GtkSharp.Translatable.TranslatableButton bttnCreate; @@ -65,10 +65,8 @@ w5.Expand = false; w5.Fill = false; // Container child vbox2.Gtk.Box+BoxChild - this.lblNewUnitWarning = new global::Gtk.Label(); + this.lblNewUnitWarning = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel(); this.lblNewUnitWarning.Name = "lblNewUnitWarning"; - this.lblNewUnitWarning.Xalign = 0F; - this.lblNewUnitWarning.Yalign = 0F; this.vbox2.Add(this.lblNewUnitWarning); global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.lblNewUnitWarning])); w6.Position = 1; @@ -114,6 +112,7 @@ } this.DefaultWidth = 403; this.DefaultHeight = 259; + this.lblNewUnitWarning.Hide(); this.Show(); this.lstUnitTypes.RowActivated += new global::Gtk.RowActivatedHandler(this.OnRowActivated); this.bttnCancel.Clicked += new global::System.EventHandler(this.OnButtonCancelActivated);