forked from GitHub/dbot
String translation exceptions in project
This commit is contained in:
parent
f3a5c00be8
commit
cd4b9460b1
@ -1,3 +1,13 @@
|
|||||||
{
|
{
|
||||||
"dependencies": ["web", "quotes", "github"]
|
"dependencies": ["web", "quotes", "github"],
|
||||||
|
"string_exceptions": [
|
||||||
|
"rdns",
|
||||||
|
"imgurinfo",
|
||||||
|
"xkcd",
|
||||||
|
"link",
|
||||||
|
"log_message",
|
||||||
|
"poll_describe",
|
||||||
|
"branch",
|
||||||
|
"oaosidl"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,10 @@ var project = function(dbot) {
|
|||||||
},
|
},
|
||||||
'translationProgress' : function(callback){
|
'translationProgress' : function(callback){
|
||||||
var translation = [] ;
|
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++){
|
for (var i = 0; i < str.length; i++){
|
||||||
var cur = _.keys(str[i]);
|
var cur = _.keys(str[i]);
|
||||||
for (var j = 0; j < cur.length; j++) {
|
for (var j = 0; j < cur.length; j++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user