forked from GitHub/dbot
add color to up/downvotes; move NSFW to strings
Orange isn't a color widely available on IRC clients, so green has been substituted. "NSFW" is fairly transcendal when it comes to languages; Catalan, French, and German generally do not seem to localise the abbreviation. However, it has been moved to strings.json on the off chance that a better translation arises. This commit has not been tested. Merge at your own risk.
This commit is contained in:
parent
66de9992f8
commit
541e6a1798
@ -69,7 +69,7 @@ var reddit = function(dbot) {
|
||||
'up': info.ups,
|
||||
'down': info.downs
|
||||
});
|
||||
if(info.over_18) infoString += ' [NSFW]';
|
||||
if(info.over_18) infoString += " " + dbot.t("nsfw");
|
||||
event.reply(infoString);
|
||||
}
|
||||
});
|
||||
@ -85,7 +85,7 @@ var reddit = function(dbot) {
|
||||
'down': info.downs,
|
||||
'url': this.ApiRoot + matches[4]
|
||||
});
|
||||
if(info.over_18) infoString += ' [NSFW]';
|
||||
if(info.over_18) infoString += " " + dbot.t("nsfw");
|
||||
event.reply(infoString);
|
||||
}
|
||||
}.bind(this));
|
||||
@ -97,7 +97,7 @@ var reddit = function(dbot) {
|
||||
'subscribers': info.subscribers,
|
||||
'active': info.accounts_active
|
||||
});
|
||||
if(info.over18) infoString += ' [NSFW]';
|
||||
if(info.over18) infoString += dbot.t("nsfw");
|
||||
event.reply(infoString);
|
||||
}
|
||||
});
|
||||
|
@ -3,9 +3,12 @@
|
||||
"en": "[{display_name} has {subscribers} subscribers ({active} active)]"
|
||||
},
|
||||
"about_post": {
|
||||
"en": "[Post by {poster} in {subreddit} - Comments: {comments}, Score: {score} ({up}|{down})] - {url}"
|
||||
"en": "[Post by {poster} in {subreddit} — Comments: {comments}, Score: {score} (\u00039▲{up}\u0015|\u000312{down}▼\u0015)] — {url}"
|
||||
},
|
||||
"about_comment": {
|
||||
"en": "[Comment by {poster} in {subreddit} - Score: {score} ({up}|{down})]"
|
||||
"en": "[Comment by {poster} in {subreddit} — Score: {score} (\u00039▲{up}\u0015|\u000312{down}▼\u0015)]"
|
||||
}
|
||||
"nsfw": {
|
||||
"en": "[NSFW]"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user