コード例 #1
0
def _formatCurrencyValue(currency, value):
    formatter = getBWFormatter(currency)
    return formatter(value)
コード例 #2
0
 def __makeGoldString(gold):
     if not gold:
         return ''
     formatter = getBWFormatter(Currency.GOLD)
     return g_settings.htmlTemplates.format(
         'battlePassGold', {Currency.GOLD: formatter(gold)})