Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
comparison FrmAbout.cs @ 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 | 68804784bf6f |
children | e40d892a2298 |
comparison
equal
deleted
inserted
replaced
79:592930d28da4 | 80:9c9af2ce8c43 |
---|---|
2 // | 2 // |
3 // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license. | 3 // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license. |
4 | 4 |
5 using System; | 5 using System; |
6 using Gtk; | 6 using Gtk; |
7 using IBBoard.GtkSharp.Translatable; | |
7 | 8 |
8 namespace IBBoard.WarFoundry.GUI.GTK | 9 namespace IBBoard.WarFoundry.GUI.GTK |
9 { | 10 { |
10 public partial class FrmAbout : Gtk.Dialog | 11 public partial class FrmAbout : TranslatableDialog |
11 { | 12 { |
12 private static FrmAbout frm; | 13 private static FrmAbout frm; |
13 | 14 |
14 public static FrmAbout GetForm() | 15 public static FrmAbout GetForm() |
15 { | 16 { |
22 } | 23 } |
23 | 24 |
24 private FrmAbout() | 25 private FrmAbout() |
25 { | 26 { |
26 this.Build(); | 27 this.Build(); |
28 ControlTranslator.TranslateWidget(this); | |
27 } | 29 } |
28 | 30 |
29 protected virtual void OkayClicked(object sender, System.EventArgs e) | 31 protected virtual void OkayClicked(object sender, System.EventArgs e) |
30 { | 32 { |
31 Respond(ResponseType.Ok); | 33 Respond(ResponseType.Ok); |