comparison gtk-gui/gui.stetic @ 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 e40d892a2298
comparison
equal deleted inserted replaced
91:986fc923c0fa 92:58779fcd0166
613 <property name="Expand">False</property> 613 <property name="Expand">False</property>
614 <property name="Fill">False</property> 614 <property name="Fill">False</property>
615 </packing> 615 </packing>
616 </child> 616 </child>
617 <child> 617 <child>
618 <widget class="Gtk.Label" id="lblNewUnitWarning"> 618 <widget class="IBBoard.GtkSharp.Translatable.TranslatableLabel" id="lblNewUnitWarning">
619 <property name="MemberName" /> 619 <property name="MemberName" />
620 <property name="Xalign">0</property> 620 <property name="Visible">False</property>
621 <property name="Yalign">0</property>
622 </widget> 621 </widget>
623 <packing> 622 <packing>
624 <property name="Position">1</property> 623 <property name="Position">1</property>
625 <property name="AutoSize">True</property> 624 <property name="AutoSize">True</property>
626 <property name="Expand">False</property> 625 <property name="Expand">False</property>
778 <property name="NRows">3</property> 777 <property name="NRows">3</property>
779 <property name="NColumns">2</property> 778 <property name="NColumns">2</property>
780 <property name="RowSpacing">6</property> 779 <property name="RowSpacing">6</property>
781 <property name="ColumnSpacing">6</property> 780 <property name="ColumnSpacing">6</property>
782 <child> 781 <child>
783 <widget class="Gtk.Label" id="equipmentLabel"> 782 <widget class="IBBoard.GtkSharp.Translatable.TranslatableLabel" id="equipmentLabel">
784 <property name="MemberName" /> 783 <property name="MemberName" />
785 <property name="LabelProp" translatable="yes">equipment:</property> 784 <property name="LabelProp" translatable="yes">equipment:</property>
786 </widget> 785 </widget>
787 <packing> 786 <packing>
788 <property name="AutoSize">True</property> 787 <property name="AutoSize">True</property>
878 <property name="YFill">True</property> 877 <property name="YFill">True</property>
879 <property name="YShrink">False</property> 878 <property name="YShrink">False</property>
880 </packing> 879 </packing>
881 </child> 880 </child>
882 <child> 881 <child>
883 <widget class="Gtk.Label" id="lblAbilities"> 882 <widget class="IBBoard.GtkSharp.Translatable.TranslatableLabel" id="lblAbilities">
884 <property name="MemberName" /> 883 <property name="MemberName" />
885 <property name="LabelProp" translatable="yes">abilities:</property> 884 <property name="LabelProp" translatable="yes">abilities:</property>
886 </widget> 885 </widget>
887 <packing> 886 <packing>
888 <property name="TopAttach">1</property> 887 <property name="TopAttach">1</property>
897 <property name="YFill">True</property> 896 <property name="YFill">True</property>
898 <property name="YShrink">False</property> 897 <property name="YShrink">False</property>
899 </packing> 898 </packing>
900 </child> 899 </child>
901 <child> 900 <child>
902 <widget class="Gtk.Label" id="lblNotes"> 901 <widget class="IBBoard.GtkSharp.Translatable.TranslatableLabel" id="lblNotes">
903 <property name="MemberName" /> 902 <property name="MemberName" />
904 <property name="LabelProp" translatable="yes">notes:</property> 903 <property name="LabelProp" translatable="yes">notes:</property>
905 </widget> 904 </widget>
906 <packing> 905 <packing>
907 <property name="TopAttach">2</property> 906 <property name="TopAttach">2</property>
930 <child> 929 <child>
931 <widget class="Gtk.Button" id="bttnAddEquipment"> 930 <widget class="Gtk.Button" id="bttnAddEquipment">
932 <property name="MemberName" /> 931 <property name="MemberName" />
933 <property name="CanFocus">True</property> 932 <property name="CanFocus">True</property>
934 <property name="Type">TextOnly</property> 933 <property name="Type">TextOnly</property>
935 <property name="Label" translatable="yes">Add</property> 934 <property name="Label" translatable="yes">add</property>
936 <property name="UseUnderline">True</property> 935 <property name="UseUnderline">True</property>
937 <signal name="Clicked" handler="OnBttnAddEquipmentClicked" /> 936 <signal name="Clicked" handler="OnBttnAddEquipmentClicked" />
938 </widget> 937 </widget>
939 <packing> 938 <packing>
940 <property name="Position">0</property> 939 <property name="Position">0</property>
947 <widget class="Gtk.Button" id="bttnEditEquipment"> 946 <widget class="Gtk.Button" id="bttnEditEquipment">
948 <property name="MemberName" /> 947 <property name="MemberName" />
949 <property name="Sensitive">False</property> 948 <property name="Sensitive">False</property>
950 <property name="CanFocus">True</property> 949 <property name="CanFocus">True</property>
951 <property name="Type">TextOnly</property> 950 <property name="Type">TextOnly</property>
952 <property name="Label" translatable="yes">Edit</property> 951 <property name="Label" translatable="yes">edit</property>
953 <property name="UseUnderline">True</property> 952 <property name="UseUnderline">True</property>
954 <signal name="Clicked" handler="HandleEditButtonClicked" /> 953 <signal name="Clicked" handler="HandleEditButtonClicked" />
955 </widget> 954 </widget>
956 <packing> 955 <packing>
957 <property name="Position">1</property> 956 <property name="Position">1</property>
964 <widget class="Gtk.Button" id="bttnReplaceEquipment"> 963 <widget class="Gtk.Button" id="bttnReplaceEquipment">
965 <property name="MemberName" /> 964 <property name="MemberName" />
966 <property name="Sensitive">False</property> 965 <property name="Sensitive">False</property>
967 <property name="CanFocus">True</property> 966 <property name="CanFocus">True</property>
968 <property name="Type">TextOnly</property> 967 <property name="Type">TextOnly</property>
969 <property name="Label" translatable="yes">Replace</property> 968 <property name="Label" translatable="yes">replace</property>
970 <property name="UseUnderline">True</property> 969 <property name="UseUnderline">True</property>
971 <signal name="Clicked" handler="HandleReplaceButtonClicked" /> 970 <signal name="Clicked" handler="HandleReplaceButtonClicked" />
972 </widget> 971 </widget>
973 <packing> 972 <packing>
974 <property name="Position">2</property> 973 <property name="Position">2</property>
981 <widget class="Gtk.Button" id="bttnRemoveEquipment"> 980 <widget class="Gtk.Button" id="bttnRemoveEquipment">
982 <property name="MemberName" /> 981 <property name="MemberName" />
983 <property name="Sensitive">False</property> 982 <property name="Sensitive">False</property>
984 <property name="CanFocus">True</property> 983 <property name="CanFocus">True</property>
985 <property name="Type">TextOnly</property> 984 <property name="Type">TextOnly</property>
986 <property name="Label" translatable="yes">Remove</property> 985 <property name="Label" translatable="yes">remove</property>
987 <property name="UseUnderline">True</property> 986 <property name="UseUnderline">True</property>
988 <signal name="Clicked" handler="HandleRemoveButtonActivated" /> 987 <signal name="Clicked" handler="HandleRemoveButtonActivated" />
989 </widget> 988 </widget>
990 <packing> 989 <packing>
991 <property name="Position">3</property> 990 <property name="Position">3</property>
1081 </child> 1080 </child>
1082 <child> 1081 <child>
1083 <placeholder /> 1082 <placeholder />
1084 </child> 1083 </child>
1085 <child> 1084 <child>
1086 <widget class="Gtk.Label" id="lblEquipAll"> 1085 <widget class="IBBoard.GtkSharp.Translatable.TranslatableLabel" id="lblEquipAll">
1087 <property name="MemberName" /> 1086 <property name="MemberName" />
1088 <property name="LabelProp" translatable="yes">equip all</property> 1087 <property name="LabelProp" translatable="yes">equip all</property>
1089 </widget> 1088 </widget>
1090 <packing> 1089 <packing>
1091 <property name="TopAttach">2</property> 1090 <property name="TopAttach">2</property>
1101 <property name="YFill">True</property> 1100 <property name="YFill">True</property>
1102 <property name="YShrink">False</property> 1101 <property name="YShrink">False</property>
1103 </packing> 1102 </packing>
1104 </child> 1103 </child>
1105 <child> 1104 <child>
1106 <widget class="Gtk.Label" id="lblPercent"> 1105 <widget class="IBBoard.GtkSharp.Translatable.TranslatableLabel" id="lblPercent">
1107 <property name="MemberName" /> 1106 <property name="MemberName" />
1108 <property name="LabelProp" translatable="yes">%</property> 1107 <property name="LabelProp" translatable="yes">%</property>
1109 </widget> 1108 </widget>
1110 <packing> 1109 <packing>
1111 <property name="TopAttach">1</property> 1110 <property name="TopAttach">1</property>
1179 <child> 1178 <child>
1180 <widget class="Gtk.RadioButton" id="rbEquipAll"> 1179 <widget class="Gtk.RadioButton" id="rbEquipAll">
1181 <property name="MemberName" /> 1180 <property name="MemberName" />
1182 <property name="CanFocus">True</property> 1181 <property name="CanFocus">True</property>
1183 <property name="Label" translatable="yes" /> 1182 <property name="Label" translatable="yes" />
1184 <property name="Active">True</property>
1185 <property name="DrawIndicator">True</property> 1183 <property name="DrawIndicator">True</property>
1186 <property name="HasLabel">True</property> 1184 <property name="HasLabel">True</property>
1187 <property name="UseUnderline">True</property> 1185 <property name="UseUnderline">True</property>
1188 <property name="Group">group1</property> 1186 <property name="Group">group1</property>
1189 </widget> 1187 </widget>
1274 <property name="YFill">True</property> 1272 <property name="YFill">True</property>
1275 <property name="YShrink">False</property> 1273 <property name="YShrink">False</property>
1276 </packing> 1274 </packing>
1277 </child> 1275 </child>
1278 <child> 1276 <child>
1279 <widget class="Gtk.Label" id="lblEquipAmount"> 1277 <widget class="IBBoard.GtkSharp.Translatable.TranslatableLabel" id="lblEquipAmount">
1280 <property name="MemberName" /> 1278 <property name="MemberName" />
1281 <property name="LabelProp" translatable="yes">amount:</property> 1279 <property name="LabelProp" translatable="yes">amount:</property>
1282 </widget> 1280 </widget>
1283 <packing> 1281 <packing>
1284 <property name="TopAttach">1</property> 1282 <property name="TopAttach">1</property>
1293 <property name="YFill">True</property> 1291 <property name="YFill">True</property>
1294 <property name="YShrink">False</property> 1292 <property name="YShrink">False</property>
1295 </packing> 1293 </packing>
1296 </child> 1294 </child>
1297 <child> 1295 <child>
1298 <widget class="Gtk.Label" id="lblEquipment"> 1296 <widget class="IBBoard.GtkSharp.Translatable.TranslatableLabel" id="lblEquipment">
1299 <property name="MemberName" /> 1297 <property name="MemberName" />
1300 <property name="LabelProp" translatable="yes">equipment</property> 1298 <property name="LabelProp" translatable="yes">equipment</property>
1301 </widget> 1299 </widget>
1302 <packing> 1300 <packing>
1303 <property name="AutoSize">True</property> 1301 <property name="AutoSize">True</property>
1401 </child> 1399 </child>
1402 <child> 1400 <child>
1403 <placeholder /> 1401 <placeholder />
1404 </child> 1402 </child>
1405 <child> 1403 <child>
1406 <widget class="Gtk.Label" id="lblEquipAll"> 1404 <widget class="IBBoard.GtkSharp.Translatable.TranslatableLabel" id="lblEquipAll">
1407 <property name="MemberName" /> 1405 <property name="MemberName" />
1408 <property name="LabelProp" translatable="yes">equip all</property> 1406 <property name="LabelProp" translatable="yes">equip all</property>
1409 </widget> 1407 </widget>
1410 <packing> 1408 <packing>
1411 <property name="TopAttach">2</property> 1409 <property name="TopAttach">2</property>
1421 <property name="YFill">True</property> 1419 <property name="YFill">True</property>
1422 <property name="YShrink">False</property> 1420 <property name="YShrink">False</property>
1423 </packing> 1421 </packing>
1424 </child> 1422 </child>
1425 <child> 1423 <child>
1426 <widget class="Gtk.Label" id="lblPercent"> 1424 <widget class="IBBoard.GtkSharp.Translatable.TranslatableLabel" id="lblPercent">
1427 <property name="MemberName" /> 1425 <property name="MemberName" />
1428 <property name="LabelProp" translatable="yes">%</property> 1426 <property name="LabelProp" translatable="yes">%</property>
1429 </widget> 1427 </widget>
1430 <packing> 1428 <packing>
1431 <property name="TopAttach">1</property> 1429 <property name="TopAttach">1</property>
1593 <property name="YFill">True</property> 1591 <property name="YFill">True</property>
1594 <property name="YShrink">False</property> 1592 <property name="YShrink">False</property>
1595 </packing> 1593 </packing>
1596 </child> 1594 </child>
1597 <child> 1595 <child>
1598 <widget class="Gtk.Label" id="lblEquipAmount"> 1596 <widget class="IBBoard.GtkSharp.Translatable.TranslatableLabel" id="lblEquipAmount">
1599 <property name="MemberName" /> 1597 <property name="MemberName" />
1600 <property name="LabelProp" translatable="yes">amount:</property> 1598 <property name="LabelProp" translatable="yes">amount:</property>
1601 <property name="Justify">Right</property> 1599 <property name="Justify">Right</property>
1602 </widget> 1600 </widget>
1603 <packing> 1601 <packing>
1728 </child> 1726 </child>
1729 <child> 1727 <child>
1730 <placeholder /> 1728 <placeholder />
1731 </child> 1729 </child>
1732 <child> 1730 <child>
1733 <widget class="Gtk.Label" id="lblEquipAll"> 1731 <widget class="IBBoard.GtkSharp.Translatable.TranslatableLabel" id="lblEquipAll">
1734 <property name="MemberName" /> 1732 <property name="MemberName" />
1735 <property name="LabelProp" translatable="yes">equip all</property> 1733 <property name="LabelProp" translatable="yes">equip all</property>
1736 </widget> 1734 </widget>
1737 <packing> 1735 <packing>
1738 <property name="TopAttach">2</property> 1736 <property name="TopAttach">2</property>
1748 <property name="YFill">True</property> 1746 <property name="YFill">True</property>
1749 <property name="YShrink">False</property> 1747 <property name="YShrink">False</property>
1750 </packing> 1748 </packing>
1751 </child> 1749 </child>
1752 <child> 1750 <child>
1753 <widget class="Gtk.Label" id="lblPercent"> 1751 <widget class="IBBoard.GtkSharp.Translatable.TranslatableLabel" id="lblPercent">
1754 <property name="MemberName" /> 1752 <property name="MemberName" />
1755 <property name="LabelProp" translatable="yes">%</property> 1753 <property name="LabelProp" translatable="yes">%</property>
1756 </widget> 1754 </widget>
1757 <packing> 1755 <packing>
1758 <property name="TopAttach">1</property> 1756 <property name="TopAttach">1</property>
1920 <property name="YFill">True</property> 1918 <property name="YFill">True</property>
1921 <property name="YShrink">False</property> 1919 <property name="YShrink">False</property>
1922 </packing> 1920 </packing>
1923 </child> 1921 </child>
1924 <child> 1922 <child>
1925 <widget class="Gtk.Label" id="lblEquipAmount"> 1923 <widget class="IBBoard.GtkSharp.Translatable.TranslatableLabel" id="lblEquipAmount">
1926 <property name="MemberName" /> 1924 <property name="MemberName" />
1927 <property name="LabelProp" translatable="yes">amount:</property> 1925 <property name="LabelProp" translatable="yes">amount:</property>
1928 </widget> 1926 </widget>
1929 <packing> 1927 <packing>
1930 <property name="TopAttach">1</property> 1928 <property name="TopAttach">1</property>
1939 <property name="YFill">True</property> 1937 <property name="YFill">True</property>
1940 <property name="YShrink">False</property> 1938 <property name="YShrink">False</property>
1941 </packing> 1939 </packing>
1942 </child> 1940 </child>
1943 <child> 1941 <child>
1944 <widget class="Gtk.Label" id="lblEquipment"> 1942 <widget class="IBBoard.GtkSharp.Translatable.TranslatableLabel" id="lblEquipment">
1945 <property name="MemberName" /> 1943 <property name="MemberName" />
1946 <property name="LabelProp" translatable="yes">equipment</property> 1944 <property name="LabelProp" translatable="yes">equipment</property>
1947 </widget> 1945 </widget>
1948 <packing> 1946 <packing>
1949 <property name="AutoSize">True</property> 1947 <property name="AutoSize">True</property>