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 wrap: on
line diff
--- a/FrmAbout.cs	Mon Dec 27 20:56:31 2010 +0000
+++ b/FrmAbout.cs	Tue Dec 28 14:32:38 2010 +0000
@@ -4,10 +4,11 @@
 
 using System;
 using Gtk;
+using IBBoard.GtkSharp.Translatable;
 
 namespace IBBoard.WarFoundry.GUI.GTK
 {
-	public partial class FrmAbout : Gtk.Dialog
+	public partial class FrmAbout : TranslatableDialog
 	{
 		private static FrmAbout frm;
 
@@ -24,6 +25,7 @@
 		private FrmAbout()
 		{
 			this.Build();
+			ControlTranslator.TranslateWidget(this);
 		}
 
 		protected virtual void OkayClicked(object sender, System.EventArgs e)
--- a/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmAbout.cs	Mon Dec 27 20:56:31 2010 +0000
+++ b/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmAbout.cs	Tue Dec 28 14:32:38 2010 +0000
@@ -16,7 +16,7 @@
 			global::Stetic.Gui.Initialize(this);
 			// Widget IBBoard.WarFoundry.GUI.GTK.FrmAbout
 			this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmAbout";
-			this.Title = global::Mono.Unix.Catalog.GetString("About WarFoundry");
+			this.Title = global::Mono.Unix.Catalog.GetString("About WF");
 			this.TypeHint = ((global::Gdk.WindowTypeHint)(1));
 			this.WindowPosition = ((global::Gtk.WindowPosition)(4));
 			this.Resizable = false;
--- a/gtk-gui/gui.stetic	Mon Dec 27 20:56:31 2010 +0000
+++ b/gtk-gui/gui.stetic	Tue Dec 28 14:32:38 2010 +0000
@@ -2017,7 +2017,7 @@
   </widget>
   <widget class="Gtk.Dialog" id="IBBoard.WarFoundry.GUI.GTK.FrmAbout" design-size="305 300">
     <property name="MemberName" />
-    <property name="Title" translatable="yes">About WarFoundry</property>
+    <property name="Title" translatable="yes">About WF</property>
     <property name="TypeHint">Dialog</property>
     <property name="WindowPosition">CenterOnParent</property>
     <property name="Resizable">False</property>
--- a/translations/en.translation	Mon Dec 27 20:56:31 2010 +0000
+++ b/translations/en.translation	Tue Dec 28 14:32:38 2010 +0000
@@ -37,4 +37,5 @@
 <translation id="miReloadFiles">Reload files</translation>
 <translation id="miDebugWindow">Debug information</translation>
 <translation id="FrmNewUnit">Add New {0} Choice</translation>
+<translation id="IBBoard.WarFoundry.GUI.GTK.FrmAbout">About WarFoundry</translation>	
 </translations>
\ No newline at end of file