Mercurial > repos > IBBoard.GtkSharp
view 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 source
// This file (TranslatableDialog.cs) is a part of the IBBoard.GtkSharp project and is copyright 2010 IBBoard // // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU LGPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license. using Gtk; using IBBoard.Lang; namespace IBBoard.GtkSharp.Translatable { public abstract class TranslatableDialog : Dialog, ITranslatable { protected virtual void Translate() { ControlTranslator.TranslateWidget(this); } public string Text { get { return Title; } set { Title = value; } } } }