comparison gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmEditEquipment.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
comparison
equal deleted inserted replaced
91:986fc923c0fa 92:58779fcd0166
5 public partial class FrmEditEquipment 5 public partial class FrmEditEquipment
6 { 6 {
7 private global::Gtk.Table table1; 7 private global::Gtk.Table table1;
8 private global::Gtk.HBox hbox2; 8 private global::Gtk.HBox hbox2;
9 private global::Gtk.Table table2; 9 private global::Gtk.Table table2;
10 private global::Gtk.Label lblEquipAll; 10 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblEquipAll;
11 private global::Gtk.Label lblPercent; 11 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblPercent;
12 private global::Gtk.SpinButton numericAmount; 12 private global::Gtk.SpinButton numericAmount;
13 private global::Gtk.SpinButton percentageAmount; 13 private global::Gtk.SpinButton percentageAmount;
14 private global::Gtk.RadioButton rbEquipAll; 14 private global::Gtk.RadioButton rbEquipAll;
15 private global::Gtk.RadioButton rbEquipNumeric; 15 private global::Gtk.RadioButton rbEquipNumeric;
16 private global::Gtk.RadioButton rbEquipPercent; 16 private global::Gtk.RadioButton rbEquipPercent;
17 private global::Gtk.Label lblEquipAmount; 17 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblEquipAmount;
18 private global::Gtk.Button buttonCancel; 18 private global::Gtk.Button buttonCancel;
19 private global::Gtk.Button buttonOk; 19 private global::Gtk.Button buttonOk;
20 20
21 protected virtual void Build() 21 protected virtual void Build()
22 { 22 {
45 this.table2 = new global::Gtk.Table(((uint)(3)), ((uint)(3)), false); 45 this.table2 = new global::Gtk.Table(((uint)(3)), ((uint)(3)), false);
46 this.table2.Name = "table2"; 46 this.table2.Name = "table2";
47 this.table2.RowSpacing = ((uint)(6)); 47 this.table2.RowSpacing = ((uint)(6));
48 this.table2.ColumnSpacing = ((uint)(6)); 48 this.table2.ColumnSpacing = ((uint)(6));
49 // Container child table2.Gtk.Table+TableChild 49 // Container child table2.Gtk.Table+TableChild
50 this.lblEquipAll = new global::Gtk.Label(); 50 this.lblEquipAll = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel();
51 this.lblEquipAll.Name = "lblEquipAll"; 51 this.lblEquipAll.Name = "lblEquipAll";
52 this.lblEquipAll.LabelProp = global::Mono.Unix.Catalog.GetString("equip all"); 52 this.lblEquipAll.LabelProp = global::Mono.Unix.Catalog.GetString("equip all");
53 this.table2.Add(this.lblEquipAll); 53 this.table2.Add(this.lblEquipAll);
54 global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table2[this.lblEquipAll])); 54 global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table2[this.lblEquipAll]));
55 w2.TopAttach = ((uint)(2)); 55 w2.TopAttach = ((uint)(2));
56 w2.BottomAttach = ((uint)(3)); 56 w2.BottomAttach = ((uint)(3));
57 w2.LeftAttach = ((uint)(1)); 57 w2.LeftAttach = ((uint)(1));
58 w2.RightAttach = ((uint)(2)); 58 w2.RightAttach = ((uint)(2));
59 w2.YOptions = ((global::Gtk.AttachOptions)(4)); 59 w2.YOptions = ((global::Gtk.AttachOptions)(4));
60 // Container child table2.Gtk.Table+TableChild 60 // Container child table2.Gtk.Table+TableChild
61 this.lblPercent = new global::Gtk.Label(); 61 this.lblPercent = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel();
62 this.lblPercent.Name = "lblPercent"; 62 this.lblPercent.Name = "lblPercent";
63 this.lblPercent.LabelProp = global::Mono.Unix.Catalog.GetString("%"); 63 this.lblPercent.LabelProp = global::Mono.Unix.Catalog.GetString("%");
64 this.table2.Add(this.lblPercent); 64 this.table2.Add(this.lblPercent);
65 global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table2[this.lblPercent])); 65 global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table2[this.lblPercent]));
66 w3.TopAttach = ((uint)(1)); 66 w3.TopAttach = ((uint)(1));
144 global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.table1[this.hbox2])); 144 global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.table1[this.hbox2]));
145 w10.LeftAttach = ((uint)(1)); 145 w10.LeftAttach = ((uint)(1));
146 w10.RightAttach = ((uint)(2)); 146 w10.RightAttach = ((uint)(2));
147 w10.YOptions = ((global::Gtk.AttachOptions)(4)); 147 w10.YOptions = ((global::Gtk.AttachOptions)(4));
148 // Container child table1.Gtk.Table+TableChild 148 // Container child table1.Gtk.Table+TableChild
149 this.lblEquipAmount = new global::Gtk.Label(); 149 this.lblEquipAmount = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel();
150 this.lblEquipAmount.Name = "lblEquipAmount"; 150 this.lblEquipAmount.Name = "lblEquipAmount";
151 this.lblEquipAmount.LabelProp = global::Mono.Unix.Catalog.GetString("amount:"); 151 this.lblEquipAmount.LabelProp = global::Mono.Unix.Catalog.GetString("amount:");
152 this.lblEquipAmount.Justify = ((global::Gtk.Justification)(1)); 152 this.lblEquipAmount.Justify = ((global::Gtk.Justification)(1));
153 this.table1.Add(this.lblEquipAmount); 153 this.table1.Add(this.lblEquipAmount);
154 global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.table1[this.lblEquipAmount])); 154 global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.table1[this.lblEquipAmount]));