Mercurial > repos > IBBoard.WarFoundry.GUI.GTK
comparison FrmEditEquipment.cs @ 96:b4416ca69153
Fixes #309: Add initial preference dialog with language support
* Hook up events so that everything translates itself when languages change
Re #308: Make GTK# UI translatable
* Update English and French translations (using Google Translate)
* Begin to standardise on WinForms names for widgets for maximum reusability of translation files
* Make some preference and credit buttons translatable
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 02 Jan 2011 15:12:31 +0000 |
parents | 58779fcd0166 |
children | 6d2c8ad0d8f1 |
comparison
equal
deleted
inserted
replaced
95:ea4069bbe6e9 | 96:b4416ca69153 |
---|---|
26 private bool isRatioLimited; | 26 private bool isRatioLimited; |
27 | 27 |
28 public FrmEditEquipment() | 28 public FrmEditEquipment() |
29 { | 29 { |
30 this.Build(); | 30 this.Build(); |
31 Translation.TranslationChanged += Retranslate; | |
31 Translate(); | 32 Translate(); |
33 } | |
34 | |
35 private void Retranslate() | |
36 { | |
37 Translate(); | |
38 } | |
39 | |
40 public override void Dispose() | |
41 { | |
42 Translation.TranslationChanged -= Retranslate; | |
43 base.Dispose(); | |
32 } | 44 } |
33 | 45 |
34 public void ListenToWidgets() | 46 public void ListenToWidgets() |
35 { | 47 { |
36 rbEquipAll.Clicked += RadioButtonClicked; | 48 rbEquipAll.Clicked += RadioButtonClicked; |