Fixes Gem Display in modals to say [Gem] You have [n] Gems
Modified code to use a translatable string!
Thanks for the tip :)
This commit is contained in:
Bryce Wojtowicz 2015-02-22 13:35:46 +08:00
parent 6d38086b66
commit 44478d3792
2 changed files with 2 additions and 2 deletions

View file

@ -38,6 +38,7 @@
"alreadyHave": "Whoops! You already have this item. No need to buy it again!",
"delete": "Delete",
"gems": "Gems",
"gemButton": "You have <%= number %> Gems.",
"moreInfo": "More Info",
"gemsWhatFor": "Purchased using real money. Used for buying special items and services (eggs, hatching potions, Fortify, etc.). You'll need to unlock those features before being able to use Gems.",
"veteran": "Veteran",

View file

@ -4,8 +4,7 @@ mixin gemButton(isGemsModal)
span.task-action-btn.tile.flush.bright.add-gems-btn
span.task-action-btn.tile.flush.neutral
.Pet_Currency_Gem2x.Gems
| {{user.balance * 4 | number:0}}
=env.t('gems')
=env.t('gemButton', {number: '{{user.balance * 4 | number:0}}'})
mixin aLink(url, label)
if mobile