Merge "Adding wildcard support to $wgCopyUploadsDomains"
[lhc/web/wiklou.git] / maintenance / language / checkLanguage.inc
index a8cb5af..11b00e1 100644 (file)
@@ -222,17 +222,17 @@ Parameters:
        --links: Link the message values (default off).
        --prefix: prefix to add to links.
        --wikilang: For the links, what is the content language of the wiki to display the output in (default en).
-       --noexif: Don't check for EXIF messages (a bit hard and boring to translate), if you know
+       --noexif: Do not 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).
        --whitelist: Do only the following checks (form: code,code).
-       --blacklist: Don't do the following checks (form: code,code).
+       --blacklist: Do not do the following checks (form: code,code).
        --easy: Do only the easy checks, which can be treated by non-speakers of the language.
 
 Check codes (ideally, all of them should result 0; all the checks are executed by default (except language-specific check blacklists in checkLanguage.inc):
        * untranslated: Messages which are required to translate, but are not translated.
        * duplicate: Messages which translation equal to fallback
        * obsolete: Messages which are untranslatable or do not exist, but are translated.
-       * variables: Messages without variables which should be used, or with variables which shouldn't be used.
+       * variables: Messages without variables which should be used, or with variables which should not be used.
        * empty: Empty messages and messages that contain only -.
        * whitespace: Messages which have trailing whitespace.
        * xhtml: Messages which are not well-formed XHTML (checks only few common errors).
@@ -402,7 +402,6 @@ ENDS;
         * Output the checks results as wiki text.
         */
        function outputWiki() {
-               global $wgContLang;
                $detailText = '';
                $rows[] = '! Language !! Code !! Total !! ' . implode( ' !! ', array_diff( $this->checks, $this->nonMessageChecks() ) );
                foreach ( $this->results as $code => $results ) {
@@ -438,7 +437,7 @@ ENDS;
                                # Don't list languages without problems
                                continue;
                        }
-                       $language = $wgContLang->getLanguageName( $code );
+                       $language = Language::fetchLanguageName( $code );
                        $rows[] = "| $language || $code || $problems || " . implode( ' || ', $numbers );
                }