MediaWiki
1.30.0
|
Public Member Functions | |
__construct (array $options) | |
execute () | |
Execute the script. More... | |
outputWiki () | |
Output the checks results as wiki text. More... | |
Protected Member Functions | |
checkLanguage ( $code) | |
Check a language. More... | |
defaultChecks () | |
Get the default checks. More... | |
doChecks () | |
Execute the checks. More... | |
easyChecks () | |
Get the checks that can easily be treated by non-speakers of the language. More... | |
formatKey ( $key, $code) | |
Format a message key. More... | |
getCheckBlacklist () | |
Get the check blacklist. More... | |
getChecks () | |
Get all checks. More... | |
getDescriptions () | |
Get all check descriptions. More... | |
getTotalCount () | |
Get total count for each check non-messages check. More... | |
help () | |
Get help. More... | |
isCheckBlacklisted ( $check, $code, $message) | |
Verify whether a check is blacklisted. More... | |
isEmpty () | |
Check if there are any results for the checks, in any language. More... | |
nonMessageChecks () | |
Get the checks which check other things than messages. More... | |
outputText () | |
Output the checks results as plain text. More... | |
Protected Attributes | |
$checkAll = false | |
$checks = [] | |
$code = null | |
$doLinks = false | |
$L = null | |
$level = 2 | |
$linksPrefix = '' | |
$output = 'plain' | |
$results = [] | |
$wikiCode = 'en' | |
Private Attributes | |
$includeExif = false | |
Definition at line 27 of file checkLanguage.inc.
CheckLanguageCLI::__construct | ( | array | $options | ) |
array | $options | Options for script. |
Definition at line 45 of file checkLanguage.inc.
References $options, $wgLanguageCode, code, defaultChecks(), easyChecks(), global, help(), and output().
|
protected |
Check a language.
string | $code | The language code. |
MWException |
Reimplemented in CheckExtensionsCLI.
Definition at line 384 of file checkLanguage.inc.
References $code, $L, $results, as, getChecks(), and isCheckBlacklisted().
Referenced by doChecks(), and help().
|
protected |
Get the default checks.
Reimplemented in CheckExtensionsCLI.
Definition at line 98 of file checkLanguage.inc.
Referenced by __construct().
|
protected |
Execute the checks.
Definition at line 293 of file checkLanguage.inc.
References $checks, $code, $messages, $results, as, checkLanguage(), code, and isCheckBlacklisted().
Referenced by execute().
|
protected |
Get the checks that can easily be treated by non-speakers of the language.
Reimplemented in CheckExtensionsCLI.
Definition at line 122 of file checkLanguage.inc.
Referenced by __construct().
CheckLanguageCLI::execute | ( | ) |
Execute the script.
Reimplemented in CheckExtensionsCLI.
Definition at line 274 of file checkLanguage.inc.
References doChecks(), output(), outputText(), and outputWiki().
|
protected |
Format a message key.
string | $key | The message key. |
string | $code | The language code. |
Definition at line 416 of file checkLanguage.inc.
References $code.
Referenced by outputText().
|
protected |
Get the check blacklist.
Definition at line 328 of file checkLanguage.inc.
References $checkBlacklist, global, and Hooks\run().
Referenced by isCheckBlacklisted().
|
protected |
Get all checks.
Definition at line 133 of file checkLanguage.inc.
Referenced by checkLanguage().
|
protected |
Get all check descriptions.
Definition at line 180 of file checkLanguage.inc.
Referenced by outputText().
|
protected |
Get total count for each check non-messages check.
Definition at line 163 of file checkLanguage.inc.
Referenced by outputText().
|
protected |
Get help.
Reimplemented in CheckExtensionsCLI.
Definition at line 212 of file checkLanguage.inc.
References a, add, and(), are, captcha-old\blacklist, broken, by, check, checkLanguage(), code, complete, contains, content, display, errors, file, following, form, headers, in, is(), language(), line, links, list, message, messages, names, not, of, on, or, original, other(), output(), page, pages, project, script(), settings, Special, that, them, they, Makefile\translate(), used, value, values, well, were, wiki, captcha-old\words, and you.
Referenced by __construct().
|
protected |
Verify whether a check is blacklisted.
string | $check | Check name |
string | $code | Language code |
string | bool | $message | Message name, or False for a whole language |
Definition at line 354 of file checkLanguage.inc.
References $code, as, and getCheckBlacklist().
Referenced by checkLanguage(), and doChecks().
|
protected |
Check if there are any results for the checks, in any language.
Definition at line 539 of file checkLanguage.inc.
|
protected |
Get the checks which check other things than messages.
Reimplemented in CheckExtensionsCLI.
Definition at line 111 of file checkLanguage.inc.
Referenced by outputText(), and outputWiki().
|
protected |
Output the checks results as plain text.
Definition at line 432 of file checkLanguage.inc.
References $code, $L, $messages, $results, $value, as, captcha-old\count, formatKey(), getDescriptions(), getTotalCount(), and nonMessageChecks().
Referenced by execute().
CheckLanguageCLI::outputWiki | ( | ) |
Output the checks results as wiki text.
Definition at line 477 of file checkLanguage.inc.
References $code, $messages, $results, $rows, as, and nonMessageChecks().
Referenced by execute().
|
protected |
Definition at line 33 of file checkLanguage.inc.
|
protected |
Definition at line 35 of file checkLanguage.inc.
Referenced by doChecks().
|
protected |
Definition at line 28 of file checkLanguage.inc.
Referenced by checkLanguage(), doChecks(), formatKey(), isCheckBlacklisted(), outputText(), and outputWiki().
|
protected |
Definition at line 30 of file checkLanguage.inc.
|
private |
Definition at line 40 of file checkLanguage.inc.
|
protected |
Definition at line 36 of file checkLanguage.inc.
Referenced by checkLanguage(), and outputText().
|
protected |
Definition at line 29 of file checkLanguage.inc.
|
protected |
Definition at line 31 of file checkLanguage.inc.
|
protected |
Definition at line 34 of file checkLanguage.inc.
|
protected |
Definition at line 38 of file checkLanguage.inc.
Referenced by checkLanguage(), doChecks(), isEmpty(), outputText(), and outputWiki().
|
protected |
Definition at line 32 of file checkLanguage.inc.