Mercurial > repos > IBBoard.WarFoundry.GUI.GTK
comparison FrmNewArmy.cs @ 86:9515b57ba752
Re #308: Make GTK# UI translatable
* Make form buttons translatable using new method
* Swap "Create" button to a stock "OK" so that we don't lose the image on translation
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 29 Dec 2010 19:41:51 +0000 |
parents | bfb29a60b802 |
children | b4416ca69153 |
comparison
equal
deleted
inserted
replaced
85:bfb29a60b802 | 86:9515b57ba752 |
---|---|
49 } | 49 } |
50 | 50 |
51 protected override void Translate() | 51 protected override void Translate() |
52 { | 52 { |
53 base.Translate(); | 53 base.Translate(); |
54 bttnCreate.Label = Translation.GetTranslation("bttnCreate", "create"); | 54 ControlTranslator.TranslateButtons(bttnCreate, bttnCancel); |
55 bttnCancel.Label = Translation.GetTranslation("bttnCancel", "cancel"); | |
56 } | 55 } |
57 | 56 |
58 protected virtual void OnSelectionChanged(object o, EventArgs e) | 57 protected virtual void OnSelectionChanged(object o, EventArgs e) |
59 { | 58 { |
60 logger.Debug("Race selection changed"); | 59 logger.Debug("Race selection changed"); |