mirror of
				https://github.com/reality/dbot.git
				synced 2025-11-04 11:37:37 +01:00 
			
		
		
		
	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){
 | 
			
		||||
            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++) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user