Mercurial > repos > IBBoard.GtkSharp
comparison 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 |
comparison
equal
deleted
inserted
replaced
23:ae37467335ae | 24:3da8cf449717 |
---|---|
7 | 7 |
8 namespace IBBoard.GtkSharp.Translatable | 8 namespace IBBoard.GtkSharp.Translatable |
9 { | 9 { |
10 public abstract class TranslatableDialog : Dialog, ITranslatable | 10 public abstract class TranslatableDialog : Dialog, ITranslatable |
11 { | 11 { |
12 protected virtual void Translate() | |
13 { | |
14 ControlTranslator.TranslateWidget(this); | |
15 } | |
16 | |
12 public string Text | 17 public string Text |
13 { | 18 { |
14 get | 19 get |
15 { | 20 { |
16 return Title; | 21 return Title; |