
rotem at svn
Aug 21, 2008, 12:15 PM
Views: 87
Permalink
|
|
SVN: [39780] trunk/phase3/maintenance/language/checkLanguage.inc
|
|
Revision: 39780 Author: rotem Date: 2008-08-21 19:15:40 +0000 (Thu, 21 Aug 2008) Log Message: ----------- Add duplicate check to the default checks: Now that messages may be makred as optional, every message not marked as such should be translated. Modified Paths: -------------- trunk/phase3/maintenance/language/checkLanguage.inc Modified: trunk/phase3/maintenance/language/checkLanguage.inc =================================================================== --- trunk/phase3/maintenance/language/checkLanguage.inc 2008-08-21 19:13:33 UTC (rev 39779) +++ trunk/phase3/maintenance/language/checkLanguage.inc 2008-08-21 19:15:40 UTC (rev 39780) @@ -14,8 +14,8 @@ protected $L = null; protected $defaultChecks = array( - 'untranslated', 'obsolete', 'variables', 'empty', 'plural', - 'whitespace', 'xhtml', 'chars', 'links', 'unbalanced' + 'untranslated', 'duplicate', 'obsolete', 'variables', 'empty', 'plural', + 'whitespace', 'xhtml', 'chars', 'links', 'unbalanced', ); protected $results = array(); @@ -66,11 +66,6 @@ $this->output = $options['output']; } - # Some additional checks not enabled by default - if ( isset( $options['duplicate'] ) ) { - $this->checks[] = 'duplicate'; - } - $this->L = new languages( $this->includeExif ); } @@ -119,7 +114,6 @@ * wikilang: For the links, what is the content language of the wiki to display the output in (default en). * whitelist: Do only the following checks (form: code,code). * blacklist: Don't do the following checks (form: code,code). - * duplicate: Additionally check for messages which are translated the same to English (default off). * noexif: Don't check for EXIF messages (a bit hard and boring to translate), if you know that they are currently not translated and want to focus on other problems (default off). Check codes (ideally, all of them should result 0; all the checks are executed by default (except duplicate and language specific check blacklists in checkLanguage.inc): * untranslated: Messages which are required to translate, but are not translated. _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS[at]lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs
|