<namespace key="2" case="first-letter">User</namespace>
<namespace key="3" case="first-letter">User talk</namespace>
<namespace key="4" case="first-letter">DemoWiki</namespace>
- <namespace key="5" case="first-letter">DemoWIki talk</namespace>
+ <namespace key="5" case="first-letter">DemoWiki talk</namespace>
<namespace key="6" case="first-letter">File</namespace>
<namespace key="7" case="first-letter">File talk</namespace>
<namespace key="8" case="first-letter">MediaWiki</namespace>
public function __construct( $info ) {
$info['nodata'] = true;
+
+ $this->setShowEmptyLabel( false );
+
+ parent::__construct( $info );
+
if ( isset( $info['flags'] ) ) {
$this->mFlags = $info['flags'];
}
} elseif ( isset( $info['buttonlabel-raw'] ) ) {
$this->buttonLabel = $info['buttonlabel-raw'];
}
-
- $this->setShowEmptyLabel( false );
-
- parent::__construct( $info );
}
public function getInputHTML( $value ) {
if ( $title->getNamespace() == NS_USER && !$title->isSubpage() ) {
$tools['contributions'] = $linkRenderer->makeKnownLink(
SpecialPage::getTitleFor( 'Contributions', $title->getText() ),
- $this->msg( 'contributions' )->text()
+ $this->msg( 'contribslink' )->text()
);
}
}
# @todo Allow Title::getUserPermissionsErrors() to take an array
- # @todo FIXME: Title::checkSpecialsAndNSPermissions() has a very wierd expectation of what
+ # @todo FIXME: Title::checkSpecialsAndNSPermissions() has a very weird expectation of what
# getUserPermissionsErrors() might actually be used for, hence the 'ns-specialprotected'
$errors = wfMergeErrorArrays(
$this->getPageTitle()->getUserPermissionsErrors(
* @return string
*/
public function getAutoload( $commandName = 'AutoloadGenerator' ) {
- // We need to check whether an extenson.json or skin.json exists or not, and
+ // We need to check whether an extension.json or skin.json exists or not, and
// incase it doesn't, update the autoload.php file.
$fileinfo = $this->getTargetFileinfo();
$fallback = 'ur, pnb';
$rtl = true;
+
+$digitTransformTable = [
+ '0' => '۰', # ۰
+ '1' => '۱', # ۱
+ '2' => '۲', # ۲
+ '3' => '۳', # ۳
+ '4' => '۴', # ۴
+ '5' => '۵', # ۵
+ '6' => '۶', # ۶
+ '7' => '۷', # ۷
+ '8' => '۸', # ۸
+ '9' => '۹', # ۹
+ '%' => '٪', # ٪
+];
$dateFormats = [
'dmy time' => 'H:i',
'dmy date' => 'j xg Y',
- 'dmy both' => 'H:i، j xg Y',
+ 'dmy both' => 'H:i, j xg Y',
'persian time' => 'H:i',
'persian date' => 'xij xiF xiY',
- 'persian both' => 'H:i، xij xiF xiY',
+ 'persian both' => 'H:i, xij xiF xiY',
'ISO 8601 time' => 'xnH:xni:xns',
'ISO 8601 date' => 'xnY-xnm-xnd',
'camino', 'chrome', 'firefox', 'iceweasel', 'netscape', 'konqueror', 'lynx', 'msie', 'opera',
'safari', 'ipod', 'iphone', 'blackberry', 'ps3', 'rekonq', 'android'
],
- // Tanslations for conforming browser names
+ // Translations for conforming browser names
nameTranslations = [],
// Names of known layout engines
layouts = ['gecko', 'konqueror', 'msie', 'trident', 'edge', 'opera', 'webkit'],