From 059768592a5a57262262cbcf3d35abc37cec81d9 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Sat, 19 May 2012 17:36:21 +0100 Subject: [PATCH] Changed most of the English output strings to formatted strings. --- modules/autoshorten.js | 2 +- modules/command.js | 36 ++++++++++-------------------------- modules/kick.js | 8 +++++--- strings.json | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 49 insertions(+), 30 deletions(-) diff --git a/modules/autoshorten.js b/modules/autoshorten.js index 02be309..ff4fc90 100644 --- a/modules/autoshorten.js +++ b/modules/autoshorten.js @@ -24,7 +24,7 @@ var autoshorten = function(dbot) { http.get(options, function(res) { res.setEncoding('utf8'); res.on('data', function (response) { - dbot.say(data.channel, 'Shortened link from ' + data.user + ': ' + JSON.parse(response).surl); + dbot.say(data.channel, dbot.t('shorten_link', {'user': data.user}) + JSON.parse(response).surl); }); }); } diff --git a/modules/command.js b/modules/command.js index b23f25a..1da6b65 100644 --- a/modules/command.js +++ b/modules/command.js @@ -14,14 +14,9 @@ var command = function(dbot) { } } - var usageString = 'Usage: ~ignore [module]. Modules you can ignore are: '; - for(var i=0;i