From: Rotem Liss Date: Thu, 21 Aug 2008 19:15:40 +0000 (+0000) Subject: Add duplicate check to the default checks: Now that messages may be makred as optiona... X-Git-Tag: 1.31.0-rc.0~45735 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=bb133a34187429773215b905fd2e6e219351ee01;p=lhc%2Fweb%2Fwiklou.git Add duplicate check to the default checks: Now that messages may be makred as optional, every message not marked as such should be translated. --- diff --git a/maintenance/language/checkLanguage.inc b/maintenance/language/checkLanguage.inc index 2cfd1b049b..44b9159b17 100644 --- a/maintenance/language/checkLanguage.inc +++ b/maintenance/language/checkLanguage.inc @@ -14,8 +14,8 @@ class CheckLanguageCLI { 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 @@ class CheckLanguageCLI { $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 @@ Parameters: * 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.