diff FrmNewArmy.cs @ 85:bfb29a60b802

Re #308: Make GTK# UI translatable * Translate the bits of FrmNewArmy that can't be translated via cascade * Set up label names and translations for translating (need to get Stetic to use TranslatableLabel)
author IBBoard <dev@ibboard.co.uk>
date Wed, 29 Dec 2010 16:56:55 +0000
parents 9db2112b31d7
children 9515b57ba752
line wrap: on
line diff
--- a/FrmNewArmy.cs	Wed Dec 29 16:32:15 2010 +0000
+++ b/FrmNewArmy.cs	Wed Dec 29 16:56:55 2010 +0000
@@ -36,7 +36,7 @@
 			raceColumn.PackStart(raceCell, true);
 			lstRaces.AppendColumn(raceColumn);
 			raceColumn.SetCellDataFunc(raceCell, GtkWarFoundryUtil.RenderWarFoundryObjectName);
-			ControlTranslator.TranslateWidget(this);
+			Translate();
 			
 			if (gameSystem != null)
 			{
@@ -48,6 +48,13 @@
 			}
 		}
 
+		protected override void Translate()
+		{
+			base.Translate();
+			bttnCreate.Label = Translation.GetTranslation("bttnCreate", "create");
+			bttnCancel.Label = Translation.GetTranslation("bttnCancel", "cancel");
+		}
+
 		protected virtual void OnSelectionChanged(object o, EventArgs e)
 		{
 			logger.Debug("Race selection changed");