From 465c636b5de9941cbf70468383a5a066c6e6360f Mon Sep 17 00:00:00 2001 From: Olexandr Nesterenko Date: Tue, 26 Aug 2014 16:57:25 +0300 Subject: [PATCH 1/4] Add new strings to localization --- script/events.js | 8 ++++---- script/localization.js | 9 +++++++-- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/script/events.js b/script/events.js index 4cebb0f..89709c9 100644 --- a/script/events.js +++ b/script/events.js @@ -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); diff --git a/script/localization.js b/script/localization.js index ec775c4..c97af4b 100644 --- a/script/localization.js +++ b/script/localization.js @@ -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.'), From 2db4e209d5d0999b500bdc135a4f1863f431dcb6 Mon Sep 17 00:00:00 2001 From: Olexandr Nesterenko Date: Thu, 28 Aug 2014 17:42:21 +0300 Subject: [PATCH 2/4] Add 'sulphur' to localization.js --- script/localization.js | 1 + 1 file changed, 1 insertion(+) diff --git a/script/localization.js b/script/localization.js index c97af4b..7604d4a 100644 --- a/script/localization.js +++ b/script/localization.js @@ -14,6 +14,7 @@ _('iron'), _('steel'), _('coal'), + _('sulphur'), _('enegy cell'), _('torch'), _('medicine'), From 9d25f0f736073e5abf0b3515a98340d6a7a8d751 Mon Sep 17 00:00:00 2001 From: Olexandr Nesterenko Date: Thu, 28 Aug 2014 18:18:52 +0300 Subject: [PATCH 3/4] Fix 'energy cell'. --- script/localization.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/localization.js b/script/localization.js index 7604d4a..4310d23 100644 --- a/script/localization.js +++ b/script/localization.js @@ -15,7 +15,7 @@ _('steel'), _('coal'), _('sulphur'), - _('enegy cell'), + _('energy cell'), _('torch'), _('medicine'), _('hunter'), From 2f66d79856eff2c452f5b9e20429623e0bd76843 Mon Sep 17 00:00:00 2001 From: Olexandr Nesterenko Date: Fri, 29 Aug 2014 09:24:19 +0300 Subject: [PATCH 4/4] =?UTF-8?q?Fix=20=C2=ABthe=20compass=20points=20...?= =?UTF-8?q?=C2=BB=20localization?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/localization.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/script/localization.js b/script/localization.js index 4310d23..989a93d 100644 --- a/script/localization.js +++ b/script/localization.js @@ -52,14 +52,14 @@ _('not enough cloth'), _('not enough teeth'), _('not enough leather'), - _('the compass points east.'), - _('the compass points west.'), - _('the compass points north.'), - _('the compass points south.'), - _('the compass points northeast.'), - _('the compass points northwest.'), - _('the compass points southeast.'), - _('the compass points southwest.') + _('the compass points east'), + _('the compass points west'), + _('the compass points north'), + _('the compass points south'), + _('the compass points northeast'), + _('the compass points northwest'), + _('the compass points southeast'), + _('the compass points southwest') ]; delete keywords;