comparison 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
comparison
equal deleted inserted replaced
100:88b5a0da73f2 101:3e78af88ceb3
49 { 49 {
50 int number = UnitEquipmentUtil.GetEquipmentAmountTaken(unit, item); 50 int number = UnitEquipmentUtil.GetEquipmentAmountTaken(unit, item);
51 51
52 if (amount == 100) 52 if (amount == 100)
53 { 53 {
54 amountString = Translation.GetTranslation("equipmentAmountAll", "all ({1})", amount, number); 54 amountString = Translation.GetTranslation("equipmentChoiceAmountAll", "all ({1})", amount, number);
55 } 55 }
56 else 56 else
57 { 57 {
58 amountString = Translation.GetTranslation("equipmentAmountPercentage", "{0}% ({1})", amount, number); 58 amountString = Translation.GetTranslation("equipmentChoiceAmountPercentage", "{0}% ({1})", amount, number);
59 } 59 }
60 } 60 }
61 else 61 else
62 { 62 {
63 amountString = amount.ToString(); 63 amountString = Translation.GetTranslation("equipmentChoiceAmountNumber", "{0}", amount);
64 } 64 }
65 65
66 return amountString; 66 return amountString;
67 } 67 }
68 68