diff Translatable/TranslatableDialog.cs @ 24:3da8cf449717

Re #47: Add translatable GTK# widgets * Add "Translate" methods to dialog and window to make them easily translatable without having to remember the required call
author IBBoard <dev@ibboard.co.uk>
date Wed, 29 Dec 2010 16:47:46 +0000
parents c9aeaeaa3ea2
children
line wrap: on
line diff
--- a/Translatable/TranslatableDialog.cs	Tue Dec 28 20:18:46 2010 +0000
+++ b/Translatable/TranslatableDialog.cs	Wed Dec 29 16:47:46 2010 +0000
@@ -9,6 +9,11 @@
 {
 	public abstract class TranslatableDialog : Dialog, ITranslatable
 	{
+		protected virtual void Translate()
+		{
+			ControlTranslator.TranslateWidget(this);
+		}
+
 		public string Text
 		{
 			get