String translation exceptions in project

This commit is contained in:
reality 2013-06-06 17:27:56 +00:00
parent f3a5c00be8
commit cd4b9460b1
2 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,13 @@
{
"dependencies": ["web", "quotes", "github"]
"dependencies": ["web", "quotes", "github"],
"string_exceptions": [
"rdns",
"imgurinfo",
"xkcd",
"link",
"log_message",
"poll_describe",
"branch",
"oaosidl"
]
}

View File

@ -44,7 +44,10 @@ var project = function(dbot) {
},
'translationProgress' : function(callback){
var translation = [] ;
var str = _.values(dbot.strings);
var str = _.filter(dbot.strings, function(strings, key) {
return _.include(this.config.string_exceptions, key) != true;
}, this);
str = _.values(str);
for (var i = 0; i < str.length; i++){
var cur = _.keys(str[i]);
for (var j = 0; j < cur.length; j++) {