Mercurial > repos > IBBoard.WarFoundry.GUI.WinForms
diff Util/UnitEquipmentChoice.cs @ 101:3e78af88ceb3
Re #179: Make sure that translations are used throughout UI
* Intermediary fix for locations in the UI for amount translations
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 21 Nov 2009 21:27:39 +0000 |
parents | acaea18ac0a1 |
children | 1ca23c47345a |
line wrap: on
line diff
--- a/Util/UnitEquipmentChoice.cs Sat Nov 21 20:17:10 2009 +0000 +++ b/Util/UnitEquipmentChoice.cs Sat Nov 21 21:27:39 2009 +0000 @@ -51,16 +51,16 @@ if (amount == 100) { - amountString = Translation.GetTranslation("equipmentAmountAll", "all ({1})", amount, number); + amountString = Translation.GetTranslation("equipmentChoiceAmountAll", "all ({1})", amount, number); } else { - amountString = Translation.GetTranslation("equipmentAmountPercentage", "{0}% ({1})", amount, number); + amountString = Translation.GetTranslation("equipmentChoiceAmountPercentage", "{0}% ({1})", amount, number); } } else { - amountString = amount.ToString(); + amountString = Translation.GetTranslation("equipmentChoiceAmountNumber", "{0}", amount); } return amountString;