def _formatCurrencyValue(currency, value): formatter = getBWFormatter(currency) return formatter(value)
def __makeGoldString(gold): if not gold: return '' formatter = getBWFormatter(Currency.GOLD) return g_settings.htmlTemplates.format( 'battlePassGold', {Currency.GOLD: formatter(gold)})