Merge pull request #142 from burunduk/new-string

Add new strings to localization
This commit is contained in:
Michael Townsend
2014-08-30 17:35:23 -04:00
2 changed files with 21 additions and 15 deletions
+4 -4
View File
@@ -341,7 +341,7 @@ var Events = {
var msg = ""; var msg = "";
if(typeof dmg == 'number') { if(typeof dmg == 'number') {
if(dmg < 0) { if(dmg < 0) {
msg = 'miss'; msg = _('miss');
dmg = 0; dmg = 0;
} else { } else {
msg = '-' + dmg; msg = '-' + dmg;
@@ -354,7 +354,7 @@ var Events = {
} }
} else { } else {
if(dmg == 'stun') { if(dmg == 'stun') {
msg = 'stunned'; msg = _('stunned');
enemy.data('stunned', true); enemy.data('stunned', true);
setTimeout(function() { setTimeout(function() {
enemy.data('stunned', false); enemy.data('stunned', false);
@@ -386,7 +386,7 @@ var Events = {
var msg = ""; var msg = "";
if(typeof dmg == 'number') { if(typeof dmg == 'number') {
if(dmg < 0) { if(dmg < 0) {
msg = 'miss'; msg = _('miss');
dmg = 0; dmg = 0;
} else { } else {
msg = '-' + dmg; msg = '-' + dmg;
@@ -399,7 +399,7 @@ var Events = {
} }
} else { } else {
if(dmg == 'stun') { if(dmg == 'stun') {
msg = 'stunned'; msg = _('stunned');
enemy.data('stunned', true); enemy.data('stunned', true);
setTimeout(function() { setTimeout(function() {
enemy.data('stunned', false); enemy.data('stunned', false);
+17 -11
View File
@@ -14,7 +14,8 @@
_('iron'), _('iron'),
_('steel'), _('steel'),
_('coal'), _('coal'),
_('enegy cell'), _('sulphur'),
_('energy cell'),
_('torch'), _('torch'),
_('medicine'), _('medicine'),
_('hunter'), _('hunter'),
@@ -24,8 +25,12 @@
_('bolas'), _('bolas'),
_("charcutier"), _("charcutier"),
_('iron miner'), _('iron miner'),
_('iron mine'),
_('coal miner'), _('coal miner'),
_('sulphur miner'), _('armourer'), _('coal mine'),
_('sulphur miner'),
_('sulphur mine'),
_('armourer'),
_('steelworker'), _('steelworker'),
_('bait'), _('bait'),
_('cured meat'), _('cured meat'),
@@ -44,16 +49,17 @@
_('not enough steel'), _('not enough steel'),
_('baited trap'), _('baited trap'),
_('not enough scales'), _('not enough scales'),
_('not enough cloth'), _('not enough teeth'), _('not enough cloth'),
_('not enough teeth'),
_('not enough leather'), _('not enough leather'),
_('the compass points east.'), _('the compass points east'),
_('the compass points west.'), _('the compass points west'),
_('the compass points north.'), _('the compass points north'),
_('the compass points south.'), _('the compass points south'),
_('the compass points northeast.'), _('the compass points northeast'),
_('the compass points northwest.'), _('the compass points northwest'),
_('the compass points southeast.'), _('the compass points southeast'),
_('the compass points southwest.') _('the compass points southwest')
]; ];
delete keywords; delete keywords;