changeset 80:9c9af2ce8c43

Re #308: Make GTK# UI translatable * Make About box translatable (dialog title) and add translation
author IBBoard <dev@ibboard.co.uk>
date Tue, 28 Dec 2010 14:32:38 +0000
parents 592930d28da4
children 3ff8e10de45a
files FrmAbout.cs gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmAbout.cs gtk-gui/gui.stetic translations/en.translation
diffstat 4 files changed, 6 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/FrmAbout.cs	Mon Dec 27 20:56:31 2010 +0000
     1.2 +++ b/FrmAbout.cs	Tue Dec 28 14:32:38 2010 +0000
     1.3 @@ -4,10 +4,11 @@
     1.4  
     1.5  using System;
     1.6  using Gtk;
     1.7 +using IBBoard.GtkSharp.Translatable;
     1.8  
     1.9  namespace IBBoard.WarFoundry.GUI.GTK
    1.10  {
    1.11 -	public partial class FrmAbout : Gtk.Dialog
    1.12 +	public partial class FrmAbout : TranslatableDialog
    1.13  	{
    1.14  		private static FrmAbout frm;
    1.15  
    1.16 @@ -24,6 +25,7 @@
    1.17  		private FrmAbout()
    1.18  		{
    1.19  			this.Build();
    1.20 +			ControlTranslator.TranslateWidget(this);
    1.21  		}
    1.22  
    1.23  		protected virtual void OkayClicked(object sender, System.EventArgs e)
     2.1 --- a/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmAbout.cs	Mon Dec 27 20:56:31 2010 +0000
     2.2 +++ b/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmAbout.cs	Tue Dec 28 14:32:38 2010 +0000
     2.3 @@ -16,7 +16,7 @@
     2.4  			global::Stetic.Gui.Initialize(this);
     2.5  			// Widget IBBoard.WarFoundry.GUI.GTK.FrmAbout
     2.6  			this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmAbout";
     2.7 -			this.Title = global::Mono.Unix.Catalog.GetString("About WarFoundry");
     2.8 +			this.Title = global::Mono.Unix.Catalog.GetString("About WF");
     2.9  			this.TypeHint = ((global::Gdk.WindowTypeHint)(1));
    2.10  			this.WindowPosition = ((global::Gtk.WindowPosition)(4));
    2.11  			this.Resizable = false;
     3.1 --- a/gtk-gui/gui.stetic	Mon Dec 27 20:56:31 2010 +0000
     3.2 +++ b/gtk-gui/gui.stetic	Tue Dec 28 14:32:38 2010 +0000
     3.3 @@ -2017,7 +2017,7 @@
     3.4    </widget>
     3.5    <widget class="Gtk.Dialog" id="IBBoard.WarFoundry.GUI.GTK.FrmAbout" design-size="305 300">
     3.6      <property name="MemberName" />
     3.7 -    <property name="Title" translatable="yes">About WarFoundry</property>
     3.8 +    <property name="Title" translatable="yes">About WF</property>
     3.9      <property name="TypeHint">Dialog</property>
    3.10      <property name="WindowPosition">CenterOnParent</property>
    3.11      <property name="Resizable">False</property>
     4.1 --- a/translations/en.translation	Mon Dec 27 20:56:31 2010 +0000
     4.2 +++ b/translations/en.translation	Tue Dec 28 14:32:38 2010 +0000
     4.3 @@ -37,4 +37,5 @@
     4.4  <translation id="miReloadFiles">Reload files</translation>
     4.5  <translation id="miDebugWindow">Debug information</translation>
     4.6  <translation id="FrmNewUnit">Add New {0} Choice</translation>
     4.7 +<translation id="IBBoard.WarFoundry.GUI.GTK.FrmAbout">About WarFoundry</translation>	
     4.8  </translations>
     4.9 \ No newline at end of file