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
+6 -2
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
View File
@@ -0,0 +1,4 @@
{
"potionText": "Potion",
"potionNotes": "Recover 15 Health (Instant Use)"
}
+1 -1
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'
###
---------------------------------------------------------------