comparison gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmAddEquipment.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
7 private global::Gtk.Table table1; 7 private global::Gtk.Table table1;
8 private global::Gtk.ScrolledWindow GtkScrolledWindow; 8 private global::Gtk.ScrolledWindow GtkScrolledWindow;
9 private global::Gtk.TreeView lstEquipment; 9 private global::Gtk.TreeView lstEquipment;
10 private global::Gtk.HBox hbox2; 10 private global::Gtk.HBox hbox2;
11 private global::Gtk.Table table2; 11 private global::Gtk.Table table2;
12 private global::Gtk.Label lblEquipAll; 12 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblEquipAll;
13 private global::Gtk.Label lblPercent; 13 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblPercent;
14 private global::Gtk.SpinButton numericAmount; 14 private global::Gtk.SpinButton numericAmount;
15 private global::Gtk.SpinButton percentageAmount; 15 private global::Gtk.SpinButton percentageAmount;
16 private global::Gtk.RadioButton rbEquipAll; 16 private global::Gtk.RadioButton rbEquipAll;
17 private global::Gtk.RadioButton rbEquipNumeric; 17 private global::Gtk.RadioButton rbEquipNumeric;
18 private global::Gtk.RadioButton rbEquipPercent; 18 private global::Gtk.RadioButton rbEquipPercent;
19 private global::Gtk.Label lblEquipAmount; 19 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblEquipAmount;
20 private global::Gtk.Label lblEquipment; 20 private global::IBBoard.GtkSharp.Translatable.TranslatableLabel lblEquipment;
21 private global::Gtk.Button buttonCancel; 21 private global::Gtk.Button buttonCancel;
22 private global::Gtk.Button buttonOk; 22 private global::Gtk.Button buttonOk;
23 23
24 protected virtual void Build() 24 protected virtual void Build()
25 { 25 {
63 this.table2 = new global::Gtk.Table(((uint)(3)), ((uint)(3)), false); 63 this.table2 = new global::Gtk.Table(((uint)(3)), ((uint)(3)), false);
64 this.table2.Name = "table2"; 64 this.table2.Name = "table2";
65 this.table2.RowSpacing = ((uint)(6)); 65 this.table2.RowSpacing = ((uint)(6));
66 this.table2.ColumnSpacing = ((uint)(6)); 66 this.table2.ColumnSpacing = ((uint)(6));
67 // Container child table2.Gtk.Table+TableChild 67 // Container child table2.Gtk.Table+TableChild
68 this.lblEquipAll = new global::Gtk.Label(); 68 this.lblEquipAll = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel();
69 this.lblEquipAll.Name = "lblEquipAll"; 69 this.lblEquipAll.Name = "lblEquipAll";
70 this.lblEquipAll.LabelProp = global::Mono.Unix.Catalog.GetString("equip all"); 70 this.lblEquipAll.LabelProp = global::Mono.Unix.Catalog.GetString("equip all");
71 this.table2.Add(this.lblEquipAll); 71 this.table2.Add(this.lblEquipAll);
72 global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table2[this.lblEquipAll])); 72 global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table2[this.lblEquipAll]));
73 w4.TopAttach = ((uint)(2)); 73 w4.TopAttach = ((uint)(2));
74 w4.BottomAttach = ((uint)(3)); 74 w4.BottomAttach = ((uint)(3));
75 w4.LeftAttach = ((uint)(1)); 75 w4.LeftAttach = ((uint)(1));
76 w4.RightAttach = ((uint)(2)); 76 w4.RightAttach = ((uint)(2));
77 w4.YOptions = ((global::Gtk.AttachOptions)(4)); 77 w4.YOptions = ((global::Gtk.AttachOptions)(4));
78 // Container child table2.Gtk.Table+TableChild 78 // Container child table2.Gtk.Table+TableChild
79 this.lblPercent = new global::Gtk.Label(); 79 this.lblPercent = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel();
80 this.lblPercent.Name = "lblPercent"; 80 this.lblPercent.Name = "lblPercent";
81 this.lblPercent.LabelProp = global::Mono.Unix.Catalog.GetString("%"); 81 this.lblPercent.LabelProp = global::Mono.Unix.Catalog.GetString("%");
82 this.table2.Add(this.lblPercent); 82 this.table2.Add(this.lblPercent);
83 global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table2[this.lblPercent])); 83 global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table2[this.lblPercent]));
84 w5.TopAttach = ((uint)(1)); 84 w5.TopAttach = ((uint)(1));
118 w7.YOptions = ((global::Gtk.AttachOptions)(4)); 118 w7.YOptions = ((global::Gtk.AttachOptions)(4));
119 // Container child table2.Gtk.Table+TableChild 119 // Container child table2.Gtk.Table+TableChild
120 this.rbEquipAll = new global::Gtk.RadioButton(""); 120 this.rbEquipAll = new global::Gtk.RadioButton("");
121 this.rbEquipAll.CanFocus = true; 121 this.rbEquipAll.CanFocus = true;
122 this.rbEquipAll.Name = "rbEquipAll"; 122 this.rbEquipAll.Name = "rbEquipAll";
123 this.rbEquipAll.Active = true;
124 this.rbEquipAll.DrawIndicator = true; 123 this.rbEquipAll.DrawIndicator = true;
125 this.rbEquipAll.UseUnderline = true; 124 this.rbEquipAll.UseUnderline = true;
126 this.rbEquipAll.Group = new global::GLib.SList(global::System.IntPtr.Zero); 125 this.rbEquipAll.Group = new global::GLib.SList(global::System.IntPtr.Zero);
127 this.table2.Add(this.rbEquipAll); 126 this.table2.Add(this.rbEquipAll);
128 global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table2[this.rbEquipAll])); 127 global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table2[this.rbEquipAll]));
165 w12.BottomAttach = ((uint)(2)); 164 w12.BottomAttach = ((uint)(2));
166 w12.LeftAttach = ((uint)(1)); 165 w12.LeftAttach = ((uint)(1));
167 w12.RightAttach = ((uint)(2)); 166 w12.RightAttach = ((uint)(2));
168 w12.YOptions = ((global::Gtk.AttachOptions)(4)); 167 w12.YOptions = ((global::Gtk.AttachOptions)(4));
169 // Container child table1.Gtk.Table+TableChild 168 // Container child table1.Gtk.Table+TableChild
170 this.lblEquipAmount = new global::Gtk.Label(); 169 this.lblEquipAmount = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel();
171 this.lblEquipAmount.Name = "lblEquipAmount"; 170 this.lblEquipAmount.Name = "lblEquipAmount";
172 this.lblEquipAmount.LabelProp = global::Mono.Unix.Catalog.GetString("amount:"); 171 this.lblEquipAmount.LabelProp = global::Mono.Unix.Catalog.GetString("amount:");
173 this.table1.Add(this.lblEquipAmount); 172 this.table1.Add(this.lblEquipAmount);
174 global::Gtk.Table.TableChild w13 = ((global::Gtk.Table.TableChild)(this.table1[this.lblEquipAmount])); 173 global::Gtk.Table.TableChild w13 = ((global::Gtk.Table.TableChild)(this.table1[this.lblEquipAmount]));
175 w13.TopAttach = ((uint)(1)); 174 w13.TopAttach = ((uint)(1));
176 w13.BottomAttach = ((uint)(2)); 175 w13.BottomAttach = ((uint)(2));
177 w13.XOptions = ((global::Gtk.AttachOptions)(4)); 176 w13.XOptions = ((global::Gtk.AttachOptions)(4));
178 w13.YOptions = ((global::Gtk.AttachOptions)(4)); 177 w13.YOptions = ((global::Gtk.AttachOptions)(4));
179 // Container child table1.Gtk.Table+TableChild 178 // Container child table1.Gtk.Table+TableChild
180 this.lblEquipment = new global::Gtk.Label(); 179 this.lblEquipment = new global::IBBoard.GtkSharp.Translatable.TranslatableLabel();
181 this.lblEquipment.Name = "lblEquipment"; 180 this.lblEquipment.Name = "lblEquipment";
182 this.lblEquipment.LabelProp = global::Mono.Unix.Catalog.GetString("equipment"); 181 this.lblEquipment.LabelProp = global::Mono.Unix.Catalog.GetString("equipment");
183 this.table1.Add(this.lblEquipment); 182 this.table1.Add(this.lblEquipment);
184 global::Gtk.Table.TableChild w14 = ((global::Gtk.Table.TableChild)(this.table1[this.lblEquipment])); 183 global::Gtk.Table.TableChild w14 = ((global::Gtk.Table.TableChild)(this.table1[this.lblEquipment]));
185 w14.XOptions = ((global::Gtk.AttachOptions)(4)); 184 w14.XOptions = ((global::Gtk.AttachOptions)(4));