From 06c14d4fc54300cee127e29f92f1ed2e95f7ac2f Mon Sep 17 00:00:00 2001 From: reality Date: Thu, 23 May 2013 12:15:25 +0000 Subject: [PATCH] imgur info string [#462] --- modules/imgur/imgur.js | 2 +- modules/imgur/strings.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/imgur/imgur.js b/modules/imgur/imgur.js index 8e54d03..0be68c3 100644 --- a/modules/imgur/imgur.js +++ b/modules/imgur/imgur.js @@ -111,7 +111,7 @@ var imgur = function(dbot) { if(matches[1]) { this.api.getImageInfo(matches[1], function(imgData) { var info = this.internalAPI.infoString(imgData); - if(info) event.reply('[' + info + ']'); + if(info) event.reply(dbot.t('imgurinfo', { 'info': info }); }.bind(this)); } }.bind(this); diff --git a/modules/imgur/strings.json b/modules/imgur/strings.json index 869c806..9f1ca99 100644 --- a/modules/imgur/strings.json +++ b/modules/imgur/strings.json @@ -3,5 +3,8 @@ "en": "might be NSFW", "na'vi": "kxawm ke wivìntxu evengur", "nl": "bevat mogelijk gevoelige beelden" + }, + "imgurinfo": { + "en": "[{info}]" } }