Skip to content

Commit

Permalink
fix(i18n): correct use some strings, @lefnire I may have missed some …
Browse files Browse the repository at this point in the history
…of them, being the same messages for the whole group, we will keep them in english, anyway you can see how those should be fixed (outputting function(lang){....} instead of the value) is you encounter something else like this
  • Loading branch information
paglias committed May 7, 2014
1 parent 4990a6d commit 5666ced
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/models/group.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ GroupSchema.statics.collectQuest = function(user, progress, cb) {
});

var foundText = _.reduce(progress.collect, function(m,v,k){
m.push(v + ' ' + quest.collect[k].text);
m.push(v + ' ' + quest.collect[k].text('en'));
return m;
}, []);
foundText = foundText ? foundText.join(', ') : 'nothing';
Expand Down Expand Up @@ -221,7 +221,7 @@ GroupSchema.statics.bossQuest = function(user, progress, cb) {
var down = progress.down * quest.boss.str; // multiply by boss strength

group.quest.progress.hp -= progress.up;
group.sendChat("`" + user.profile.name + " attacks " + quest.boss.name + " for " + (progress.up.toFixed(1)) + " damage, " + quest.boss.name + " attacks party for " + Math.abs(down).toFixed(1) + " damage.`");
group.sendChat("`" + user.profile.name + " attacks " + quest.boss.name('en') + " for " + (progress.up.toFixed(1)) + " damage, " + quest.boss.name + " attacks party for " + Math.abs(down).toFixed(1) + " damage.`");

// Everyone takes damage
var series = [
Expand All @@ -232,7 +232,7 @@ GroupSchema.statics.bossQuest = function(user, progress, cb) {

// Boss slain, finish quest
if (group.quest.progress.hp <= 0) {
group.sendChat('`You defeated ' + quest.boss.name + '! Questing party members receive the rewards of victory.`');
group.sendChat('`You defeated ' + quest.boss.name('en') + '! Questing party members receive the rewards of victory.`');
// Participants: Grant rewards & achievements, finish quest
series.push(function(cb2){
group.finishQuest(quest,cb2);
Expand Down

0 comments on commit 5666ced

Please sign in to comment.