improve(i18n): move potion to strings, add content.json for generic content

This commit is contained in:
Matteo Pagliazzi 2014-03-06 17:21:26 +01:00
parent fdfbd17cf7
commit 85d0ebbc8e
3 changed files with 11 additions and 3 deletions

View file

@ -11255,8 +11255,12 @@ _.each(gearTypes, function(type) {
api.potion = {
type: 'potion',
text: "Health Potion",
notes: "Recover 15 Health (Instant Use)",
text: (function() {
return i18n.t('potionText');
}),
notes: (function() {
return i18n.t('potionNotes');
}),
value: 25,
key: 'potion'
};

4
locales/en/content.json Normal file
View file

@ -0,0 +1,4 @@
{
"potionText": "Potion",
"potionNotes": "Recover 15 Health (Instant Use)"
}

View file

@ -300,7 +300,7 @@ _.each gearTypes, (type) ->
---------------------------------------------------------------
###
api.potion = type: 'potion', text: "Health Potion", notes: "Recover 15 Health (Instant Use)", value: 25, key: 'potion'
api.potion = type: 'potion', text: (-> i18n.t('potionText')), notes: (-> i18n.t('potionNotes')), value: 25, key: 'potion'
###
---------------------------------------------------------------