Go to the documentation of this file.
30 $return = sprintf(
'%.' . $accuracy .
'f%%', 100 * $subset /
$total );
35 # Override the following methods
55 global $wgDummyLanguageCodes;
57 echo
"'''Statistics are based on:''' <code>" .
$version .
"</code>\n\n";
58 echo
"'''Note:''' These statistics can be generated by running " .
59 "<code>php maintenance/language/transstat.php</code>.\n\n";
60 echo
"For additional information on specific languages (the message names, the actual " .
61 "problems, etc.), run <code>php maintenance/language/checkLanguage.php --lang=foo</code>.\n\n";
62 echo
'English (en) is excluded because it is the default localization';
63 if ( is_array( $wgDummyLanguageCodes ) ) {
64 $dummyCodes =
array();
65 foreach ( $wgDummyLanguageCodes
as $dummyCode => $correctCode ) {
68 echo
', as well as the following languages that are not intended for ' .
69 'system message translations, usually because they redirect to other ' .
70 'language codes: ' . implode(
', ', $dummyCodes );
72 echo
".\n\n"; # dot to end sentence
73 echo
'{| class="sortable wikitable" border="2" style="background-color: #F9F9F9; ' .
74 'border: 1px #AAAAAA solid; border-collapse: collapse; clear:both; width:100%;"' .
"\n";
90 echo ( $heading ?
'!' :
'|' ) .
"$in\n";
95 $v = round( 255 * $subset /
$total );
99 # Weigh reverse with factor 20 so coloring takes effect more quickly as
100 # this option is used solely for reporting 'bad' percentages.
110 $green = sprintf(
'%02X', 2 * $v );
113 $red = sprintf(
'%02X', 2 * ( 255 - $v ) );
117 $color = $red . $green . $blue;
119 $percent = parent::formatPercent( $subset,
$total,
$revert, $accuracy );
121 return 'style="background-color:#' . $color .
';"|' . $percent;
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
wfSuppressWarnings( $end=false)
Reference-counted warning suppression.
wfRestoreWarnings()
Restore error level to previous value.
formatPercent( $subset, $total, $revert=false, $accuracy=2)
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
when a variable name is used in a it is silently declared as a new masking the global
element( $in, $heading=false)
element( $in, $heading=false)
div flags Integer display flags(NO_ACTION_LINK, NO_EXTRA_USER_LINKS) 'LoginAuthenticateAudit' this hook is for auditing only etc create2 Corresponds to logging log_action database field and which is displayed in the UI & $revert
element( $in, $heading=false)
static fetchLanguageName( $code, $inLanguage=null, $include='all')
formatPercent( $subset, $total, $revert=false, $accuracy=2)
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
element( $in, $heading=false)
static getVersion( $flags='')
Return a string of the MediaWiki version with SVN revision if available.