Merge "search: Use self::class instead of __CLASS__ in SearchResultSet"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 8 Aug 2018 14:56:08 +0000 (14:56 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 8 Aug 2018 14:56:08 +0000 (14:56 +0000)
docs/export-demo.xml
includes/htmlform/fields/HTMLButtonField.php
includes/specials/SpecialEditWatchlist.php
includes/specials/SpecialImport.php
includes/utils/AutoloadGenerator.php
languages/messages/MessagesSkr_arab.php
languages/messages/MessagesTg_cyrl.php
resources/lib/jquery.client/jquery.client.js

index 93b237f..2e2e459 100644 (file)
@@ -27,7 +27,7 @@
       <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>
index 7f7f718..84719a7 100644 (file)
@@ -34,6 +34,11 @@ class HTMLButtonField extends HTMLFormField {
 
        public function __construct( $info ) {
                $info['nodata'] = true;
+
+               $this->setShowEmptyLabel( false );
+
+               parent::__construct( $info );
+
                if ( isset( $info['flags'] ) ) {
                        $this->mFlags = $info['flags'];
                }
@@ -55,10 +60,6 @@ class HTMLButtonField extends HTMLFormField {
                } elseif ( isset( $info['buttonlabel-raw'] ) ) {
                        $this->buttonLabel = $info['buttonlabel-raw'];
                }
-
-               $this->setShowEmptyLabel( false );
-
-               parent::__construct( $info );
        }
 
        public function getInputHTML( $value ) {
index 17b3201..7491f86 100644 (file)
@@ -634,7 +634,7 @@ class SpecialEditWatchlist extends UnlistedSpecialPage {
                if ( $title->getNamespace() == NS_USER && !$title->isSubpage() ) {
                        $tools['contributions'] = $linkRenderer->makeKnownLink(
                                SpecialPage::getTitleFor( 'Contributions', $title->getText() ),
-                               $this->msg( 'contributions' )->text()
+                               $this->msg( 'contribslink' )->text()
                        );
                }
 
index 5a6bbc4..3ef64f8 100644 (file)
@@ -79,7 +79,7 @@ class SpecialImport extends SpecialPage {
                }
 
                # @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(
index b437653..511b673 100644 (file)
@@ -258,7 +258,7 @@ EOD;
         * @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();
index 901e2aa..27276aa 100644 (file)
 $fallback = 'ur, pnb';
 
 $rtl = true;
+
+$digitTransformTable = [
+       '0' => '۰', # &#x06f0;
+       '1' => '۱', # &#x06f1;
+       '2' => '۲', # &#x06f2;
+       '3' => '۳', # &#x06f3;
+       '4' => '۴', # &#x06f4;
+       '5' => '۵', # &#x06f5;
+       '6' => '۶', # &#x06f6;
+       '7' => '۷', # &#x06f7;
+       '8' => '۸', # &#x06f8;
+       '9' => '۹', # &#x06f9;
+       '%' => '٪', # &#x066a;
+];
index bd107f5..59706d5 100644 (file)
@@ -55,11 +55,11 @@ $datePreferenceMigrationMap = [
 $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',
index 8257d85..bcd9c5c 100644 (file)
@@ -93,7 +93,7 @@
                                        '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'],