def getI18nValue(self):
     maxValue = RECORD_MAX_VALUES.get(self.getRecordName())
     if maxValue is not None and self._value >= maxValue:
         return i18n.makeString('#achievements:achievement/maxMedalValue'
                                ) % BigWorld.wg_getIntegralFormat(maxValue -
                                                                  1)
     return BigWorld.wg_getIntegralFormat(self._value)
示例#2
0
 def getI18nValue(self):
     maxValue = RECORD_MAX_VALUES.get(self.getRecordName())
     if maxValue is not None and self._value >= maxValue:
         return i18n.makeString('#achievements:achievement/maxMedalValue') % BigWorld.wg_getIntegralFormat(maxValue - 1)
     return BigWorld.wg_getIntegralFormat(self._value)