Add new strings to localization

This commit is contained in:
Olexandr Nesterenko
2014-08-26 16:57:25 +03:00
parent a2753511d4
commit 465c636b5d
2 changed files with 11 additions and 6 deletions
+4 -4
View File
@@ -341,7 +341,7 @@ var Events = {
var msg = "";
if(typeof dmg == 'number') {
if(dmg < 0) {
msg = 'miss';
msg = _('miss');
dmg = 0;
} else {
msg = '-' + dmg;
@@ -354,7 +354,7 @@ var Events = {
}
} else {
if(dmg == 'stun') {
msg = 'stunned';
msg = _('stunned');
enemy.data('stunned', true);
setTimeout(function() {
enemy.data('stunned', false);
@@ -386,7 +386,7 @@ var Events = {
var msg = "";
if(typeof dmg == 'number') {
if(dmg < 0) {
msg = 'miss';
msg = _('miss');
dmg = 0;
} else {
msg = '-' + dmg;
@@ -399,7 +399,7 @@ var Events = {
}
} else {
if(dmg == 'stun') {
msg = 'stunned';
msg = _('stunned');
enemy.data('stunned', true);
setTimeout(function() {
enemy.data('stunned', false);
+7 -2
View File
@@ -24,8 +24,12 @@
_('bolas'),
_("charcutier"),
_('iron miner'),
_('iron mine'),
_('coal miner'),
_('sulphur miner'), _('armourer'),
_('coal mine'),
_('sulphur miner'),
_('sulphur mine'),
_('armourer'),
_('steelworker'),
_('bait'),
_('cured meat'),
@@ -44,7 +48,8 @@
_('not enough steel'),
_('baited trap'),
_('not enough scales'),
_('not enough cloth'), _('not enough teeth'),
_('not enough cloth'),
_('not enough teeth'),
_('not enough leather'),
_('the compass points east.'),
_('the compass points west.'),