Mercurial > repos > IBBoard.WarFoundry.GUI.GTK
diff gtk-gui/gui.stetic @ 93:e40d892a2298
Fixes #308: Make GTK# UI translatable
* Move all remaining buttons to translatable buttons
* Make the About dialog translatable (where appropriate)
* Move to UTF-8 encoding in the XML to correctly handle copyright symbol
* Switch About dialog to using Close button as per other apps
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 31 Dec 2010 13:53:18 +0000 |
parents | 58779fcd0166 |
children | 26e4525b49cf |
line wrap: on
line diff
--- a/gtk-gui/gui.stetic Fri Dec 31 12:01:18 2010 +0000 +++ b/gtk-gui/gui.stetic Fri Dec 31 13:53:18 2010 +0000 @@ -927,7 +927,7 @@ <property name="MemberName" /> <property name="Spacing">6</property> <child> - <widget class="Gtk.Button" id="bttnAddEquipment"> + <widget class="IBBoard.GtkSharp.Translatable.TranslatableButton" id="bttnAddEquipment"> <property name="MemberName" /> <property name="CanFocus">True</property> <property name="Type">TextOnly</property> @@ -943,7 +943,7 @@ </packing> </child> <child> - <widget class="Gtk.Button" id="bttnEditEquipment"> + <widget class="IBBoard.GtkSharp.Translatable.TranslatableButton" id="bttnEditEquipment"> <property name="MemberName" /> <property name="Sensitive">False</property> <property name="CanFocus">True</property> @@ -960,7 +960,7 @@ </packing> </child> <child> - <widget class="Gtk.Button" id="bttnReplaceEquipment"> + <widget class="IBBoard.GtkSharp.Translatable.TranslatableButton" id="bttnReplaceEquipment"> <property name="MemberName" /> <property name="Sensitive">False</property> <property name="CanFocus">True</property> @@ -977,7 +977,7 @@ </packing> </child> <child> - <widget class="Gtk.Button" id="bttnRemoveEquipment"> + <widget class="IBBoard.GtkSharp.Translatable.TranslatableButton" id="bttnRemoveEquipment"> <property name="MemberName" /> <property name="Sensitive">False</property> <property name="CanFocus">True</property> @@ -1327,7 +1327,7 @@ <property name="Size">2</property> <property name="LayoutStyle">End</property> <child> - <widget class="Gtk.Button" id="buttonCancel"> + <widget class="IBBoard.GtkSharp.Translatable.TranslatableButton" id="buttonCancel"> <property name="MemberName" /> <property name="CanDefault">True</property> <property name="CanFocus">True</property> @@ -1344,7 +1344,7 @@ </packing> </child> <child> - <widget class="Gtk.Button" id="buttonOk"> + <widget class="IBBoard.GtkSharp.Translatable.TranslatableButton" id="buttonOk"> <property name="MemberName" /> <property name="CanDefault">True</property> <property name="CanFocus">True</property> @@ -1627,7 +1627,7 @@ <property name="Size">2</property> <property name="LayoutStyle">End</property> <child> - <widget class="Gtk.Button" id="buttonCancel"> + <widget class="IBBoard.GtkSharp.Translatable.TranslatableButton" id="buttonCancel"> <property name="MemberName" /> <property name="CanDefault">True</property> <property name="CanFocus">True</property> @@ -1644,7 +1644,7 @@ </packing> </child> <child> - <widget class="Gtk.Button" id="buttonOk"> + <widget class="IBBoard.GtkSharp.Translatable.TranslatableButton" id="buttonOk"> <property name="MemberName" /> <property name="CanDefault">True</property> <property name="CanFocus">True</property> @@ -1973,7 +1973,7 @@ <property name="Size">2</property> <property name="LayoutStyle">End</property> <child> - <widget class="Gtk.Button" id="buttonCancel"> + <widget class="IBBoard.GtkSharp.Translatable.TranslatableButton" id="buttonCancel"> <property name="MemberName" /> <property name="CanDefault">True</property> <property name="CanFocus">True</property> @@ -1990,7 +1990,7 @@ </packing> </child> <child> - <widget class="Gtk.Button" id="buttonOk"> + <widget class="IBBoard.GtkSharp.Translatable.TranslatableButton" id="buttonOk"> <property name="MemberName" /> <property name="CanDefault">True</property> <property name="CanFocus">True</property> @@ -2024,7 +2024,7 @@ <property name="MemberName" /> <property name="BorderWidth">2</property> <child> - <widget class="Gtk.Image" id="image1"> + <widget class="Gtk.Image" id="logoImage"> <property name="MemberName" /> <property name="Pixbuf">resource:IBBoard.WarFoundry.GUI.GTK.App-lrg.png</property> </widget> @@ -2049,7 +2049,7 @@ </packing> </child> <child> - <widget class="Gtk.Label" id="label4"> + <widget class="IBBoard.GtkSharp.Translatable.TranslatableLabel" id="lblWarFoundryDesc"> <property name="MemberName" /> <property name="LabelProp" translatable="yes">WarFoundry is an open-source army creation tool that lets you create rosters for multiple game systems.</property> <property name="Wrap">True</property> @@ -2063,7 +2063,7 @@ </packing> </child> <child> - <widget class="Gtk.Label" id="label2"> + <widget class="IBBoard.GtkSharp.Translatable.TranslatableLabel" id="lblWarFoundryCopyright"> <property name="MemberName" /> <property name="LabelProp" translatable="yes">© 2007-2010, IBBoard and others</property> </widget> @@ -2075,7 +2075,7 @@ </packing> </child> <child> - <widget class="Gtk.Label" id="label3"> + <widget class="Gtk.Label" id="lblWarFoundryLink"> <property name="MemberName" /> <property name="LabelProp" translatable="yes"><a href="http://warfoundry.co.uk">http://warfoundry.co.uk</a></property> <property name="UseMarkup">True</property> @@ -2097,16 +2097,15 @@ <property name="Size">1</property> <property name="LayoutStyle">End</property> <child> - <widget class="Gtk.Button" id="buttonOk"> + <widget class="IBBoard.GtkSharp.Translatable.TranslatableButton" id="bttnClose"> <property name="MemberName" /> <property name="CanDefault">True</property> <property name="CanFocus">True</property> <property name="UseStock">True</property> <property name="Type">StockItem</property> - <property name="StockId">gtk-ok</property> - <property name="ResponseId">-5</property> - <signal name="Activated" handler="OkayClicked" /> - <property name="label">gtk-ok</property> + <property name="StockId">gtk-close</property> + <property name="ResponseId">-7</property> + <property name="label">gtk-close</property> </widget> <packing> <property name="Expand">False</property>