Ticket #3698: 3698_2.patch
File 3698_2.patch, 1.6 KB (added by , 15 years ago) |
---|
-
_source/includes/cklangtool.js
581 581 CKLANGTOOL.englishTranslation = result.translation; 582 582 583 583 var children = CKLANGTOOL.languageDir.list(); 584 var errors, file, status = [];584 var errors, file, status = {}, languages = []; 585 585 var foundFiles = false; 586 586 587 587 for ( var i = 0 ; i < children.length ; i++ ) … … 605 605 result = processFile( file ); 606 606 checkFile( file ); 607 607 608 status.push( padRight( children[ i ], 12 ) + "Found: " + result.found + " Missing: " + result.missing ); 608 languages.push( children[ i ] ); 609 status[ children[ i ] ] = padRight( children[ i ], 12 ) + "Found: " + result.found + " Missing: " + result.missing; 609 610 foundFiles = true; 610 611 } 611 612 } … … 617 618 618 619 var header = "Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.\r\nFor licensing, see LICENSE.html or http://ckeditor.com/license\r\n\r\n"; 619 620 620 CKLANGTOOL.io.saveFile( new File( CKLANGTOOL.languageDir, "_translationstatus.txt" ), header + status.join( "\r\n" ) + "\r\n", false ); 621 languages.sort(); 622 var output = []; 623 for ( i = 0 ; i < languages.length ; i++) 624 { 625 output.push( status[ languages[ i ] ] ); 626 } 627 628 CKLANGTOOL.io.saveFile( new File( CKLANGTOOL.languageDir, "_translationstatus.txt" ), header + output.join( "\r\n" ) + "\r\n", false ); 621 629 print( "Process completed." ); 622 630 } 623 631 };