Merge "Special:AllMessages: Rename 'Go' to 'Filter'"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 13 Nov 2018 21:18:02 +0000 (21:18 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 13 Nov 2018 21:18:02 +0000 (21:18 +0000)
64 files changed:
RELEASE-NOTES-1.33
autoload.php
docs/hooks.txt
includes/CommentStore.php
includes/GlobalFunctions.php
includes/LinkFilter.php
includes/MovePage.php
includes/api/ApiQueryBase.php
includes/api/ApiQueryExtLinksUsage.php
includes/api/ApiQueryExternalLinks.php
includes/api/i18n/en.json
includes/api/i18n/zh-hant.json
includes/deferred/LinksUpdate.php
includes/exception/MWExceptionRenderer.php
includes/htmlform/fields/HTMLTitlesMultiselectField.php
includes/installer/DatabaseUpdater.php
includes/installer/i18n/ko.json
includes/installer/i18n/lb.json
includes/installer/i18n/pt.json
includes/installer/i18n/sr-ec.json
includes/installer/i18n/sr-el.json
includes/installer/i18n/sv.json
includes/installer/i18n/uk.json
includes/json/FormatJson.php
includes/parser/Parser.php
includes/specials/SpecialBlock.php
includes/specials/SpecialLinkSearch.php
includes/specials/SpecialMovepage.php
includes/widget/TitlesMultiselectWidget.php
languages/i18n/af.json
languages/i18n/ar.json
languages/i18n/be.json
languages/i18n/ca.json
languages/i18n/en.json
languages/i18n/es.json
languages/i18n/fa.json
languages/i18n/fr.json
languages/i18n/frr.json
languages/i18n/gl.json
languages/i18n/gom-latn.json
languages/i18n/gsw.json
languages/i18n/hu.json
languages/i18n/kjp.json
languages/i18n/nan.json
languages/i18n/pl.json
languages/i18n/pt-br.json
languages/i18n/pt.json
languages/i18n/qqq.json
languages/i18n/skr-arab.json
languages/i18n/sr-ec.json
languages/i18n/sv.json
languages/i18n/tr.json
languages/i18n/zh-hant.json
maintenance/cleanupSpam.php
maintenance/deleteSelfExternals.php
maintenance/mssql/tables.sql
maintenance/refreshExternallinksIndex.php [new file with mode: 0644]
maintenance/resetPageRandom.php [new file with mode: 0644]
maintenance/tables.sql
tests/phpunit/includes/GlobalFunctions/GlobalTest.php
tests/phpunit/includes/LinkFilterTest.php
tests/phpunit/includes/MovePageTest.php
tests/phpunit/includes/json/FormatJsonTest.php
tests/phpunit/includes/parser/ParserMethodsTest.php

index a6f8058..640bb1d 100644 (file)
@@ -15,6 +15,9 @@ production.
   the current parse language where available.
 
 ==== Changed configuration ====
+* Some external link searches will not work correctly until update.php (or
+  refreshExternallinksIndex.php) is run. These include searches for links using
+  IP addresses, internationalized domain names, and possibly mailto links.
 * …
 
 ==== Removed configuration ====
@@ -42,6 +45,7 @@ production.
 
 === Action API changes in 1.33 ===
 * (T198913) Added 'ApiOptions' hook.
+* The JSON formatversion=2 is no longer experimental.
 * …
 
 === Action API internal changes in 1.33 ===
@@ -148,6 +152,8 @@ because of Phabricator reports.
 * …
 
 === Other changes in 1.33 ===
+* (T208871) The hard-coded Google search form on the database error page was
+  removed.
 * …
 
 == Compatibility ==
index 3daeee1..02e35a8 100644 (file)
@@ -1191,6 +1191,7 @@ $wgAutoloadLocalClasses = [
        'RedisConnectionPool' => __DIR__ . '/includes/libs/redis/RedisConnectionPool.php',
        'RedisLockManager' => __DIR__ . '/includes/libs/lockmanager/RedisLockManager.php',
        'RedisPubSubFeedEngine' => __DIR__ . '/includes/rcfeed/RedisPubSubFeedEngine.php',
+       'RefreshExternallinksIndex' => __DIR__ . '/maintenance/refreshExternallinksIndex.php',
        'RefreshFileHeaders' => __DIR__ . '/maintenance/refreshFileHeaders.php',
        'RefreshImageMetadata' => __DIR__ . '/maintenance/refreshImageMetadata.php',
        'RefreshLinks' => __DIR__ . '/maintenance/refreshLinks.php',
@@ -1207,6 +1208,7 @@ $wgAutoloadLocalClasses = [
        'RepoGroup' => __DIR__ . '/includes/filerepo/RepoGroup.php',
        'RequestContext' => __DIR__ . '/includes/context/RequestContext.php',
        'ResetAuthenticationThrottle' => __DIR__ . '/maintenance/resetAuthenticationThrottle.php',
+       'ResetPageRandom' => __DIR__ . '/maintenance/resetPageRandom.php',
        'ResetUserEmail' => __DIR__ . '/maintenance/resetUserEmail.php',
        'ResetUserTokens' => __DIR__ . '/maintenance/resetUserTokens.php',
        'ResourceFileCache' => __DIR__ . '/includes/cache/ResourceFileCache.php',
index bd06d52..2f800a4 100644 (file)
@@ -3418,6 +3418,9 @@ $title: Title object that is being checked
 $old: old title
 $nt: new title
 $user: user who does the move
+$reason: string of the reason provided by the user
+&$status: Status object. To abort the move, add a fatal error to this object
+       (i.e. call $status->fatal()).
 
 'TitleMoveStarting': Before moving an article (title), but just after the atomic
 DB section starts.
index 1be7951..7a2726f 100644 (file)
@@ -349,14 +349,13 @@ class CommentStore {
 
                $msg = null;
                if ( $data !== null ) {
-                       $data = FormatJson::decode( $data );
-                       if ( !is_object( $data ) ) {
+                       $data = FormatJson::decode( $data, true );
+                       if ( !is_array( $data ) ) {
                                // @codeCoverageIgnoreStart
                                wfLogWarning( "Invalid JSON object in comment: $data" );
                                $data = null;
                                // @codeCoverageIgnoreEnd
                        } else {
-                               $data = (array)$data;
                                if ( isset( $data['_message'] ) ) {
                                        $msg = self::decodeMessage( $data['_message'] )
                                                ->setInterfaceMessageFlag( true );
index 6e95871..78d619d 100644 (file)
@@ -894,55 +894,13 @@ function wfExpandIRI( $url ) {
 /**
  * Make URL indexes, appropriate for the el_index field of externallinks.
  *
+ * @deprecated since 1.33, use LinkFilter::makeIndexes() instead
  * @param string $url
  * @return array
  */
 function wfMakeUrlIndexes( $url ) {
-       $bits = wfParseUrl( $url );
-
-       // Reverse the labels in the hostname, convert to lower case
-       // For emails reverse domainpart only
-       if ( $bits['scheme'] == 'mailto' ) {
-               $mailparts = explode( '@', $bits['host'], 2 );
-               if ( count( $mailparts ) === 2 ) {
-                       $domainpart = strtolower( implode( '.', array_reverse( explode( '.', $mailparts[1] ) ) ) );
-               } else {
-                       // No domain specified, don't mangle it
-                       $domainpart = '';
-               }
-               $reversedHost = $domainpart . '@' . $mailparts[0];
-       } else {
-               $reversedHost = strtolower( implode( '.', array_reverse( explode( '.', $bits['host'] ) ) ) );
-       }
-       // Add an extra dot to the end
-       // Why? Is it in wrong place in mailto links?
-       if ( substr( $reversedHost, -1, 1 ) !== '.' ) {
-               $reversedHost .= '.';
-       }
-       // Reconstruct the pseudo-URL
-       $prot = $bits['scheme'];
-       $index = $prot . $bits['delimiter'] . $reversedHost;
-       // Leave out user and password. Add the port, path, query and fragment
-       if ( isset( $bits['port'] ) ) {
-               $index .= ':' . $bits['port'];
-       }
-       if ( isset( $bits['path'] ) ) {
-               $index .= $bits['path'];
-       } else {
-               $index .= '/';
-       }
-       if ( isset( $bits['query'] ) ) {
-               $index .= '?' . $bits['query'];
-       }
-       if ( isset( $bits['fragment'] ) ) {
-               $index .= '#' . $bits['fragment'];
-       }
-
-       if ( $prot == '' ) {
-               return [ "http:$index", "https:$index" ];
-       } else {
-               return [ $index ];
-       }
+       wfDeprecated( __FUNCTION__, '1.33' );
+       return LinkFilter::makeIndexes( $url );
 }
 
 /**
index 3b03f87..ffb36e0 100644 (file)
@@ -32,6 +32,11 @@ use Wikimedia\Rdbms\LikeMatch;
  * Another cool thing to do would be a web interface for fast spam removal.
  */
 class LinkFilter {
+       /**
+        * Increment this when makeIndexes output changes. It'll cause
+        * maintenance/refreshExternallinksIndex.php to run from update.php.
+        */
+       const VERSION = 1;
 
        /**
         * Check whether $content contains a link to $filterEntry
@@ -58,6 +63,7 @@ class LinkFilter {
        /**
         * Builds a regex pattern for $filterEntry.
         *
+        * @todo This doesn't match the rest of the functionality here.
         * @param string $filterEntry URL, if it begins with "*.", it'll be
         *        replaced to match any subdomain
         * @param string $protocol 'http://' or 'https://'
@@ -75,23 +81,231 @@ class LinkFilter {
        }
 
        /**
-        * Make an array to be used for calls to Database::buildLike(), which
-        * will match the specified string. There are several kinds of filter entry:
-        *     *.domain.com    -  Produces http://com.domain.%, matches domain.com
-        *                        and www.domain.com
-        *     domain.com      -  Produces http://com.domain./%, matches domain.com
-        *                        or domain.com/ but not www.domain.com
-        *     *.domain.com/x  -  Produces http://com.domain.%/x%, matches
-        *                        www.domain.com/xy
-        *     domain.com/x    -  Produces http://com.domain./x%, matches
-        *                        domain.com/xy but not www.domain.com/xy
+        * Indicate whether LinkFilter IDN support is available
+        * @since 1.33
+        * @return bool
+        */
+       public static function supportsIDN() {
+               return is_callable( 'idn_to_utf8' ) && defined( 'INTL_IDNA_VARIANT_UTS46' );
+       }
+
+       /**
+        * Canonicalize a hostname for el_index
+        * @param string $hose
+        * @return string
+        */
+       private static function indexifyHost( $host ) {
+               // NOTE: If you change the output of this method, you'll probably have to increment self::VERSION!
+
+               // Canonicalize.
+               $host = rawurldecode( $host );
+               if ( $host !== '' && self::supportsIDN() ) {
+                       // @todo Add a PHP fallback
+                       $tmp = idn_to_utf8( $host, IDNA_DEFAULT, INTL_IDNA_VARIANT_UTS46 );
+                       if ( $tmp !== false ) {
+                               $host = $tmp;
+                       }
+               }
+               $okChars = 'a-zA-Z0-9\\-._~!$&\'()*+,;=';
+               if ( StringUtils::isUtf8( $host ) ) {
+                       // Save a little space by not percent-encoding valid UTF-8 bytes
+                       $okChars .= '\x80-\xf4';
+               }
+               $host = preg_replace_callback(
+                       '<[^' . $okChars . ']>',
+                       function ( $m ) {
+                               return rawurlencode( $m[0] );
+                       },
+                       strtolower( $host )
+               );
+
+               // IPv6? RFC 3986 syntax.
+               if ( preg_match( '/^\[([0-9a-f:*]+)\]$/', rawurldecode( $host ), $m ) ) {
+                       $ip = $m[1];
+                       if ( IP::isValid( $ip ) ) {
+                               return 'V6.' . implode( '.', explode( ':', IP::sanitizeIP( $ip ) ) ) . '.';
+                       }
+                       if ( substr( $ip, -2 ) === ':*' ) {
+                               $cutIp = substr( $ip, 0, -2 );
+                               if ( IP::isValid( "{$cutIp}::" ) ) {
+                                       // Wildcard IP doesn't contain "::", so multiple parts can be wild
+                                       $ct = count( explode( ':', $ip ) ) - 1;
+                                       return 'V6.' .
+                                               implode( '.', array_slice( explode( ':', IP::sanitizeIP( "{$cutIp}::" ) ), 0, $ct ) ) .
+                                               '.*.';
+                               }
+                               if ( IP::isValid( "{$cutIp}:1" ) ) {
+                                       // Wildcard IP does contain "::", so only the last part is wild
+                                       return 'V6.' .
+                                               substr( implode( '.', explode( ':', IP::sanitizeIP( "{$cutIp}:1" ) ) ), 0, -1 ) .
+                                               '*.';
+                               }
+                       }
+               }
+
+               // Regularlize explicit specification of the DNS root.
+               // Browsers seem to do this for IPv4 literals too.
+               if ( substr( $host, -1 ) === '.' ) {
+                       $host = substr( $host, 0, -1 );
+               }
+
+               // IPv4?
+               $b = '(?:0*25[0-5]|0*2[0-4][0-9]|0*1[0-9][0-9]|0*[0-9]?[0-9])';
+               if ( preg_match( "/^(?:{$b}\.){3}{$b}$|^(?:{$b}\.){1,3}\*$/", $host ) ) {
+                       return 'V4.' . implode( '.', array_map( function ( $v ) {
+                               return $v === '*' ? $v : (int)$v;
+                       }, explode( '.', $host ) ) ) . '.';
+               }
+
+               // Must be a host name.
+               return implode( '.', array_reverse( explode( '.', $host ) ) ) . '.';
+       }
+
+       /**
+        * Converts a URL into a format for el_index
+        * @since 1.33
+        * @param string $url
+        * @return string[] Usually one entry, but might be two in case of
+        *  protocol-relative URLs. Empty array on error.
+        */
+       public static function makeIndexes( $url ) {
+               // NOTE: If you change the output of this method, you'll probably have to increment self::VERSION!
+
+               // NOTE: refreshExternallinksIndex.php assumes that only protocol-relative URLs return more
+               // than one index, and that the indexes for protocol-relative URLs only vary in the "http://"
+               // versus "https://" prefix. If you change that, you'll likely need to update
+               // refreshExternallinksIndex.php accordingly.
+
+               $bits = wfParseUrl( $url );
+               if ( !$bits ) {
+                       return [];
+               }
+
+               // Reverse the labels in the hostname, convert to lower case, unless it's an IP.
+               // For emails turn it into "domain.reversed@localpart"
+               if ( $bits['scheme'] == 'mailto' ) {
+                       $mailparts = explode( '@', $bits['host'], 2 );
+                       if ( count( $mailparts ) === 2 ) {
+                               $domainpart = self::indexifyHost( $mailparts[1] );
+                       } else {
+                               // No @, assume it's a local part with no domain
+                               $domainpart = '';
+                       }
+                       $bits['host'] = $domainpart . '@' . $mailparts[0];
+               } else {
+                       $bits['host'] = self::indexifyHost( $bits['host'] );
+               }
+
+               // Reconstruct the pseudo-URL
+               $index = $bits['scheme'] . $bits['delimiter'] . $bits['host'];
+               // Leave out user and password. Add the port, path, query and fragment
+               if ( isset( $bits['port'] ) ) {
+                       $index .= ':' . $bits['port'];
+               }
+               if ( isset( $bits['path'] ) ) {
+                       $index .= $bits['path'];
+               } else {
+                       $index .= '/';
+               }
+               if ( isset( $bits['query'] ) ) {
+                       $index .= '?' . $bits['query'];
+               }
+               if ( isset( $bits['fragment'] ) ) {
+                       $index .= '#' . $bits['fragment'];
+               }
+
+               if ( $bits['scheme'] == '' ) {
+                       return [ "http:$index", "https:$index" ];
+               } else {
+                       return [ $index ];
+               }
+       }
+
+       /**
+        * Return query conditions which will match the specified string. There are
+        * several kinds of filter entry:
+        *
+        *     *.domain.com    -  Matches domain.com and www.domain.com
+        *     domain.com      -  Matches domain.com or domain.com/ but not www.domain.com
+        *     *.domain.com/x  -  Matches domain.com/xy or www.domain.com/xy. Also probably matches
+        *                        domain.com/foobar/xy due to limitations of LIKE syntax.
+        *     domain.com/x    -  Matches domain.com/xy but not www.domain.com/xy
+        *     192.0.2.*       -  Matches any IP in 192.0.2.0/24. Can also have a path appended.
+        *     [2001:db8::*]   -  Matches any IP in 2001:db8::/112. Can also have a path appended.
+        *     [2001:db8:*]    -  Matches any IP in 2001:db8::/32. Can also have a path appended.
+        *     foo@domain.com  -  With protocol 'mailto:', matches the email address foo@domain.com.
+        *     *@domain.com    -  With protocol 'mailto:', matches any email address at domain.com, but
+        *                        not subdomains like foo@mail.domain.com
         *
         * Asterisks in any other location are considered invalid.
         *
-        * This function does the same as wfMakeUrlIndexes(), except it also takes care
+        * @since 1.33
+        * @param string $filterEntry Filter entry, as described above
+        * @param array $options Options are:
+        *   - protocol: (string) Protocol to query (default http://)
+        *   - oneWildcard: (bool) Stop at the first wildcard (default false)
+        *   - prefix: (string) Field prefix (default 'el'). The query will test
+        *     fields '{$prefix}_index' and '{$prefix}_index_60'
+        *   - db: (IDatabase|null) Database to use.
+        * @return array|bool Conditions to be used for the query (to be ANDed) or
+        *  false on error. To determine if the query is constant on the
+        *  el_index_60 field, check whether key 'el_index_60' is set.
+        */
+       public static function getQueryConditions( $filterEntry, array $options = [] ) {
+               $options += [
+                       'protocol' => 'http://',
+                       'oneWildcard' => false,
+                       'prefix' => 'el',
+                       'db' => null,
+               ];
+
+               // First, get the like array
+               $like = self::makeLikeArray( $filterEntry, $options['protocol'] );
+               if ( $like === false ) {
+                       return $like;
+               }
+
+               // Get the constant prefix (i.e. everything up to the first wildcard)
+               $trimmedLike = self::keepOneWildcard( $like );
+               if ( $options['oneWildcard'] ) {
+                       $like = $trimmedLike;
+               }
+               if ( $trimmedLike[count( $trimmedLike ) - 1] instanceof LikeMatch ) {
+                       array_pop( $trimmedLike );
+               }
+               $index = implode( '', $trimmedLike );
+
+               $p = $options['prefix'];
+               $db = $options['db'] ?: wfGetDB( DB_REPLICA );
+
+               // Build the query
+               $l = strlen( $index );
+               if ( $l >= 60 ) {
+                       // The constant prefix is larger than el_index_60, so we can use a
+                       // constant comparison.
+                       return [
+                               "{$p}_index_60" => substr( $index, 0, 60 ),
+                               "{$p}_index" . $db->buildLike( $like ),
+                       ];
+               }
+
+               // The constant prefix is smaller than el_index_60, so we use a LIKE
+               // for a prefix search.
+               return [
+                       "{$p}_index_60" . $db->buildLike( [ $index, $db->anyString() ] ),
+                       "{$p}_index" . $db->buildLike( $like ),
+               ];
+       }
+
+       /**
+        * Make an array to be used for calls to Database::buildLike(), which
+        * will match the specified string.
+        *
+        * This function does the same as LinkFilter::makeIndexes(), except it also takes care
         * of adding wildcards
         *
-        * @param string $filterEntry Domainparts
+        * @note You probably want self::getQueryConditions() instead
+        * @param string $filterEntry Filter entry, @see self::getQueryConditions()
         * @param string $protocol Protocol (default http://)
         * @return array|bool Array to be passed to Database::buildLike() or false on error
         */
@@ -100,38 +314,27 @@ class LinkFilter {
 
                $target = $protocol . $filterEntry;
                $bits = wfParseUrl( $target );
-
-               if ( $bits == false ) {
-                       // Unknown protocol?
+               if ( !$bits ) {
                        return false;
                }
 
-               if ( substr( $bits['host'], 0, 2 ) == '*.' ) {
-                       $subdomains = true;
-                       $bits['host'] = substr( $bits['host'], 2 );
-                       if ( $bits['host'] == '' ) {
-                               // We don't want to make a clause that will match everything,
-                               // that could be dangerous
-                               return false;
-                       }
-               } else {
-                       $subdomains = false;
-               }
-
-               // Reverse the labels in the hostname, convert to lower case
-               // For emails reverse domainpart only
+               $subdomains = false;
                if ( $bits['scheme'] === 'mailto' && strpos( $bits['host'], '@' ) ) {
-                       // complete email address
-                       $mailparts = explode( '@', $bits['host'] );
-                       $domainpart = strtolower( implode( '.', array_reverse( explode( '.', $mailparts[1] ) ) ) );
-                       $bits['host'] = $domainpart . '@' . $mailparts[0];
-               } elseif ( $bits['scheme'] === 'mailto' ) {
-                       // domainpart of email address only, do not add '.'
-                       $bits['host'] = strtolower( implode( '.', array_reverse( explode( '.', $bits['host'] ) ) ) );
+                       // Email address with domain and non-empty local part
+                       $mailparts = explode( '@', $bits['host'], 2 );
+                       $domainpart = self::indexifyHost( $mailparts[1] );
+                       if ( $mailparts[0] === '*' ) {
+                               $subdomains = true;
+                               $bits['host'] = $domainpart . '@';
+                       } else {
+                               $bits['host'] = $domainpart . '@' . $mailparts[0];
+                       }
                } else {
-                       $bits['host'] = strtolower( implode( '.', array_reverse( explode( '.', $bits['host'] ) ) ) );
-                       if ( substr( $bits['host'], -1, 1 ) !== '.' ) {
-                               $bits['host'] .= '.';
+                       // Non-email, or email with only a domain part.
+                       $bits['host'] = self::indexifyHost( $bits['host'] );
+                       if ( substr( $bits['host'], -3 ) === '.*.' ) {
+                               $subdomains = true;
+                               $bits['host'] = substr( $bits['host'], 0, -2 );
                        }
                }
 
@@ -175,6 +378,7 @@ class LinkFilter {
         * Filters an array returned by makeLikeArray(), removing everything past first
         * pattern placeholder.
         *
+        * @note You probably want self::getQueryConditions() instead
         * @param array $arr Array to filter
         * @return array Filtered array
         */
index 5213fc1..0fd697b 100644 (file)
@@ -240,7 +240,12 @@ class MovePage {
        public function move( User $user, $reason, $createRedirect, array $changeTags = [] ) {
                global $wgCategoryCollation;
 
-               Hooks::run( 'TitleMove', [ $this->oldTitle, $this->newTitle, $user ] );
+               $status = Status::newGood();
+               Hooks::run( 'TitleMove', [ $this->oldTitle, $this->newTitle, $user, $reason, &$status ] );
+               if ( !$status->isOK() ) {
+                       // Move was aborted by the hook
+                       return $status;
+               }
 
                // If it is a file, move it first.
                // It is done before all other moving stuff is done because it's hard to revert.
index 8630561..fe01f03 100644 (file)
@@ -402,13 +402,15 @@ abstract class ApiQueryBase extends ApiBase {
        }
 
        /**
+        * @deprecated since 1.33, use LinkFilter::getQueryConditions() instead
         * @param string|null $query
         * @param string|null $protocol
         * @return null|string
         */
        public function prepareUrlQuerySearchString( $query = null, $protocol = null ) {
+               wfDeprecated( __METHOD__, '1.33' );
                $db = $this->getDB();
-               if ( !is_null( $query ) || $query != '' ) {
+               if ( $query !== null && $query !== '' ) {
                        if ( is_null( $protocol ) ) {
                                $protocol = 'http://';
                        }
index fc5d8a0..d508c55 100644 (file)
@@ -47,12 +47,12 @@ class ApiQueryExtLinksUsage extends ApiQueryGeneratorBase {
         */
        private function run( $resultPageSet = null ) {
                $params = $this->extractRequestParams();
+               $db = $this->getDB();
 
                $query = $params['query'];
                $protocol = self::getProtocolPrefix( $params['protocol'] );
 
-               $this->addTables( [ 'page', 'externallinks' ] ); // must be in this order for 'USE INDEX'
-               $this->addOption( 'USE INDEX', 'el_index' );
+               $this->addTables( [ 'page', 'externallinks' ] );
                $this->addWhere( 'page_id=el_from' );
 
                $miser_ns = [];
@@ -62,15 +62,46 @@ class ApiQueryExtLinksUsage extends ApiQueryGeneratorBase {
                        $this->addWhereFld( 'page_namespace', $params['namespace'] );
                }
 
-               // Normalize query to match the normalization applied for the externallinks table
-               $query = Parser::normalizeLinkUrl( $query );
+               $orderBy = [];
 
-               $whereQuery = $this->prepareUrlQuerySearchString( $query, $protocol );
+               if ( $query !== null && $query !== '' ) {
+                       if ( $protocol === null ) {
+                               $protocol = 'http://';
+                       }
+
+                       // Normalize query to match the normalization applied for the externallinks table
+                       $query = Parser::normalizeLinkUrl( $protocol . $query );
+
+                       $conds = LinkFilter::getQueryConditions( $query, [
+                               'protocol' => '',
+                               'oneWildcard' => true,
+                               'db' => $db
+                       ] );
+                       if ( !$conds ) {
+                               $this->dieWithError( 'apierror-badquery' );
+                       }
+                       $this->addWhere( $conds );
+                       if ( !isset( $conds['el_index_60'] ) ) {
+                               $orderBy[] = 'el_index_60';
+                       }
+               } else {
+                       $orderBy[] = 'el_index_60';
 
-               if ( $whereQuery !== null ) {
-                       $this->addWhere( $whereQuery );
+                       if ( $protocol !== null ) {
+                               $this->addWhere( 'el_index_60' . $db->buildLike( "$protocol", $db->anyString() ) );
+                       } else {
+                               // We're querying all protocols, filter out duplicate protocol-relative links
+                               $this->addWhere( $db->makeList( [
+                                       'el_to NOT' . $db->buildLike( '//', $db->anyString() ),
+                                       'el_index_60 ' . $db->buildLike( 'http://', $db->anyString() ),
+                               ], LIST_OR ) );
+                       }
                }
 
+               $orderBy[] = 'el_id';
+               $this->addOption( 'ORDER BY', $orderBy );
+               $this->addFields( $orderBy ); // Make sure
+
                $prop = array_flip( $params['prop'] );
                $fld_ids = isset( $prop['ids'] );
                $fld_title = isset( $prop['title'] );
@@ -88,10 +119,19 @@ class ApiQueryExtLinksUsage extends ApiQueryGeneratorBase {
                }
 
                $limit = $params['limit'];
-               $offset = $params['offset'];
                $this->addOption( 'LIMIT', $limit + 1 );
-               if ( isset( $offset ) ) {
-                       $this->addOption( 'OFFSET', $offset );
+
+               if ( $params['continue'] !== null ) {
+                       $cont = explode( '|', $params['continue'] );
+                       $this->dieContinueUsageIf( count( $cont ) !== count( $orderBy ) );
+                       $i = count( $cont ) - 1;
+                       $cond = $orderBy[$i] . ' >= ' . $db->addQuotes( rawurldecode( $cont[$i] ) );
+                       while ( $i-- > 0 ) {
+                               $field = $orderBy[$i];
+                               $v = $db->addQuotes( rawurldecode( $cont[$i] ) );
+                               $cond = "($field > $v OR ($field = $v AND $cond))";
+                       }
+                       $this->addWhere( $cond );
                }
 
                $res = $this->select( __METHOD__ );
@@ -102,7 +142,7 @@ class ApiQueryExtLinksUsage extends ApiQueryGeneratorBase {
                        if ( ++$count > $limit ) {
                                // We've reached the one extra which shows that there are
                                // additional pages to be had. Stop here...
-                               $this->setContinueEnumParameter( 'offset', $offset + $limit );
+                               $this->setContinue( $orderBy, $row );
                                break;
                        }
 
@@ -131,7 +171,7 @@ class ApiQueryExtLinksUsage extends ApiQueryGeneratorBase {
                                }
                                $fit = $result->addValue( [ 'query', $this->getModuleName() ], null, $vals );
                                if ( !$fit ) {
-                                       $this->setContinueEnumParameter( 'offset', $offset + $count - 1 );
+                                       $this->setContinue( $orderBy, $row );
                                        break;
                                }
                        } else {
@@ -145,6 +185,14 @@ class ApiQueryExtLinksUsage extends ApiQueryGeneratorBase {
                }
        }
 
+       private function setContinue( $orderBy, $row ) {
+               $fields = [];
+               foreach ( $orderBy as $field ) {
+                       $fields[] = strtr( $row->$field, [ '%' => '%25', '|' => '%7C' ] );
+               }
+               $this->setContinueEnumParameter( 'continue', implode( '|', $fields ) );
+       }
+
        public function getAllowedParams() {
                $ret = [
                        'prop' => [
@@ -157,8 +205,7 @@ class ApiQueryExtLinksUsage extends ApiQueryGeneratorBase {
                                ],
                                ApiBase::PARAM_HELP_MSG_PER_VALUE => [],
                        ],
-                       'offset' => [
-                               ApiBase::PARAM_TYPE => 'integer',
+                       'continue' => [
                                ApiBase::PARAM_HELP_MSG => 'api-help-param-continue',
                        ],
                        'protocol' => [
index 6c219d4..b5731a3 100644 (file)
@@ -37,6 +37,7 @@ class ApiQueryExternalLinks extends ApiQueryBase {
                }
 
                $params = $this->extractRequestParams();
+               $db = $this->getDB();
 
                $query = $params['query'];
                $protocol = ApiQueryExtLinksUsage::getProtocolPrefix( $params['protocol'] );
@@ -49,26 +50,64 @@ class ApiQueryExternalLinks extends ApiQueryBase {
                $this->addTables( 'externallinks' );
                $this->addWhereFld( 'el_from', array_keys( $this->getPageSet()->getGoodTitles() ) );
 
-               $whereQuery = $this->prepareUrlQuerySearchString( $query, $protocol );
-
-               if ( $whereQuery !== null ) {
-                       $this->addWhere( $whereQuery );
-               }
+               $orderBy = [];
 
                // Don't order by el_from if it's constant in the WHERE clause
                if ( count( $this->getPageSet()->getGoodTitles() ) != 1 ) {
-                       $this->addOption( 'ORDER BY', 'el_from' );
+                       $orderBy[] = 'el_from';
                }
 
-               // If we're querying all protocols, use DISTINCT to avoid repeating protocol-relative links twice
-               if ( $protocol === null ) {
-                       $this->addOption( 'DISTINCT' );
+               if ( $query !== null && $query !== '' ) {
+                       if ( $protocol === null ) {
+                               $protocol = 'http://';
+                       }
+
+                       // Normalize query to match the normalization applied for the externallinks table
+                       $query = Parser::normalizeLinkUrl( $protocol . $query );
+
+                       $conds = LinkFilter::getQueryConditions( $query, [
+                               'protocol' => '',
+                               'oneWildcard' => true,
+                               'db' => $db
+                       ] );
+                       if ( !$conds ) {
+                               $this->dieWithError( 'apierror-badquery' );
+                       }
+                       $this->addWhere( $conds );
+                       if ( !isset( $conds['el_index_60'] ) ) {
+                               $orderBy[] = 'el_index_60';
+                       }
+               } else {
+                       $orderBy[] = 'el_index_60';
+
+                       if ( $protocol !== null ) {
+                               $this->addWhere( 'el_index_60' . $db->buildLike( "$protocol", $db->anyString() ) );
+                       } else {
+                               // We're querying all protocols, filter out duplicate protocol-relative links
+                               $this->addWhere( $db->makeList( [
+                                       'el_to NOT' . $db->buildLike( '//', $db->anyString() ),
+                                       'el_index_60 ' . $db->buildLike( 'http://', $db->anyString() ),
+                               ], LIST_OR ) );
+                       }
                }
 
+               $orderBy[] = 'el_id';
+               $this->addOption( 'ORDER BY', $orderBy );
+               $this->addFields( $orderBy ); // Make sure
+
                $this->addOption( 'LIMIT', $params['limit'] + 1 );
-               $offset = $params['offset'] ?? 0;
-               if ( $offset ) {
-                       $this->addOption( 'OFFSET', $params['offset'] );
+
+               if ( $params['continue'] !== null ) {
+                       $cont = explode( '|', $params['continue'] );
+                       $this->dieContinueUsageIf( count( $cont ) !== count( $orderBy ) );
+                       $i = count( $cont ) - 1;
+                       $cond = $orderBy[$i] . ' >= ' . $db->addQuotes( rawurldecode( $cont[$i] ) );
+                       while ( $i-- > 0 ) {
+                               $field = $orderBy[$i];
+                               $v = $db->addQuotes( rawurldecode( $cont[$i] ) );
+                               $cond = "($field > $v OR ($field = $v AND $cond))";
+                       }
+                       $this->addWhere( $cond );
                }
 
                $res = $this->select( __METHOD__ );
@@ -78,7 +117,7 @@ class ApiQueryExternalLinks extends ApiQueryBase {
                        if ( ++$count > $params['limit'] ) {
                                // We've reached the one extra which shows that
                                // there are additional pages to be had. Stop here...
-                               $this->setContinueEnumParameter( 'offset', $offset + $params['limit'] );
+                               $this->setContinue( $orderBy, $row );
                                break;
                        }
                        $entry = [];
@@ -90,12 +129,20 @@ class ApiQueryExternalLinks extends ApiQueryBase {
                        ApiResult::setContentValue( $entry, 'url', $to );
                        $fit = $this->addPageSubItem( $row->el_from, $entry );
                        if ( !$fit ) {
-                               $this->setContinueEnumParameter( 'offset', $offset + $count - 1 );
+                               $this->setContinue( $orderBy, $row );
                                break;
                        }
                }
        }
 
+       private function setContinue( $orderBy, $row ) {
+               $fields = [];
+               foreach ( $orderBy as $field ) {
+                       $fields[] = strtr( $row->$field, [ '%' => '%25', '|' => '%7C' ] );
+               }
+               $this->setContinueEnumParameter( 'continue', implode( '|', $fields ) );
+       }
+
        public function getCacheMode( $params ) {
                return 'public';
        }
@@ -109,8 +156,7 @@ class ApiQueryExternalLinks extends ApiQueryBase {
                                ApiBase::PARAM_MAX => ApiBase::LIMIT_BIG1,
                                ApiBase::PARAM_MAX2 => ApiBase::LIMIT_BIG2
                        ],
-                       'offset' => [
-                               ApiBase::PARAM_TYPE => 'integer',
+                       'continue' => [
                                ApiBase::PARAM_HELP_MSG => 'api-help-param-continue',
                        ],
                        'protocol' => [
index 83bb6e6..a9f92aa 100644 (file)
        "apihelp-json-param-callback": "If specified, wraps the output into a given function call. For safety, all user-specific data will be restricted.",
        "apihelp-json-param-utf8": "If specified, encodes most (but not all) non-ASCII characters as UTF-8 instead of replacing them with hexadecimal escape sequences. Default when <var>formatversion</var> is not <kbd>1</kbd>.",
        "apihelp-json-param-ascii": "If specified, encodes all non-ASCII using hexadecimal escape sequences. Default when <var>formatversion</var> is <kbd>1</kbd>.",
-       "apihelp-json-param-formatversion": "Output formatting:\n;1:Backwards-compatible format (XML-style booleans, <samp>*</samp> keys for content nodes, etc.).\n;2:Experimental modern format. Details may change!\n;latest:Use the latest format (currently <kbd>2</kbd>), may change without warning.",
+       "apihelp-json-param-formatversion": "Output formatting:\n;1:Backwards-compatible format (XML-style booleans, <samp>*</samp> keys for content nodes, etc.).\n;2:Modern format.\n;latest:Use the latest format (currently <kbd>2</kbd>), may change without warning.",
        "apihelp-jsonfm-summary": "Output data in JSON format (pretty-print in HTML).",
        "apihelp-none-summary": "Output nothing.",
        "apihelp-php-summary": "Output data in serialized PHP format.",
-       "apihelp-php-param-formatversion": "Output formatting:\n;1:Backwards-compatible format (XML-style booleans, <samp>*</samp> keys for content nodes, etc.).\n;2:Experimental modern format. Details may change!\n;latest:Use the latest format (currently <kbd>2</kbd>), may change without warning.",
+       "apihelp-php-param-formatversion": "Output formatting:\n;1:Backwards-compatible format (XML-style booleans, <samp>*</samp> keys for content nodes, etc.).\n;2:Modern format.\n;latest:Use the latest format (currently <kbd>2</kbd>), may change without warning.",
        "apihelp-phpfm-summary": "Output data in serialized PHP format (pretty-print in HTML).",
        "apihelp-rawfm-summary": "Output data, including debugging elements, in JSON format (pretty-print in HTML).",
        "apihelp-xml-summary": "Output data in XML format.",
index 73c39b2..8502c2d 100644 (file)
        "apihelp-query+filearchive-paramvalue-prop-archivename": "添加非最新版本的存檔版本檔案名稱。",
        "apihelp-query+filearchive-example-simple": "顯示所有已刪除檔案的清單。",
        "apihelp-query+filerepoinfo-summary": "回傳有關在 wiki 上圖片儲存庫的詮釋資料。",
+       "apihelp-query+filerepoinfo-param-prop": "要取得的儲存庫屬性(可用屬性在其它 wiki 上可能會有差別)。",
        "apihelp-query+filerepoinfo-paramvalue-prop-apiurl": "儲存庫 API 的 URL - 對於從主機取得圖片資訊很有用。",
        "apihelp-query+filerepoinfo-paramvalue-prop-articlepath": "儲存庫 wiki 的 <var>[[mw:Special:MyLanguage/Manual:$wgArticlePath|$wgArticlePath]]</var> 或同等內容。",
+       "apihelp-query+filerepoinfo-paramvalue-prop-canUpload": "檔案是否可上傳至此儲存庫,例如透過 CORS 與共享驗證。",
        "apihelp-query+filerepoinfo-paramvalue-prop-displayname": "人類可讀的儲存庫 wiki 名稱。",
+       "apihelp-query+filerepoinfo-paramvalue-prop-favicon": "儲存庫 wiki 的網頁圖標 URL,來自於 <var>[[mw:Special:MyLanguage/Manual:$wgFavicon|$wgFavicon]]</var>。",
        "apihelp-query+filerepoinfo-paramvalue-prop-initialCapital": "檔案是否隱式地以大寫字母開頭。",
        "apihelp-query+filerepoinfo-paramvalue-prop-local": "儲存庫是否為本地端。",
        "apihelp-query+filerepoinfo-paramvalue-prop-rootUrl": "圖片路徑的根 URL 路徑。",
        "apihelp-query+info-paramvalue-prop-url": "替各頁面給予一個完整 URL、一個編輯 URL,以及一個規範 URL。",
        "apihelp-query+info-paramvalue-prop-readable": "使用者是否可閱讀此頁面。請改用 <kbd>intestactions=read</kbd>。",
        "apihelp-query+info-paramvalue-prop-preload": "取得由 EditFormPreloadText 回傳的文字。",
+       "apihelp-query+info-paramvalue-prop-varianttitles": "指定網站內容語言裡所有變體的顯示標題。",
        "apihelp-query+info-param-testactions": "測試目前使用者是否可執行頁面上的某項操作。",
        "apihelp-query+info-paramvalue-testactionsdetail-boolean": "回傳各操作的布林值。",
        "apihelp-query+info-paramvalue-testactionsdetail-full": "回傳描述出為何操作被禁止的訊息,或為允許則回傳空陣列。",
        "apihelp-query+protectedtitles-param-start": "在此保護時間戳記開始列出。",
        "apihelp-query+protectedtitles-param-end": "在此保護時間戳記停止列出。",
        "apihelp-query+protectedtitles-param-prop": "要取得的屬性。",
+       "apihelp-query+protectedtitles-paramvalue-prop-timestamp": "添加當保護被添加時的時間戳記。",
        "apihelp-query+protectedtitles-paramvalue-prop-user": "添加做出添加保護操作的使用者。",
        "apihelp-query+protectedtitles-paramvalue-prop-userid": "添加做出添加保護操作的使用者 ID。",
        "apihelp-query+protectedtitles-paramvalue-prop-comment": "添加保護的註釋。",
        "apihelp-query+protectedtitles-paramvalue-prop-parsedcomment": "添加保護的解析註釋。",
+       "apihelp-query+protectedtitles-paramvalue-prop-expiry": "添加當保護被提升時的時間戳記。",
        "apihelp-query+protectedtitles-paramvalue-prop-level": "添加保護層級。",
        "apihelp-query+protectedtitles-example-simple": "列出已保護的標題。",
        "apihelp-query+protectedtitles-example-generator": "找出在主命名空間裡連至已保護標題的連結。",
        "apihelp-userrights-param-add": "加入使用者至這些群組;若已是成員,則更新失效時間。",
        "apihelp-userrights-param-remove": "從這些群組移除使用者。",
        "apihelp-userrights-param-reason": "變更的原因。",
+       "apihelp-userrights-param-tags": "在使用者權限日誌裡更改套用到項目的標籤。",
        "apihelp-userrights-example-expiry": "添加使用者 <kbd>SometimeSysop</kbd> 至群組 <kbd>sysop</kbd> 為期一個月時間。",
        "apihelp-validatepassword-summary": "驗證密碼是否符合 wiki 的密碼方針。",
        "apihelp-validatepassword-param-password": "要驗證的密碼。",
        "apihelp-validatepassword-example-1": "驗證目前使用者的密碼 <kbd>foobar</kbd>。",
        "apihelp-validatepassword-example-2": "為建立的使用者 <kbd>Example</kbd> 驗證密碼 <kbd>qwerty</kbd>。",
        "apihelp-watch-summary": "從目前使用者的監視清單添加或移除頁面。",
+       "apihelp-watch-param-title": "要(取消)監視的頁面。請改用 <var>$1titles</var>。",
        "apihelp-watch-param-unwatch": "若設定頁面,則會取消監視而非被監視。",
        "apihelp-watch-example-watch": "監視頁面 <kbd>Main Page</kbd>。",
        "apihelp-watch-example-unwatch": "取消監視頁面 <kbd>Main Page</kbd>。",
index 577a272..b4863f8 100644 (file)
@@ -567,7 +567,7 @@ class LinksUpdate extends DataUpdate implements EnqueueableDataUpdate {
                $arr = [];
                $diffs = array_diff_key( $this->mExternals, $existing );
                foreach ( $diffs as $url => $dummy ) {
-                       foreach ( wfMakeUrlIndexes( $url ) as $index ) {
+                       foreach ( LinkFilter::makeIndexes( $url ) as $index ) {
                                $arr[] = [
                                        'el_from' => $this->mId,
                                        'el_to' => $url,
index f99ce1c..22be2be 100644 (file)
@@ -323,47 +323,7 @@ class MWExceptionRenderer {
                                htmlspecialchars( $e->getTraceAsString() ) . '</pre>';
                }
 
-               $html .= '<hr />';
-               $html .= self::googleSearchForm();
                $html .= '</body></html>';
                echo $html;
        }
-
-       /**
-        * @return string
-        */
-       private static function googleSearchForm() {
-               global $wgSitename, $wgCanonicalServer, $wgRequest;
-
-               $usegoogle = htmlspecialchars( self::msg(
-                       'dberr-usegoogle',
-                       'You can try searching via Google in the meantime.'
-               ) );
-               $outofdate = htmlspecialchars( self::msg(
-                       'dberr-outofdate',
-                       'Note that their indexes of our content may be out of date.'
-               ) );
-               $googlesearch = htmlspecialchars( self::msg( 'searchbutton', 'Search' ) );
-               $search = htmlspecialchars( $wgRequest->getVal( 'search' ) );
-               $server = htmlspecialchars( $wgCanonicalServer );
-               $sitename = htmlspecialchars( $wgSitename );
-               $trygoogle = <<<EOT
-<div style="margin: 1.5em">$usegoogle<br />
-<small>$outofdate</small>
-</div>
-<form method="get" action="//www.google.com/search" id="googlesearch">
-       <input type="hidden" name="domains" value="$server" />
-       <input type="hidden" name="num" value="50" />
-       <input type="hidden" name="ie" value="UTF-8" />
-       <input type="hidden" name="oe" value="UTF-8" />
-       <input type="text" name="q" size="31" maxlength="255" value="$search" />
-       <input type="submit" name="btnG" value="$googlesearch" />
-       <p>
-               <label><input type="radio" name="sitesearch" value="$server" checked="checked" />$sitename</label>
-               <label><input type="radio" name="sitesearch" value="" />WWW</label>
-       </p>
-</form>
-EOT;
-               return $trygoogle;
-       }
 }
index c93c940..e2399b9 100644 (file)
@@ -95,6 +95,14 @@ class HTMLTitlesMultiselectField extends HTMLTitleTextField {
                        $params['placeholder'] = $this->msg( 'mw-widgets-titlesmultiselect-placeholder' )->plain();
                }
 
+               if ( isset( $this->mParams['max'] ) ) {
+                       $params['tagLimit'] = $this->mParams['max'];
+               }
+
+               if ( isset( $this->mParams['showMissing'] ) ) {
+                       $params['showMissing'] = $this->mParams['showMissing'];
+               }
+
                if ( !is_null( $value ) ) {
                        // $value is a string, but the widget expects an array
                        $params['default'] = $value === '' ? [] : explode( "\n", $value );
index f5d01d6..925fc5a 100644 (file)
@@ -87,6 +87,7 @@ abstract class DatabaseUpdater {
                AddRFCandPMIDInterwiki::class,
                PopulatePPSortKey::class,
                PopulateIpChanges::class,
+               RefreshExternallinksIndex::class,
        ];
 
        /**
index 3d1646d..d3f4f82 100644 (file)
        "config-db-account-lock": "정상적으로 작동하는 동안 같은 사용자 이름과 비밀번호를 사용함",
        "config-db-wiki-account": "정상적인 작동을 위한 사용자 계정",
        "config-db-wiki-help": "정상적인 위키 작업 동안 데이터베이스에 연결하는 데 사용할 사용자 이름과 비밀번호를 입력하세요.\n계정이 존재하지 않고 설치 계정에 충분한 권한이 있는 경우 이 사용자 계정은 위키를 작동하는 데 필요한 최소 권한으로 만들어집니다.",
-       "config-db-prefix": "데이터베이스 테이블 접두어:",
+       "config-db-prefix": "데이터베이스 테이블 접두어 (하이픈 없음):",
        "config-db-prefix-help": "여러 위키 사이 또는 미디어위키와 다른 웹 애플리케이션 사이에 하나의 데이터베이스를 공유해야 하는 경우, 충돌을 피하기 위해 모든 테이블 이름에 접두어를 추가하도록 선택할 수 있습니다.\n공백을 사용하지 마세요.\n\n이 필드는 일반적으로 비어 있습니다.",
        "config-mysql-old": "MySQL $1 이상이 필요합니다. $2이(가) 있습니다.",
        "config-db-port": "데이터베이스 포트:",
index 6f121e7..9c550df 100644 (file)
@@ -73,7 +73,7 @@
        "config-db-wiki-help": "Gitt de Benotzernumm an d'Passwuert an dat benotzt wäert gi fir sech bei den normale Wiki-Operatiounen mat der Datebank ze connectéieren.\nWann et de Kont net gëtt, a wann den Installatiouns-Kont genuch Rechter huet, gëtt dëse Benotzerkont opgemaach mat dem Minimum vu Rechter déi gebraucht gi fir dës Wiki bedreiwen ze kënnen.",
        "config-mysql-old": "MySQL $1 oder eng méi nei Versioun gëtt gebraucht, Dir hutt $2.",
        "config-db-port": "Port vun der Datebank:",
-       "config-db-schema": "Schema fir MediaWiki",
+       "config-db-schema": "Schema fir MediaWiki (keng Bindestrécher)",
        "config-db-schema-help": "D'Schemaen hei driwwer si gewéinlech korrekt.\nÄnnert se nëmme wann Dir wësst datt et néideg ass.",
        "config-pg-test-error": "Et ass net méiglech d'Datebank '''$1''' ze kontaktéieren: $2",
        "config-sqlite-dir": "Repertoire vun den SQLite-Donnéeën",
index 566f9a2..6c0484d 100644 (file)
        "config-db-account-lock": "Usar o mesmo nome de utilizador e palavra-passe durante a operação normal",
        "config-db-wiki-account": "Conta de utilizador para a operação normal",
        "config-db-wiki-help": "Introduza o nome de utilizador e a palavra-passe que serão usados para aceder à base de dados durante a operação normal da wiki.\nSe o utilizador não existir na base de dados, mas a conta de instalação tiver privilégios suficientes, o utilizador que introduzir será criado na base de dados com os privilégios mínimos necessários para a operação normal da wiki.",
-       "config-db-prefix": "Prefixo para as tabelas da base de dados:",
+       "config-db-prefix": "Prefixo para as tabelas da base de dados (sem hífenes):",
        "config-db-prefix-help": "Se necessitar de partilhar uma só base de dados entre várias wikis, ou entre o MediaWiki e outra aplicação, pode escolher adicionar um prefixo ao nome de todas as tabelas desta instalação, para evitar conflitos.\nNão use espaços.\n\nNormalmente, este campo deve ficar vazio.",
        "config-mysql-old": "É necessário o MySQL $1 ou posterior; tem a versão $2.",
        "config-db-port": "Porta da base de dados:",
index f972c24..cc835dd 100644 (file)
        "config-diff3-bad": "GNU diff3 није пронађен.",
        "config-git": "Пронађен је Git софтвер за контролу верзија: <code>$1</code>",
        "config-git-bad": "Није пронађен Git софтвер за контролу верзија.",
+       "config-imagemagick": "Пронађен ImageMagick: <code>$1</code>.\nУмањивање слика ће бити омогућено ако омогућите отпремање.",
+       "config-gd": "Пронађена је GD уграђена графичка библиотека.\nУмањивање слика ће бити омогућено ако омогућите отпремање.",
        "config-no-scaling": "Није могуће пронаћи GD библиотеку или ImageMagick.\nУмањивање слика ће бити онемогућено.",
+       "config-using-server": "Користи се име сервера „<nowiki>$1</nowiki>”.",
+       "config-using-uri": "Користи се URL сервера „<nowiki>$1$2</nowiki>”.",
+       "config-uploads-not-safe": "<strong>Упозорење:</strong> Ваш подразумевани директоријум за отпремања <code>$1</code> је подложан извршењу произвољних скрипти.\nИако Медијавики проверава све отпремљене датотеке за безбедоносне претње, препоручује се [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Security#Upload_security да затворите ову безбедоносну рањивост] пре омогућавања отпремања.",
+       "config-no-cli-uploads-check": "<strong>Упозорење:</strong> Ваш подразумевани директоријум за отпремање (<code>$1</code>) није проверен на рањивост\nна произвољно извршавање скрипте током CLI инсталације.",
        "config-db-type": "Тип базе података:",
        "config-db-host": "Хост базе података",
        "config-db-wiki-settings": "Идентификуј овај вики",
index 5ed243c..56b469f 100644 (file)
        "config-diff3-bad": "GNU diff3 nije pronađen.",
        "config-git": "Pronađen je Git softver za kontrolu verzija: <code>$1</code>",
        "config-git-bad": "Nije pronađen Git softver za kontrolu verzija.",
+       "config-imagemagick": "Pronađen ImageMagick: <code>$1</code>.\nUmanjivanje slika će biti omogućeno ako omogućite otpremanje.",
+       "config-gd": "Pronađena je GD ugrađena grafička biblioteka.\nUmanjivanje slika će biti omogućeno ako omogućite otpremanje.",
        "config-no-scaling": "Nije moguće pronaći GD biblioteku ili ImageMagick.\nUmanjivanje slika će biti onemogućeno.",
+       "config-using-server": "Koristi se ime servera \"<nowiki>$1</nowiki>\".",
+       "config-using-uri": "Koristi se URL servera \"<nowiki>$1$2</nowiki>\".",
+       "config-uploads-not-safe": "<strong>Upozorenje:</strong> Vaš podrazumevan folder za otpremanja <code>$1</code> je podložan izvršenju proizvoljnih skripti.\nIako Medijaviki proverava sve otpremljene datoteke za bezbedonosne pretnje, preporučuje se [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Security#Upload_security da zatvorite ovu bezbedonosnu ranjivost] pre omogućavanja otpremanja.",
+       "config-no-cli-uploads-check": "<strong>Upozorenje:</strong> Vaš podrazumevan folder za otpremanje (<code>$1</code>) nije proveren na ranjivost na proizvoljno izvršavanje skripte tokom CLI instalacije.",
        "config-db-type": "Tip baze podataka:",
        "config-db-host": "Host baze podataka",
        "config-db-wiki-settings": "Identifikuj ovaj viki",
index 1f82d3b..24f4757 100644 (file)
@@ -91,7 +91,7 @@
        "config-db-host-oracle": "Databas TNS:",
        "config-db-host-oracle-help": "Ange ett giltigt [http://download.oracle.com/docs/cd/B28359_01/network.111/b28317/tnsnames.htm Local Connect Name]; en tnsnames.ora-fil måste vara synlig för denna installation.<br />Om du använder klientbibliotek 10g eller nyare kan du också använda [http://download.oracle.com/docs/cd/E11882_01/network.112/e10836/naming.htm Easy Connect] namngivningsmetoden.",
        "config-db-wiki-settings": "Identifiera denna wiki",
-       "config-db-name": "Databasnamn:",
+       "config-db-name": "Databasnamn (inga bindestreck):",
        "config-db-name-help": "Välj ett namn som identifierar din wiki.\nDet bör inte innehålla mellanslag.\n\nOm du använder ett delat webbhotell kan de antingen ge dig ett särskilt databasnamn att använda eller så kan de låta dig skapa en databas via kontrollpanelen.",
        "config-db-name-oracle": "Databasschema:",
        "config-db-account-oracle-warn": "Det finns tre stödda scenarier för installationen av Oracle som en backend-databas:\n\nOm du vill skapa ett databaskonto som en del av installationen, ange ett konto med SYSDBA-roll som databaskonto under installationen och ange de önskade autentiseringsuppgifterna för kontot med webb-åtkomst, annars kan du antingen skapa ett konto med webb-åtkomst manuellt och ange enbart detta konto (om den har behörighet att skapa schema-objekt) eller ange två olika konton, en med create-behörighet och en begränsad för webb-åtkomst.\n\nSkript för att skapa ett konto med de korrekta behörigheterna kan hittas i \"maintenance/oracle/\"-katalogen för denna installation. Tänk på att användningen av ett begränsat konto inaktiverar all underhållsmöjlighet med standardkontot.",
        "config-db-account-lock": "Använda samma användarnamn och lösenord under normal drift",
        "config-db-wiki-account": "Användarkonto för normal drift",
        "config-db-wiki-help": "Ange det användarnamn och lösenorde som skall användas för att ansluta till databasen under normal wiki-drift. Om kontot inte existerar, och om installationskontot har tillräcklig behörighet, kommer detta användarkontot att skapas med de minimiprivilegier som krävs för att driva wikin.",
-       "config-db-prefix": "Prefix för tabellerna i databasen:",
+       "config-db-prefix": "Prefix för databastabell (inga bindestreck):",
        "config-db-prefix-help": "Om du behöver dela en databas mellan flera olika wikis, eller mellan MediaWiki och en annan webbapplikation, kan du välja att lägga till ett prefix till alla tabellnamn för att undvika konflikter.\nAnvänd inte mellanslag.\n\nDet här fältet lämnas vanligtvis tomt.",
        "config-mysql-old": "MySQL $1 eller senare krävs. Du har $2.",
        "config-db-port": "Databasport:",
-       "config-db-schema": "Schema för MediaWiki",
+       "config-db-schema": "Schema för MediaWiki (inga bindestreck):",
        "config-db-schema-help": "Det här schemat blir oftast bra.\nÄndra det endast om du vet att du behöver.",
        "config-pg-test-error": "Kan inte ansluta till databas '''$1''': $2",
        "config-sqlite-dir": "SQLite data-katalog:",
index 0a97b5e..8b5e851 100644 (file)
        "config-db-account-lock": "Використовувати ті ж ім'я користувача і пароль і для звичайної роботи",
        "config-db-wiki-account": "Обліковий запис користувача для звичайної роботи",
        "config-db-wiki-help": "Введіть ім'я користувача і пароль, які будуть використовуватись для з'єднання з базою даних під час звичайної роботи.\nЯкщо обліковий запис не існує, а в облікового запису інсталяції є достатні повноваження, цей обліковий запис користувача буде створено з мінімальними правами, що необхідні для роботи з вікі.",
-       "config-db-prefix": "Префікс таблиць бази даних:",
+       "config-db-prefix": "Префікс таблиць бази даних (без дефісів):",
        "config-db-prefix-help": "Якщо треба ділити одну базу даних між декількома вікі або між MediaWiki та іншим веб-застосунком, Ви можете додати префікс до усіх назв таблиць для уникнення конфліктів.\nНе використовуйте пробіли.\n\nЦе поле зазвичай залишають пустим.",
        "config-mysql-old": "Необхідна MySQL $1 або пізніша, а у Вас $2.",
        "config-db-port": "Порт бази даних:",
index fbcb3bd..9ec3d96 100644 (file)
@@ -153,6 +153,16 @@ class FormatJson {
         * which returns more comprehensive result in case of an error, and has
         * more parsing options.
         *
+        * In PHP versions before 7.1, decoding a JSON string containing an empty key
+        * without passing $assoc as true results in a return object with a property
+        * named "_empty_" (because true empty properties were not supported pre-PHP-7.1).
+        * Instead, consider passing $assoc as true to return an associative array.
+        *
+        * But be aware that in all supported PHP versions, decoding an empty JSON object
+        * with $assoc = true returns an array, not an object, breaking round-trip consistency.
+        *
+        * See https://phabricator.wikimedia.org/T206411 for more details on these quirks.
+        *
         * @param string $value The JSON string being decoded
         * @param bool $assoc When true, returned objects will be converted into associative arrays.
         *
index 3dc2eeb..93dfb9d 100644 (file)
@@ -2026,7 +2026,19 @@ class Parser {
         * @return string
         */
        public static function normalizeLinkUrl( $url ) {
-               # First, make sure unsafe characters are encoded
+               # Test for RFC 3986 IPv6 syntax
+               $scheme = '[a-z][a-z0-9+.-]*:';
+               $userinfo = '(?:[a-z0-9\-._~!$&\'()*+,;=:]|%[0-9a-f]{2})*';
+               $ipv6Host = '\\[((?:[0-9a-f:]|%3[0-A]|%[46][1-6])+)\\]';
+               if ( preg_match( "<^(?:{$scheme})?//(?:{$userinfo}@)?{$ipv6Host}(?:[:/?#].*|)$>i", $url, $m ) &&
+                       IP::isValid( rawurldecode( $m[1] ) )
+               ) {
+                       $isIPv6 = rawurldecode( $m[1] );
+               } else {
+                       $isIPv6 = false;
+               }
+
+               # Make sure unsafe characters are encoded
                $url = preg_replace_callback( '/[\x00-\x20"<>\[\\\\\]^`{|}\x7F-\xFF]/',
                        function ( $m ) {
                                return rawurlencode( $m[0] );
@@ -2058,6 +2070,16 @@ class Parser {
                $ret = self::normalizeUrlComponent(
                        substr( $url, 0, $end ), '"#%<>[\]^`{|}/?' ) . $ret;
 
+               # Fix IPv6 syntax
+               if ( $isIPv6 !== false ) {
+                       $ipv6Host = "%5B({$isIPv6})%5D";
+                       $ret = preg_replace(
+                               "<^((?:{$scheme})?//(?:{$userinfo}@)?){$ipv6Host}(?=[:/?#]|$)>i",
+                               "$1[$2]",
+                               $ret
+                       );
+               }
+
                return $ret;
        }
 
index 6b9b9d4..918ce4a 100644 (file)
@@ -171,6 +171,7 @@ class SpecialBlock extends FormSpecialPage {
                                'exists' => true,
                                'max' => 10,
                                'cssclass' => 'mw-block-page-restrictions',
+                               'showMissing' => false,
                        ];
                }
 
index ef95254..d08fe5c 100644 (file)
@@ -69,7 +69,7 @@ class LinkSearchPage extends QueryPage {
                        }
                }
 
-               $target2 = $target;
+               $target2 = Parser::normalizeLinkUrl( $target );
                // Get protocol, default is http://
                $protocol = 'http://';
                $bits = wfParseUrl( $target );
@@ -128,7 +128,7 @@ class LinkSearchPage extends QueryPage {
 
                if ( $target != '' ) {
                        $this->setParams( [
-                               'query' => Parser::normalizeLinkUrl( $target2 ),
+                               'query' => $target2,
                                'namespace' => $namespace,
                                'protocol' => $protocol ] );
                        parent::execute( $par );
@@ -146,37 +146,6 @@ class LinkSearchPage extends QueryPage {
                return false;
        }
 
-       /**
-        * Return an appropriately formatted LIKE query and the clause
-        *
-        * @param string $query Search pattern to search for
-        * @param string $prot Protocol, e.g. 'http://'
-        *
-        * @return array
-        */
-       static function mungeQuery( $query, $prot ) {
-               $field = 'el_index';
-               $dbr = wfGetDB( DB_REPLICA );
-
-               if ( $query === '*' && $prot !== '' ) {
-                       // Allow queries like 'ftp://*' to find all ftp links
-                       $rv = [ $prot, $dbr->anyString() ];
-               } else {
-                       $rv = LinkFilter::makeLikeArray( $query, $prot );
-               }
-
-               if ( $rv === false ) {
-                       // LinkFilter doesn't handle wildcard in IP, so we'll have to munge here.
-                       $pattern = '/^(:?[0-9]{1,3}\.)+\*\s*$|^(:?[0-9]{1,3}\.){3}[0-9]{1,3}:[0-9]*\*\s*$/';
-                       if ( preg_match( $pattern, $query ) ) {
-                               $rv = [ $prot . rtrim( $query, " \t*" ), $dbr->anyString() ];
-                               $field = 'el_to';
-                       }
-               }
-
-               return [ $rv, $field ];
-       }
-
        function linkParameters() {
                $params = [];
                $params['target'] = $this->mProt . $this->mQuery;
@@ -189,16 +158,29 @@ class LinkSearchPage extends QueryPage {
 
        public function getQueryInfo() {
                $dbr = wfGetDB( DB_REPLICA );
-               // strip everything past first wildcard, so that
-               // index-based-only lookup would be done
-               list( $this->mungedQuery, $clause ) = self::mungeQuery( $this->mQuery, $this->mProt );
+
+               if ( $this->mQuery === '*' && $this->mProt !== '' ) {
+                       $this->mungedQuery = [
+                               'el_index_60' . $dbr->buildLike( $this->mProt, $dbr->anyString() ),
+                       ];
+               } else {
+                       $this->mungedQuery = LinkFilter::getQueryConditions( $this->mQuery, [
+                               'protocol' => $this->mProt,
+                               'oneWildcard' => true,
+                               'db' => $dbr
+                       ] );
+               }
                if ( $this->mungedQuery === false ) {
                        // Invalid query; return no results
                        return [ 'tables' => 'page', 'fields' => 'page_id', 'conds' => '0=1' ];
                }
 
-               $stripped = LinkFilter::keepOneWildcard( $this->mungedQuery );
-               $like = $dbr->buildLike( $stripped );
+               $orderBy = [];
+               if ( !isset( $this->mungedQuery['el_index_60'] ) ) {
+                       $orderBy[] = 'el_index_60';
+               }
+               $orderBy[] = 'el_id';
+
                $retval = [
                        'tables' => [ 'page', 'externallinks' ],
                        'fields' => [
@@ -207,11 +189,13 @@ class LinkSearchPage extends QueryPage {
                                'value' => 'el_index',
                                'url' => 'el_to'
                        ],
-                       'conds' => [
-                               'page_id = el_from',
-                               "$clause $like"
-                       ],
-                       'options' => [ 'USE INDEX' => $clause ]
+                       'conds' => array_merge(
+                               [
+                                       'page_id = el_from',
+                               ],
+                               $this->mungedQuery
+                       ),
+                       'options' => [ 'ORDER BY' => $orderBy ]
                ];
 
                if ( $this->mNs !== null && !$this->getConfig()->get( 'MiserMode' ) ) {
@@ -248,9 +232,7 @@ class LinkSearchPage extends QueryPage {
 
        /**
         * Override to squash the ORDER BY.
-        * We do a truncated index search, so the optimizer won't trust
-        * it as good enough for optimizing sort. The implicit ordering
-        * from the scan will usually do well enough for our needs.
+        * Not much point in descending order here.
         * @return array
         */
        function getOrderFields() {
index 5cbad8a..3ce786e 100644 (file)
@@ -137,8 +137,9 @@ class MovePageForm extends UnlistedSpecialPage {
         * @param array $err Error messages. Each item is an error message.
         *    It may either be a string message name or array message name and
         *    parameters, like the second argument to OutputPage::wrapWikiMsg().
+        * @param bool $isPermError Whether the error message is about user permissions.
         */
-       function showForm( $err ) {
+       function showForm( $err, $isPermError = false ) {
                $this->getSkin()->setRelevantTitle( $this->oldTitle );
 
                $out = $this->getOutput();
@@ -235,9 +236,13 @@ class MovePageForm extends UnlistedSpecialPage {
                }
 
                if ( count( $err ) ) {
-                       $action_desc = $this->msg( 'action-move' )->plain();
-                       $errMsgHtml = $this->msg( 'permissionserrorstext-withaction',
-                               count( $err ), $action_desc )->parseAsBlock();
+                       if ( $isPermError ) {
+                               $action_desc = $this->msg( 'action-move' )->plain();
+                               $errMsgHtml = $this->msg( 'permissionserrorstext-withaction',
+                                       count( $err ), $action_desc )->parseAsBlock();
+                       } else {
+                               $errMsgHtml = $this->msg( 'cannotmove', count( $err ) )->parseAsBlock();
+                       }
 
                        if ( count( $err ) == 1 ) {
                                $errMsg = $err[0];
@@ -542,7 +547,7 @@ class MovePageForm extends UnlistedSpecialPage {
                        $permErrors = $nt->getUserPermissionsErrors( 'delete', $user );
                        if ( count( $permErrors ) ) {
                                # Only show the first error
-                               $this->showForm( $permErrors );
+                               $this->showForm( $permErrors, true );
 
                                return;
                        }
@@ -596,7 +601,7 @@ class MovePageForm extends UnlistedSpecialPage {
 
                $permStatus = $mp->checkPermissions( $user, $this->reason );
                if ( !$permStatus->isOK() ) {
-                       $this->showForm( $permStatus->getErrorsArray() );
+                       $this->showForm( $permStatus->getErrorsArray(), true );
                        return;
                }
 
index 95304b0..316748d 100644 (file)
@@ -15,12 +15,16 @@ class TitlesMultiselectWidget extends \OOUI\Widget {
        protected $titlesArray = [];
        protected $inputName = null;
        protected $inputPlaceholder = null;
+       protected $tagLimit = null;
+       protected $showMissing = null;
 
        /**
         * @param array $config Configuration options
         *   - array $config['titles'] Array of titles to use as preset data
         *   - array $config['placeholder'] Placeholder message for input
         *   - array $config['name'] Name attribute (used in forms)
+        *   - number $config['tagLimit'] Maximum number of selected titles
+        *   - bool $config['showMissing'] Show missing pages
         */
        public function __construct( array $config = [] ) {
                parent::__construct( $config );
@@ -35,6 +39,12 @@ class TitlesMultiselectWidget extends \OOUI\Widget {
                if ( isset( $config['placeholder'] ) ) {
                        $this->inputPlaceholder = $config['placeholder'];
                }
+               if ( isset( $config['tagLimit'] ) ) {
+                       $this->tagLimit = $config['tagLimit'];
+               }
+               if ( isset( $config['showMissing'] ) ) {
+                       $this->showMissing = $config['showMissing'];
+               }
 
                $textarea = new MultilineTextInputWidget( [
                        'name' => $this->inputName,
@@ -59,6 +69,12 @@ class TitlesMultiselectWidget extends \OOUI\Widget {
                if ( $this->inputPlaceholder !== null ) {
                        $config['placeholder'] = $this->inputPlaceholder;
                }
+               if ( $this->tagLimit !== null ) {
+                       $config['tagLimit'] = $this->tagLimit;
+               }
+               if ( $this->showMissing !== null ) {
+                       $config['showMissing'] = $this->showMissing;
+               }
 
                $config['$overlay'] = true;
                return parent::getConfig( $config );
index 5300808..e4bf715 100644 (file)
        "rcfilters-other-review-tools": "Ander hulpmiddels",
        "rcfilters-group-results-by-page": "Groepeer resultate per bladsy",
        "rcfilters-activefilters": "Aktiewe filters",
+       "rcfilters-activefilters-hide": "Versteek",
        "rcfilters-advancedfilters": "Gevorderde filters",
        "rcfilters-limit-title": "Wysigings om te wys",
        "rcfilters-limit-and-date-label": "{{PLURAL:$1|wysiging|$1 wysigings}}, $2",
index 0cc8e95..9151b80 100644 (file)
        "recentchanges-page-removed-from-category": "أزيلت [[:$1]] من التصنيف",
        "recentchanges-page-removed-from-category-bundled": "أزيلت [[:$1]] من التصنيف، [[Special:WhatLinksHere/$1|هذه الصفحة مضمنة في صفحات أخرى]]",
        "autochange-username": "تغيير آلي لميدياويكي",
-       "upload": "ارÙ\81ع Ù\85Ù\84Ù\81ا",
+       "upload": "رÙ\81ع Ù\85Ù\84Ù\81",
        "uploadbtn": "ارفع الملف",
        "reuploaddesc": "إلغاء الرفع والرجوع إلى استمارة الرفع",
        "upload-tryagain": "أرسل وصف ملف معدل",
        "listgrants-summary": "التالي هو قائمة بالمنح بعمليات الوصول لصلاحيات المستخدم المصاحبة لها. المستخدمون يمكنهم إعطاء صلاحية للتطبيقات لاستخدام حساباتهم، ولكن بسماحات محدودة بناء على المنح التي أعطاها المستخدم للتطبيق. تطبيق يعمل بالنيابة عن مستخدم لا يمكنه استخدام الصلاحيات التي لا يمتلكها المستخدم بالفعل.\nربما تكون هناك [[{{MediaWiki:Listgrouprights-helppage}}|معلومات إضافية]] حول الصلاحيات الفردية.",
        "listgrants-grant": "المنحة",
        "listgrants-rights": "الصلاحيات",
-       "trackingcategories": "تصانيف التتبع",
-       "trackingcategories-summary": "تسرد هذه الصفحة تصانيف التتبع التي ينشئها برنامج ميدياويكي. يمكن تغيير أسمائها بتغيير رسائل النظام في نطاق {{ns:8}}.",
-       "trackingcategories-msg": "تصانيف التتبع",
+       "trackingcategories": "تصنيفات التتبع",
+       "trackingcategories-summary": "تسرد هذه الصفحة تصنيفات التتبع التي ينشئها برنامج ميدياويكي. يمكن تغيير أسمائها بتغيير رسائل النظام في نطاق {{ns:8}}.",
+       "trackingcategories-msg": "تصنيف التتبع",
        "trackingcategories-name": "اسم الرسالة",
        "trackingcategories-desc": "معايير إدراج تصنيف",
        "restricted-displaytitle-ignored": "الصفحات بعناوين عرض تم تجاهلها",
index 939c157..f979bd3 100644 (file)
        "dellogpage": "Журнал выдаленняў",
        "dellogpagetext": "Ніжэй паказаны спіс апошніх выдаленняў.",
        "deletionlog": "журнал выдаленняў",
+       "log-name-create": "Журнал стварэння старонак",
+       "log-description-create": "Ніжэй прыведзены спіс апошніх стварэнняў старонак.",
+       "logentry-create-create": "$1 {{GENDER:$2|стварыў|стварыла}} старонку $3",
        "reverted": "Адкочана да ранейшай версіі",
        "deletecomment": "Прычына:",
        "deleteotherreason": "Іншы/дадатковы повад:",
index 6def10b..01f07b4 100644 (file)
        "filehist-comment": "Comentari",
        "imagelinks": "Ús del fitxer",
        "linkstoimage": "{{PLURAL:$1|La pàgina següent utilitza|Les $1 pàgines següents utilitzen}} aquest fitxer:",
-       "linkstoimage-more": "Hi ha més de $1 {{PLURAL:$1|pàgina que enllaça|pàgines que enllacen}} a aquest fitxer.\nLa següent llista només mostra {{PLURAL:$1|la primera d'aquestes pàgines|les primeres $1 d'aquestes pàgines}}.\nPodeu consultar la [[Special:WhatLinksHere/$2|llista completa]].",
-       "nolinkstoimage": "No hi ha pàgines que enllacin a aquesta imatge.",
+       "linkstoimage-more": "Hi ha més de $1 {{PLURAL:$1|pàgina que utilitza|pàgines que utilitzen}} aquest fitxer.\nLa següent llista només mostra {{PLURAL:$1|la primera d'aquestes pàgines|les primeres $1 d'aquestes pàgines}} que utilitzen aquest fitxer.\nPodeu consultar la [[Special:WhatLinksHere/$2|llista completa]].",
+       "nolinkstoimage": "No hi ha pàgines que utilitzin aquest fitxer.",
        "morelinkstoimage": "Visualitza [[Special:WhatLinksHere/$1|més enllaços]] que porten al fitxer.",
        "linkstoimage-redirect": "$1 (fitxer redirigit) $2",
        "duplicatesoffile": "{{PLURAL:$1|Aquest fitxer és un duplicat del que apareix a continuació|A continuació s'indiquen els $1 duplicats d'aquest fitxer}} ([[Special:FileDuplicateSearch/$2|vegeu-ne més detalls]]):",
        "prefixindex": "Totes les pàgines per prefix",
        "prefixindex-namespace": "Totes les pàgines amb prefix (espai de noms $1)",
        "prefixindex-submit": "Mostra",
-       "prefixindex-strip": "Suprimeix el prefix a la llista",
+       "prefixindex-strip": "Amaga el prefix en els resultats",
        "shortpages": "Pàgines curtes",
        "longpages": "Pàgines llargues",
        "deadendpages": "Pàgines atzucac",
        "special-characters-title-endash": "guió curt",
        "special-characters-title-emdash": "guió llarg",
        "special-characters-title-minus": "signe menys",
-       "mw-widgets-abandonedit": "Esteu segurd que voleu tornar a la pàgina sense desar abans?",
+       "mw-widgets-abandonedit": "Esteu segur que voleu deixar el mode d'edició sense desar abans?",
        "mw-widgets-abandonedit-discard": "Descarta les edicions",
        "mw-widgets-abandonedit-keep": "Continua editant",
        "mw-widgets-abandonedit-title": "N'esteu segur?",
index f20f365..ba6353f 100644 (file)
        "move-watch": "Watch source page and target page",
        "movepagebtn": "Move page",
        "pagemovedsub": "Move succeeded",
+       "cannotmove": "The page could not be moved, for the following {{PLURAL:$1|reason|reasons}}:",
        "movepage-moved": "<strong>\"$1\" has been moved to \"$2\"</strong>",
        "movepage-moved-redirect": "A redirect has been created.",
        "movepage-moved-noredirect": "The creation of a redirect has been suppressed.",
        "dberr-again": "Try waiting a few minutes and reloading.",
        "dberr-info": "(Cannot access the database: $1)",
        "dberr-info-hidden": "(Cannot access the database)",
-       "dberr-usegoogle": "You can try searching via Google in the meantime.",
-       "dberr-outofdate": "Note that their indexes of our content may be out of date.",
-       "dberr-cachederror": "This is a cached copy of the requested page, and may not be up to date.",
        "htmlform-invalid-input": "There are problems with some of your input.",
        "htmlform-select-badoption": "The value you specified is not a valid option.",
        "htmlform-int-invalid": "The value you specified is not an integer.",
index cb1d302..6d466f1 100644 (file)
                        "AHmed Khaled",
                        "Caleidoscopic",
                        "ديفيد",
-                       "LittlePuppers"
+                       "LittlePuppers",
+                       "Theklan"
                ]
        },
        "tog-underline": "Subrayar los enlaces:",
        "ipb-disableusertalk": "Impedir que este usuario edite su propia página de discusión mientras esté bloqueado",
        "ipb-change-block": "Rebloquear al usuario con estos datos",
        "ipb-confirm": "Confirmar bloqueo",
+       "ipb-pages-label": "Páginas",
        "badipaddress": "La dirección IP no tiene el formato correcto.",
        "blockipsuccesssub": "Bloqueo realizado con éxito",
        "blockipsuccesstext": "\"[[Special:Contributions/$1|$1]]\" ha sido bloqueado.<br />\nVéase la [[Special:BlockList|lista de bloqueos]] para revisarlo.",
        "createaccountblock": "creación de cuenta bloqueada",
        "emailblock": "correo electrónico bloqueado",
        "blocklist-nousertalk": "no puede editar su propia página de discusión",
+       "blocklist-editing": "editando",
        "ipblocklist-empty": "La lista de bloqueos está vacía.",
        "ipblocklist-no-results": "El nombre de usuario o IP indicado no está bloqueado.",
        "blocklink": "bloquear",
index 5dfd3c9..2b481b2 100644 (file)
@@ -68,7 +68,8 @@
                        "Alireza Ivaz",
                        "Iriman",
                        "Matěj Suchánek",
-                       "Amirsara"
+                       "Amirsara",
+                       "Physicsch"
                ]
        },
        "tog-underline": "خط کشیدن زیر پیوندها:",
        "prefixindex": "تمام صفحات با پیشوند",
        "prefixindex-namespace": "همهٔ صفحه‌های دارای پیشوند (فضای‌نام $1)",
        "prefixindex-submit": "نمایش",
-       "prefixindex-strip": "حذÙ\81 Ù¾Û\8cØ´Ù\88Ù\86د Ø¯Ø± Ù\81Ù\87رست",
+       "prefixindex-strip": "حذÙ\81 Ù¾Û\8cØ´Ù\88Ù\86د Ø¯Ø± Ù\86تاÛ\8cج",
        "shortpages": "صفحه‌های کوتاه",
        "longpages": "صفحه‌های بلند",
        "deadendpages": "صفحه‌های بن‌بست",
        "special-characters-title-emdash": "خط فاسله کشیده",
        "special-characters-title-minus": "علامت منفی",
        "mw-widgets-abandonedit": "مطمئنید که می‌خواهید بدون ذخیره‌سازی حالت ویرایش را ترک کنید؟",
-       "mw-widgets-abandonedit-discard": "درنظر نگرفتن ویرایش‌ها",
+       "mw-widgets-abandonedit-discard": "چشم‌پوشی از ویرایش‌ها",
        "mw-widgets-abandonedit-keep": "ادامه دادن به ویرایش",
        "mw-widgets-abandonedit-title": "آیا مطمئن هستید؟",
        "mw-widgets-dateinput-no-date": "هیچ داده‌ای انتخاب نشده",
        "passwordpolicies-policy-passwordcannotmatchblacklist": "گذرواژه نمی‌تواند مشابه گذرواژه‌های فهرست شده در فهرست سیاه باشد",
        "passwordpolicies-policy-maximalpasswordlength": "گذرواژه باید کمتر از $1 {{PLURAL:$1|نویسه|نویسه}} طول داشته باشد",
        "passwordpolicies-policy-passwordcannotbepopular": "گذرواژه نمی‌تواند {{PLURAL:$1|گذرواژه پراستفاده باشد|در فهرست $1 گذرواژه‌های پراستفاده باشد}}",
-       "easydeflate-invaliddeflate": "محتوی تهیه‌شده به صورت درست خالی نشده‌است"
+       "easydeflate-invaliddeflate": "محتوی تهیه‌شده به صورت درست خالی نشده‌است",
+       "unprotected-js": "به دلایل امنیتی، جاوااسکریپت نمی‌تواند از صفحات محافظت‌نشده بارگیری شود. لطفا جاوااسکریپت را تنها در فضای نام مدیاویکی: و یا در زیرصفحهٔ کاربری خودتان ایجاد کنید."
 }
index 6292fe3..dc0fa69 100644 (file)
                        "KATRINE1992",
                        "Friday83260",
                        "Niridya",
-                       "Pamputt"
+                       "Pamputt",
+                       "Ash Crow"
                ]
        },
        "tog-underline": "Soulignement des liens :",
        "pageinfo-display-title": "Titre affiché",
        "pageinfo-default-sort": "Clé de tri par défaut",
        "pageinfo-length": "Taille de la page (en octets)",
-       "pageinfo-article-id": "Numéro de la page",
+       "pageinfo-article-id": "ID de la page",
        "pageinfo-language": "Langue du contenu de la page",
        "pageinfo-language-change": "modifier",
        "pageinfo-content-model": "Modèle de contenu de la page",
index c30928f..e700b5d 100644 (file)
        "special-characters-group-ipa": "IPA",
        "special-characters-group-symbols": "Sümboolen",
        "special-characters-group-greek": "Griichisk",
+       "special-characters-group-greekextended": "Griichisk, ütjwidjet",
        "special-characters-group-cyrillic": "Kyrilisk",
        "special-characters-group-arabic": "Araabisk",
        "special-characters-group-arabicextended": "Araabisk, ütjwidjet",
        "special-characters-group-thai": "Thai",
        "special-characters-group-lao": "Laotisk",
        "special-characters-group-khmer": "Khmer",
+       "special-characters-group-canadianaboriginal": "Kanaadisk silwenskraft",
        "special-characters-title-endash": "seenkstreg",
        "special-characters-title-emdash": "speegelstreg",
        "special-characters-title-minus": "minus tiaken",
index f3b8433..c35f7fe 100644 (file)
        "special-characters-title-emdash": "raia",
        "special-characters-title-minus": "signo menos",
        "mw-widgets-abandonedit": "Está seguro de querer saír do modo de edición sen gardar primeiro?",
-       "mw-widgets-abandonedit-discard": "Desbotar as edicións",
+       "mw-widgets-abandonedit-discard": "Desbotar edicións",
        "mw-widgets-abandonedit-keep": "Continuar editando",
        "mw-widgets-abandonedit-title": "Está seguro?",
        "mw-widgets-dateinput-no-date": "Non se seleccionou ningunha data",
index f31742b..0fcdb86 100644 (file)
        "showpreview": "Zholok dakhoi",
        "showdiff": "Bodol dakhoi",
        "anoneditwarning": "<strong>Chotrai:</strong> Tuven sotrorombh korunk nai. Tu bodol korit zalear tuzo IP pot'to soglleank polleunk zatelem. Tu <strong>[$1 sotrorombh korit]</strong> vo <strong>[$2 kont rochit]</strong> zalear, tuje bodol tuzo vagddiachem nanvak zoddteleo ani anik-ui faide asat.",
-       "missingcommenttext": "Upkar korun tumcheo xiro boroi.",
+       "missingcommenttext": "Upkar korun tuzo xero boroi.",
        "blockedtitle": "Vapurpeak addaila",
        "blockedtext": "<strong>Tujem vaporpeachem nanv vo IP pot'to addavpant aila.</strong>\n\nAddavop $1 hannem kelam.\nKaronn dilam tem <em>$2</em>.\n\n* Addavpachi survat: $8\n* Addavpachea somp’pacho vell: $6\n* Addavpak ievjila: $7\n\nTujean $1-ak vo dusrea [[{{MediaWiki:Grouppage-sysop}}|karbhariak]] addavnne bodol bhasabhas korunk sompork korunk zata. Tujean \"{{int:emailuser}}\" sobhavgunn vaprunk zaina kheriz ek void email pot'to tujea [[Special:Preferences|khatem posontint]] nischit kelea xivai ani tuka tem vaporpak addavnk na zalear. Tuzo chalont IP pot'to asa $3, ani addavnnecheo ank #$5 asa. Soglleo voileo bariksanno tum kortai tea vicharant somavex kor.",
        "blockednoreason": "Kainch karonn diunk na",
        "accmailtitle": "Gupitutor dhaddlea",
        "newarticle": "(Novem)",
        "newarticletext": "Tuven ek zoddneche patlav kelai, zachem pan azun rochunk na.\nPan rochunk, khallchea chovkottan boroi (anik mahitik [$1 adar pan] polloi).\nTu hangasor chukin pavlai zalear tujea internet browser-achi '''Fatim'' vo '''Back''' butao dab.",
-       "anontalkpagetext": "----\n<em>Hem bhasabhasechem pan ek ninami vaporpeak zannem ozun ek khatem ugddunk na, vo to tem vaporna.</em>\nHea khatir amkam ankddeancho IP pot'to vaprunk podta taka vollkhunk.\nToslo IP pot'to sabar vaporpeamni vaprum ieta.\nTum zor ek ninami vaporpi asa ani tuka dista ki sombondit commentario tuje vixim keleat, upkar korun [[Special:CreateAccount|ek khatem roch]] vo [[Special:UserLogin|log in]] fuddle guspop ninami vaporpeanchem tallunk.‎",
+       "anontalkpagetext": "----\n<em>Hem bhasabhasechem pan ek ninami vaporpeak zannem ozun ek khatem ugddunk na, vo to tem vaporna.</em>\nHea khatir amkam ankddeancho IP pot'to vaprunk podta taka vollkhunk.\nToslo IP pot'to sabar vaporpeamni vaprum ieta.\nTum zor ek ninami vaporpi asa ani tuka dista ki sombondit xere tuje vixim keleat, upkar korun [[Special:CreateAccount|ek khatem roch]] vo [[Special:UserLogin|log in]] fuddle guspop ninami vaporpeanchem tallunk.‎",
        "noarticletext": "Sodheak hem pan rinte asa.\nTujean dusrea panani [[Special:Search/{{PAGENAME}}|hea panache nanv sodunk zata]], <span class=\"plainlinks\">[{{fullurl:{{#Special:Log}}|page={{FULLPAGENAMEE}}}} sombondhi sotrani sodunk zata], vo [{{fullurl:{{FULLPAGENAME}}|action=edit}} hem pan rochunk zata]</span>.",
        "noarticletext-nopermission": "Sodheak hem pan rinte asa.\nTujean dusrea panani [[Special:Search/{{PAGENAME}}|hea panache nanv sodunk zata]], vo <span class=\"plainlinks\">[{{fullurl:{{#Special:Log}}|page={{FULLPAGENAMEE}}}} sombondhi sotrani sodunk zata], pun tuka hem pan rochunk porvangi na.",
        "userpage-userdoesnotexist-view": "\"$1\" hea vapurpeachea khateachi nondnni korunk na.",
        "filehist-nothumb": "Lhan-imaz na",
        "filehist-user": "Vapurpi",
        "filehist-dimensions": "Akar",
-       "filehist-comment": "vivek",
+       "filehist-comment": "Xero",
        "imagelinks": "Faylicho vapor",
        "linkstoimage": "{{PLURAL:$1|Hem pan|$1 Him panam}} hi fayl {{PLURAL:$1|vaporta|vaportat}}:",
        "linkstoimage-more": "$1 poros odik {{PLURAL:$1|pan vaporta|panam vaporta}} hi fayl.\nSokoili volleri dakhoita {{PLURAL:$1|poilem pan|poilim $1 panam}} jem hich fayl vaporta. Ek [[Special:WhatLinksHere/$2|purnn volleri]] uplobdh asa.‎",
        "redirect-revision": "Panachi uzollnni",
        "redirect-file": "Faylichem nanv",
        "specialpages": "Vixex panam",
-       "external_image_whitelist": " #Hi voll asa toxich dovor<pre>\n#Khala sodpache sache (''regular expressions'') ghal (fokot // modem voita poi tem bhag)\n#Hanche borobor bhaile zodlele murt comparar kel'le zatele\n#Mell khatat tim murt koxeo distele, na zalear fokot mortek ek zodd distele\n#Jeo voll #-an suru zatele tem vivek mhunn manlele zatele\n#Hanga vhodle and dhakte okxora modem forok podona\n\n#Soglle sodpache sache hea volla voir ghal. Hi voll asa toxich dovor</pre>",
+       "external_image_whitelist": " #Hi voll asa toxich dovor<pre>\n#Khala sodpache sache (''regular expressions'') ghal (fokot // modem voita poi tem bhag)\n#Hanche borobor bhaile zodlele murt comparar kel'le zatele\n#Mell khatat tim murt koxeo distele, na zalear fokot mortek ek zodd distele\n#Jeo voll #-an suru zatele tem xere mhunn manlele zatele\n#Hanga vhodle and dhakte okxora modem forok podona\n\n#Soglle sodpache sache hea volla voir ghal. Hi voll asa toxich dovor</pre>",
        "tag-filter": "[[Special:Tags|Kurvechit]] challni:",
        "tag-list-wrapper": "([[Special:Tags|{{PLURAL:$1|Kurvechit|Kurvechiti}}]]: $2)",
        "tags-active-yes": "Hoi",
        "logentry-delete-restore": "$1 hannem {{GENDER:$2|porot haddlam}} pan $3 ($4)‎",
        "logentry-delete-revision": "$1 hannem {{PLURAL:$5|uzolliechem}} disnem  $3, hea panar {{GENDER:$2|bodol’la}}: $4‎",
        "revdelete-content-hid": "mozkur lipoila",
-       "logentry-move-move": "$1-an $3 panak $4 {{GENDER:$2|haloilea}}",
+       "logentry-move-move": "$1, hannem $3 panak $4 {{GENDER:$2|haloilea}}",
        "logentry-move-move-noredirect": "$1, hannem pan $3 savn $4 {{GENDER:$2|haloilam}} punornirdexon dorinastanam‎",
        "logentry-move-move_redir": "$1 hannem pan $3 savn $4 {{GENDER:$2|haloilolo}} punornirdexonavoir",
        "logentry-patrol-patrol-auto": "$1-an $3, hea panachem $4, hea uzollniecho paro kelam mhonn apoap {{GENDER:$2|khunnailam}}.",
index 9417a00..27cebd4 100644 (file)
        "tog-shownumberswatching": "Aazahl Benutzer aazeige, wo ne Syten am Aaluege sy (i den Artikelsyte, i de «letschten Änderigen» und i der Beobachtigslischte)",
        "tog-oldsig": "Aktuelli Unterschrift:",
        "tog-fancysig": "Unterschrift as Wikitext behandle (ohni automatischi Verlinkig)",
-       "tog-uselivepreview": "Vorschau sofort aazeige",
+       "tog-uselivepreview": "Vorschau ohni Neilade vu dr Syte aazaige",
        "tog-forceeditsummary": "Sag mer s, wänn i s Zämmefassigsfeld läär loss",
        "tog-watchlisthideown": "Eigeni Änderige uf d Beobachtigslischt usblände",
        "tog-watchlisthidebots": "Bot-Änderige in d Beobachtigslischt usblende",
        "tog-watchlisthideminor": "Chlyni Änderige nit in de Beobachtigslischte aazeige",
        "tog-watchlisthideliu": "Bearbeitige vu aagmäldete Benutzer usblände",
        "tog-watchlistreloadautomatically": "Wänn e Filter gänderet woren isch, d Beobachtigslischt automatisch nei lade (brucht JavaScript)",
+       "tog-watchlistunwatchlinks": "Diräkti Nimi-Beobachte-/Beobachte-Markierige ({{int:Watchlist-unwatch}}/{{int:Watchlist-unwatch-undo}}) zue beobachtete Syte mit Ändrige zuefiege (doderfiur bruucht s JavaScript)",
        "tog-watchlisthideanons": "Bearbeitige vu anonyme Benutzer (IP-Adresse) usblände",
        "tog-watchlisthidepatrolled": "vum Fäldhieter aagluegti Änderige in dr Beobachtigslischt usblände",
        "tog-watchlisthidecategorization": "Kategorisierig vo de Syte nid zeige",
index 56c19b1..6948d3e 100644 (file)
        "special-characters-title-endash": "kötőjel",
        "special-characters-title-emdash": "hosszú kötőjel",
        "special-characters-title-minus": "minusz jel",
-       "mw-widgets-abandonedit": "Biztosan el szeretnéd hagyni a szerkesztés módot mentés nélkül?",
+       "mw-widgets-abandonedit": "Biztosan el szeretnéd hagyni a szerkesztési módot mentés nélkül?",
        "mw-widgets-abandonedit-discard": "Változtatások elvetése",
        "mw-widgets-abandonedit-keep": "Szerkesztés folytatása",
        "mw-widgets-abandonedit-title": "Biztos vagy benne?",
index 7d80382..5db6fcb 100644 (file)
@@ -78,7 +78,7 @@
        "subcategories": "ကၞါင့်ကါင်ဖါသယ်",
        "category-media-header": "အ်ုဆုဂ် \"$1\" ခဝ့် လိက်မေံလ်ုဖး",
        "category-empty": "<em>ဆ်ုဆုဂ်ယိုဝ် ခိင်ခါ့အိုဝ် လိက်မေံၜၠါ်လ်ုဖး လ်ုမွာဲၜး မီဒီယ်ုလ်ုဖး လ်ုအှ်ၜး။</em>",
-       "hidden-categories": "{{PLURAL:$1|အ်ှကှ်ေသူးထါ့ ကဏ္ဍ|အ်ှကှ်ေသူးထါ့ ကဏ္ဍသယ်}}",
+       "hidden-categories": "{{PLURAL:$1|အ်ှကှ်ေသူးထ အ်ုဆောတ်|အ်ှကှ်ေသူးထ အ်ုဆောတ်လ်ုဖး}}",
        "category-subcat-count": "{{PLURAL:$2|ဆ်ုဆုဂ်ယိုဝ် အ်ုဖံင့်လာ ဆ်ုဆုဂ်ကါင်ဖါလှ် အ်ှဝေ့ဍး။ |ဆ်ုဆုဂ်ယိုဝ် ကုံကံင်း $2 ၮါင်း သယ်လ်ုဖးခဝ့် အ်ုဖံင့်လာ {{PLURAL:$1|ဆ်ုဆုဂ်ကါင်ဖါ|ဆ်ုဆုဂ်ကါင်ဖါလ်ုဖး $1 ၮါင်း}} အ်ှဆေဝ်ႋ။}}",
        "category-article-count": "{{PLURAL:$2|ဆ်ုဆုဂ်ယိုဝ် အ်ုဖံင့်လာလိက်မေံလှ်အ်ှ။|ကုံကံင်း $2 ခဝ့်ၮှ် ဖံင့်လာ {{PLURAL:$1|လိက်မေံၜၠါ်|လိက်မေံၜၠါ်လ်ုဖး $1 ၮါင်းၮှ်}} ဆ်ုဆုဂ်ဖိုင်ယိုဝ် အ်ှလှ်။}}",
        "category-file-count": "{{PLURAL:$2|ဆ်ုဆုဂ်ယိုဝ် အ်ုဖံင့်လာလိက်မေံလှ်အ်ှ။|ကုံကံင်း $2 ခဝ့်ၮှ် ဖံင့်လာ {{PLURAL:$1|လိက်မေံၜၠါ်|လိက်မေံၜၠါ်လ်ုဖး $1 ၮါင်းၮှ်}} ဆ်ုဆုဂ်ဖိုင်ယိုဝ် အ်ှလှ်။}}",
        "about": "အ်ုကျံင်",
        "article": "ပ်ုယုံ့ခေါဟ်တင်လိက်မေံၜၠာ်",
        "newwindow": "(ဝင်းဒိုးသင့်လ်ုၮါင်းဝယ် မ်ုပုဂ်ထုင်း)",
-       "cancel": "á\80\99á\80¬á\80\9cá\80¾á\80ºá\80±á\80¡á\80±း",
+       "cancel": "á\80\9cá\80ºá\80¯á\80\99á\80¬á\80\9cá\80­á\80¯á\80\84á\80ºá\81\9cး",
        "moredotdotdot": "ၰိုဲမေံၜၠာ်...",
        "morenotlisted": "စ်ုရင့်ယိုဝ် ဍုဂ်ပါင်အေ့ယာႋ။",
        "mypage": "လက်မေံသး",
        "mytalk": "ဆ်ုခၠါင်ကါင်ကါ",
-       "anontalk": "á\80\86á\80ºá\80¯á\80\81á\81 á\80«á\80\84á\80ºá\80\80á\80\84á\80ºá\80\80á\80¬",
+       "anontalk": "á\80\86á\80ºá\80¯á\80\81á\81 á\80«á\80\84á\80ºá\80\80á\80«á\80\84á\80ºá\80\80á\80«",
        "navigation": "ပ်ုယုံ့",
        "and": "&#32;လ်ု",
        "faq": "ဆ်ုအင်းစာအးသယ်လ်ုဖး",
        "history_small": "မေင်ႋစိင်",
        "updatedmarker": "လေဝ်ယောဝ်ႋဝေ့အ်ုလါင်ခါင့်ခါ့ အင်းတင်ထဝေ့",
        "printableversion": "ပ်ုရင့်ထင်ႋၮေဝ်ႋ ဗားရှင်း",
-       "permalink": "á\80\86á\80ºá\80¯á\80\9eá\80¯á\80\82á\80ºá\80\80á\81 á\80\9aá\80ºá\80\9eá\80®á\80·",
+       "permalink": "á\80¡á\80ºá\80¯á\80\9cá\80\84á\80ºá\80\95á\80ºá\80¯á\80\9aá\80¯á\80¶á\80·á\80\81á\80­á\80¯á\80\84á\80·á\80º",
        "print": "ထုဂ်ထင်းလိက်",
        "view": "မ်ုယောဝ်ႋ",
        "view-foreign": "မ်ုယောဝ်ႋ $1 ဝယ်",
-       "edit": "á\80¡á\80\84á\80ºá\82\8bá\80\90á\80\84á\80ºá\82\8b",
+       "edit": "á\80\9eá\80¶á\80\84á\80·á\80ºá\81\9cá\80¸á\81¯á\80´",
        "edit-local": "အှ်လင်ကၠယ် ဆ်ုတုဂ်ကၠယ် မ်ုအင်းတင်လင်",
        "create": "ပ္တုံထံင်း",
        "create-local": "အှ်လင်ကၠယ် ဆ်ုတုဂ်ကၠယ် မ်ုဆူ့ဍုဂ်လင်",
        "protect_change": "မ်ုအင်းလယ်",
        "unprotect": "ဝီးၜါ်ထ မ်ုအင်းလယ်",
        "newpage": "လိက်မေံသင့်",
-       "talkpagelinktext": "á\80\86á\80ºá\80¯á\80\81á\81 á\80«á\80\84á\80ºá\80\80á\80\84á\80ºá\80\80á\80¬",
-       "specialpage": "လိက်မေံခေါဟ်",
+       "talkpagelinktext": "á\80\86á\80ºá\80¯á\80\81á\81 á\80«á\80\84á\80ºá\80\80á\80«á\80\84á\80ºá\80\80á\80«",
+       "specialpage": "á\80\9cá\80­á\80\80á\80ºá\80\99á\80±á\80¶á\81\9cá\81 á\80«á\80ºá\80\81á\80±á\80«á\80\9fá\80º",
        "personaltools": "ဟ်ုဆ်ုမာ ဆ်ုဖၠင့်",
-       "talk": "á\80\9cá\80\9dá\80ºá\80\91á\80¬á\80\84á\80ºá\80\80á\80\84á\80ºá\80\80á\80¬",
+       "talk": "á\80\9cá\80\9dá\80ºá\80\91á\80«á\80\84á\80ºá\80\80á\80«á\80\84á\80ºá\80\80á\80«",
        "views": "ဟ်ုဍးအ်ုလာၯင်သယ်အး",
-       "toolbox": "á\80\81á\80¼á\80®á\80\81á\80¼á\80¬á\80·á\80\9eá\80\9aá\80º",
+       "toolbox": "á\80\81á\80¼á\80®á\80\81á\80¼á\80¬á\80·á\80\9cá\80ºá\80¯á\80\96á\80¸",
        "tool-link-userrights": "{{GENDER:$1|ၮင့်ဆါႋ}}ကုံလွာဲသယ်လ်ုဖး မ်ုအင်းလယ်",
        "tool-link-userrights-readonly": "{{GENDER:$1|ၮင့်ဆါႋ}}ကုံလွာဲသယ်လ်ုဖး မ်ုယောဝ်ႋ",
        "tool-link-emailuser": "ယိုဝ်{{GENDER:$1|ၮင့်ဆါႋ}}ၮှ် မ်ုသုံ့အီမေံႋ",
        "viewhelppage": "မ်ုယောဝ်ႋဖိုင့်လိက်မေံ",
        "categorypage": "အ်ုဆုဂ်တုဂ်လိက်မေံသယ် မ်ုယောဝ်ႋ",
        "viewtalkpage": "မ်ုယောဝ်ႋ လဝ်ခၠါင်ဆ်ုခၠါင်",
-       "otherlanguages": "á\80\9cá\80­á\80\80á\80ºá\80\86á\80ºá\80¯á\80\81á\81 á\80«á\80\84á\80º á\80¡á\80ºá\80¯á\81¯á\80¬á\81¯á\80¶á\80\84á\80ºá\80\9eá\80\9aá\80º",
+       "otherlanguages": "á\80\9cá\80ºá\80¯á\80¡á\80ºá\80¯á\81°á\80¬á\82\8bá\81°á\80¶á\80\84á\80º á\80\86á\80ºá\80¯á\80\81á\81 á\80«á\80\84á\80ºá\80\98á\80¬á\82\8bá\80\9eá\80¬á\80·",
        "redirectedfrom": "($1 ခဝ့် ပ်ုယုံ့ထာ့)",
        "redirectpagesub": "ထါင်ၮဲအ်ုထိုဝ် လိက်မေံၜၠါ်",
        "redirectto": "က္ဍာထိုဝ်ၜုဂ် -",
        "protectedpage": "လိက်မေံဆ်ုဝီးၜါ်",
        "jumpto": "မ်ုၯယ့်ထါင်ယိုဝ်",
        "jumptonavigation": "ပ်ုယုံ့",
-       "jumptosearch": "á\80¡á\80\84á\80ºá\80¸á\81¯ူ့",
+       "jumptosearch": "á\80¡á\80\84á\80ºá\80¸á\81°ူ့",
        "pool-errorunknown": "လ်ုသီးယာ့ ဆ်ုမး",
        "poolcounter-usage-error": "ဆ်ုသုံႋဆာႋအ်ုမး: $1",
        "aboutsite": "အ်ုကျံင် {{SITENAME}}",
        "copyrightpage": "{{ns:project}}: ပ္တုံဆာပၞံင့်",
        "currentevents": "အ်ုခါ့ယိုဝ် ကဲထင်းလေဝ်သယ်",
        "currentevents-url": "Project:အ်ုခါ့ယိုဝ် ကဲထင်းလေဝ်သယ်",
-       "disclaimers": "á\80\90á\80\84á\80ºá\80\86á\80ºá\80¯á\80\81á\81 á\80«á\80\84á\80º",
+       "disclaimers": "á\81\9cá\80¸á\80\90á\80ºá\80¯á\80\90á\80­á\80\80á\80ºá\80\9cá\80ºá\80¯á\80\96á\80¸",
        "disclaimerpage": "Project:ကိုဝ်မိင်ကိုဝ်စိင် ၜးတ်ုဒှ်",
-       "edithelp": "á\80¡á\80\84á\80ºá\82\8bá\80\90á\80\84á\80ºá\82\8b á\80\86á\80ºá\80¯á\80\99á\80¬á\81\9cိုင်",
+       "edithelp": "á\80\9eá\80¶á\80\84á\80·á\80ºá\81\9cá\80¸á\81¯á\80´ á\80\99á\80¬á\81\9cá\80­á\80¯á\80\84á\80ºá\80\99á\80¬á\80\86ိုင်",
        "helppage-top-gethelp": "မာၜိုင်မာဆိုင်",
        "mainpage": "လိက်မေံၜၠါ်ခေါဟ်",
        "mainpage-description": "လိက်မေံယာ့",
        "portal": "အ်ုထိုဝ်အ်ုမေံလင်",
        "portal-url": "Project:အ်ုထိုဝ်အ်ုမေံလင်",
-       "privacy": "á\80\9fá\80ºá\80¯á\80\86á\80ºá\80¯á\80\99á\80¬á\80\9fá\80ºá\80¯ á\80\86á\80ºá\80¯á\80\96á\80¶á\80\84á\80ºá\80\96á\81 á\80±á\80\9dá\80º",
+       "privacy": "á\81\9cá\80¸á\80\86á\80«á\80\84á\80·á\80ºá\80\9fá\80ºá\80¯á\80\80á\80ºá\80¯á\80\86á\80¬á\82\8b á\80\86á\80ºá\80¯á\80\96á\80¶á\80\84á\80ºá\80\96á\81 á\80±á\80",
        "privacypage": "Project:ၜးဆိုင့်ဟ်ုဆ်ုမာ ပဝ်လ်ုဆီ",
        "ok": "အိုဝ်ကေ",
        "retrievedfrom": "မာၮေဝ်လှ် \"$1\"ခဝ့်",
        "youhavenewmessagesfromusers": "{{PLURAL:$4|ၮ်ုအ်ှဝယ်}} {{PLURAL:$3|ၰာၰံင်ဆ်ုသုံ့ဆာ|ဆ်ုသုံ့ဆာသယ်လ်ုဖး $3 ၯာႋ}} လ်ုခဝ့် $1 အ်ှဝေ့ဆေဝ်ႋလှ် ($2)။",
        "newmessageslinkplural": "{{PLURAL:$1|လိက်ထိုင့်သင့် လ်ုၜိင်း|999=လိက်ထိုင့်သင့် အ်ုသင့်သယ်လ်ုဖး}}",
        "newmessagesdifflinkplural": "ဆ်ုအင်းလယ် $1 {{PLURAL:$1|ၮါင်း|ၮါင်းလ်ုဖး}}",
-       "editsection": "á\80¡á\80\84á\80ºá\82\8bá\80\90á\80«á\80\84á\80º",
-       "editold": "á\80¡á\80\84á\80ºá\82\8bá\80\90á\80\84á\80ºá\82\8b",
+       "editsection": "á\80\9eá\80¶á\80\84á\80·á\80ºá\81\9cá\80¸á\81¯á\80´",
+       "editold": "á\80\9eá\80¶á\80\84á\80·á\80ºá\81\9cá\80¸á\81¯á\80´",
        "viewsourceold": "မ်ုယောဝ်ႋ အ်ုထိုဝ်",
-       "editlink": "á\80¡á\80\84á\80ºá\82\8bá\80\90á\80\84á\80ºá\82\8b",
+       "editlink": "á\80\9eá\80¶á\80\84á\80·á\80ºá\81\9cá\80¸á\81¯á\80´",
        "viewsourcelink": "မ်ုယောဝ်ႋ အ်ုထိုဝ်",
        "editsectionhint": "ကၞါင့်ယိုဝ် မ်ုအင်းတင်: $1",
        "toc": "ပ်ုယုံ့ခေါဟ်တင်",
-       "showtoc": "á\80\8dá\80¯á\80\82á\80ºá\81®ဲ",
+       "showtoc": "á\80\8dá\80¬á\80\8fဲ",
        "hidetoc": "အ်ှသူး",
        "collapsible-collapse": "မ်ုပေဝ်ႋက္ဍာ",
-       "collapsible-expand": "á\80\9cá\80\9dá\80ºá\80\9cá\80²á\80¬",
+       "collapsible-expand": "á\80\99á\80¬á\80\9cá\80¬á\80²",
        "confirmable-confirm": "{{GENDER:$1|ၮ်ု}} ထီ့ဆာႋဝး?",
        "confirmable-yes": "မွာဲ",
        "confirmable-no": "လ်ုမာၜး",
        "nstab-main": "လက်မေံသး",
        "nstab-user": "ဆ်ုသုံႋက်ုဆာႋ လိက်မေံၜၠာ်",
        "nstab-media": "မီဒီယ်ုလိက်မေံၜၠာ်",
-       "nstab-special": "á\80\9cá\80­á\80\80á\80ºá\80\99á\80±á\80ခေါဟ်",
+       "nstab-special": "á\80¡á\80ºá\80¯á\80\91á\80­á\80¯á\80\9dá\80ºခေါဟ်",
        "nstab-project": "ပ်ုရောဴဂျက်လိက်မေံၜၠါ်",
        "nstab-image": "ဖိုင်",
        "nstab-mediawiki": "လိက်ဖၠုံး",
        "nstab-template": "တန်ပ်ုလိတ်",
        "nstab-help": "ဆ်ုမာၜိုဝ်မာဆိုင် လိက်မေံၜၠာ်",
        "nstab-category": "အ်ုဆုဂ်တုဂ်",
-       "mainpage-nstab": "á\80\9cá\80­á\80\80á\80ºá\80\99á\80±á\80¶á\80\9aá\80¬á\80·",
+       "mainpage-nstab": "á\80\9cá\80­á\80\80á\80ºá\80\99á\80±á\80¶á\81\9cá\81 á\80«á\80ºá\80\81á\80±á\80«á\80\9fá\80º",
        "nosuchspecialpage": "ဗေ့ယိုဝ်သိုဝ် လိက်မေံၜၠါ်ခေါဟ် လ်ုအှ်ၜး",
        "nospecialpagetext": "<strong>ၮ်ုယိုဝ် လ်ုထီ့ဆာ့ၜး လိက်မေံခေါဟ်လ်ုၮါင်းအိုဝ် အင်းကိင်ဖှ်ေထဆေဝ်ႋလှ်။</strong>\n\nထီ့ဆာ့ လိက်မေံခေါဟ် စ်ုရင့်သယ် [[Special:SpecialPages|{{int:specialpages}}]] ခဝ့် ၮ်ုဍးၮေဝ်လှ်။",
        "error": "ဆ်ုမး",
        "databaseerror-error": "အ်ုမး: $1",
        "badtitle": "လိက်မေံဆ်ုနာႋ",
        "badtitletext": "အင်းကိင်ႋလင်ထ လိက်မေံၜၠါ် ခေါဟ်တင်ၮ်ှ လ်ုဖံင်ပၞံင့် (လ်ု) လ်ုအှ်မိင်ၜး (လ်ု) ၰာၰံင်ဘာႋသာ့လ်ုဖး(inter-language or inter-wiki title)အိုဝ် ထိုဝ်ၜုဂ်လင့်မးဝေ့လှ်။",
-       "viewsource": "á\80\99á\80ºá\80¯á\80\9aá\80±á\80¬á\80\9dá\80ºá\82\8bá\80¡á\80ºá\80¯á\80\9dá\80®á\80\81á\81\9eá\80¬",
+       "viewsource": "á\80\99á\80ºá\80¯á\80\9aá\80±á\80¬á\80\9dá\80ºá\82\8bá\80¡á\80ºá\80¯á\80\91á\80«á\80º",
        "viewsource-title": "$1အှ် အ်ုထိုဝ် မ်ုယောဝ်ႋ",
        "viewsourcetext": "လိက်မေံခေါဟ်အိုဝ် အ်ုထိုဝ် ယောဝ်ႋၯံင် ကေဝ်ဍံင်ၮေဝ်လှ်။",
        "userlogin-yourname": "က်ုဆာမိင်",
        "botpasswords-label-delete": "ထုဂ်ဆိင့်",
        "botpasswords-label-resetpassword": "ထုဂ်ဆိင့် ဝီးၜါ်ဖၠုံး",
        "passwordreset": "ၜီးၜါ်သင့် မ်ုအင်းတင်",
+       "changeemail-none": "(ပၠဝ်ပြေ)",
        "bold_sample": "လိက်ဖၠုံးသိုင့်",
        "bold_tip": "လိက်ဖၠုံးသိုင့်",
        "italic_sample": "လိက်ဖၠုံးပ်ု",
        "media_tip": "File လင့်",
        "sig_tip": "မူႋသင့်ခိင်ႋခါ့ၮဲဖှ်ေ ၮ်ုစူးဍံင်",
        "hr_tip": "ပၞံင့်ထီ့ဖါ (အင်းကုံဆၟိုဝ်လာႋ)",
-       "summary": "á\80¡á\80ºá\80¯á\80\81á\80\9dá\80·á\80ºá\80\95á\80ºá\80¯á\80\9aá\80\9dá\80·á\80ºá\80\91á\80\84á\80ºá\82\8b",
-       "minoredit": "á\80\9cá\80ºá\80¯á\80\81á\80±á\80«á\80\9fá\80ºá\80\8dá\80±á\80¬á\80\9fá\80ºá\81\9cá\80¸ á\80\86á\80ºá\80¯á\80¡á\80\84á\80ºá\80¸á\80\9cá\80ºá\80¯",
+       "summary": "á\80¡á\80ºá\80¯á\80¡á\80­á\80\84á\80ºá\80¸",
+       "minoredit": "á\80¡á\80ºá\80¯á\80\9aá\80­á\80¯á\80\9dá\80º á\80\99á\80½á\80¬á\80²á\80\9dá\80±á\80·á\80\86á\80ºá\80¯á\80¡á\80\84á\80ºá\80¸á\80\90á\80«á\80\84á\80ºá\80\96á\80±á\80«á\80\9fá\80ºá\80\9cá\80¾á\80º",
        "watchthis": "လိက်မေံယိုဝ် မ်ုအင်းခိုဝ်ယောဝ်ႋ",
        "savearticle": "လိက်မေံမ်ုအင်းလုက်ခွိက်",
        "preview": "မ်ုယောဝ်ႋထါင်",
-       "showpreview": "á\80\99á\80ºá\80¯á\81®á\80²á\80\96á\80¾á\80ºá\80±á\80\86á\80ºá\80¯á\80\90á\80¯á\80\82á\80ºá\80\80á\81 á\80\9a်",
-       "showdiff": "á\80\99á\80ºá\80¯á\81®á\80²á\80\96á\80¾á\80ºá\80± á\80\86á\80ºá\80¯á\80¡á\80\84á\80ºá\80¸á\80\9cá\80\9aá\80ºá\80\9eá\80\9aá\80º",
+       "showpreview": "á\80\99á\80ºá\80¯á\80\8dá\80¬á\80\8fá\80²á\80¡á\80ºá\80¯á\80\8dá\80®á\80¸á\80¡á\80ºá\80¯á\80\8dá\80¶á\80\84်",
+       "showdiff": "á\80\99á\80ºá\80¯á\80\8fá\80²á\80\96á\80¾á\80ºá\80± á\80\86á\80ºá\80¯á\80¡á\80\84á\80ºá\80¸á\80\90á\80«á\80\84á\80ºá\80\9cá\80ºá\80¯á\80\96á\80¸",
        "anoneditwarning": "<strong>ဖှ်ေဆ်ုတ်ုဒှ် - </strong> ၮ်ုယိုဝ် လော့ဂ်အင် လ်ုအွးထၜး။ ၮ်ုအင်းတင်စှ်ၜိုဝ် ၮ်ုအိုင်ပီလင်ဍာၮှ် မွာဲဖၠုံၯေဝ် ဍးဝေ့ဆေဝ်ႋလှ်။ လ်ုမွာဲ ၮ်ု <strong>[$1 လော့ဂ်အင်အွး]</strong> လ်ုမွာဲၜး <strong>[$2 ၮါင်ႋဆါ ပ္တုံ]</strong>ဆှ်ၜိုဝ်၊ ၮ်ုအင်းတင်ဆ်ုယိုဝ် ၮ်ုမိင်လ်ု ပ္ကုံမ်ုမာၮါင်းထလှ်။",
        "blockedtext": "<strong>ၮဲယိုဝ် ဆ်ုသုံ့ဆာအ်ုမိင် လ်ုမွာဲၜး အိုင်ပီလင်ဍာအိုဝ် ခၠာၜိင်ႋ ခံ\nထဆေဝ်ႋလှ်ဆှ်။</strong>\n\nဆ်ုခၠာၜိင်ႋယိုဝ် $1 ခဝ့် အင်းတါင်ထဆေဝ်ႋလှ်။\nအ်ုခဝ့်ပ်ုယဝ့်ၮှ် <em>$2</em> ဆေဝ်ႋလှ်။\n\n* ခၠာၜိင်ႋ ပ္တုံခါ့: $8\n* ခၠာၜိင် အ်ုယှောဟ်မ်ုလုက်ခါ့: $6\n* အ်ုခဝ့်ပ်ုယဝ့် blockee: $7\n\nၮ်ုယိုဝ် ဆ်ုခၠာၜိင်ႋၯင်း ဖှ်ေဆ်ုခၠါင် $1 လ်ုမွာဲၜး ၰာၰံင် [[{{MediaWiki:Grouppage-sysop}}|စီမံခန့်ခွဲသူ]] အိုဝ် ဖှ်ေလင်ပ်ုၮံင်ၮေဝ်။\nၮ်ုခဝ့် [[Special:Preferences|ၮ်ုဆ်ုမာ မလုဲႋဆ်ုသယ်လ်ုဖး]]တၞယ် ထီ့ဆာ့ အီးမေးလင်ဍာၮှ် လ်ုဆူ့ထၰင်စှ်ၜိုဝ် \"{{int:emailuser}}\" ဆ်ုသုဂ်ကၞယ် မ်ုအင်းသုံ့ လ်ုၮေဝ်ၜး။ ဗေ့ၮှ်သိုဝ် ဆ်ုတုဂ်ကၞယ်ၮှ် လ်ုခၠာၜိင်ႋထဝးမာႋ မာဖှ်ေမ်ုၮေဝ်ဆေဝ်ႋလှ်။\nၮ်ု အ်ုခါ့အိုဝ် အိုင်ပီလင်ဍာၮှ် $3 မွာဲၯံင်၊ ဆ်ုခၠာၜိင်ႋအိုင်ဒီၮှ် #$5 ဆေဝ်ႋလှ်။\nၮ်ုမ်ုမာ အင်းစာသယ်လ်ုဖး အ်ုဖံင့်ခေါဟ်၀ယ် အ်ုဍံင်လုက်ဆိင့် ဆူ့ဖှ်ေလာဆေဝ်ႋ။",
        "loginreqlink": "အွးလင်",
        "updated": "(တါင်သင့်ၰေဝ်)",
        "previewnote": "<strong>အ်ုယိုဝ် အ်ုဍံင် ဟ်ုယောဝ်ႋဍာလဝ့်ၮှ် သာ့ၮင်လ်ုၯေဝ်။</strong>\nၮ်ုအင်းလဲါထသယ်ၮှ် လ်ုသိုင့်ကုံဝးဍာ်ၜး။",
        "continue-editing": "မ်ုလေဝ် ဆ်ုအင်ႋတင်ႋလင်ႋ",
-       "editing": "$1 ၮှ် အင်းတင်ဖှ်ေဝေ့",
+       "editing": "ဆ်ုသံင့်ၜးၯဴ $1",
        "creating": "တင်ႋထုင်း $1",
        "editingsection": "$1 (ကၞါင့်) အိုဝ် အင်းတင်ဖှ်ေဝေ့။",
        "templatesused": "လိက်မေံၜၠါ်ယိုဝ် အင်းမာၮေဝ်ထ {{PLURAL:$1|တန်ပ်ုလိတ်|တန်ပ်ုလိတ်လ်ုဖး}} -",
        "search-nonefound": "အင်းၰူ့ဆ်ုပ်ုယောဝ်ႋလ်ုၜးဍံင်သယ်လ်ုဖး အ်ုတင်ၮေဝ်လ်ုအှ်ၜးႋ။",
        "powersearch-toggleall": "လုက်ဆိင့်",
        "powersearch-togglenone": "လ်ုအှ်မိင်ၜး",
-       "preferences": "á\80\90á\80¯á\80\82á\80ºá\81®á\80±á\80\9dá\80ºá\82\8bá\80¡á\80ºá\80¯á\80\8dá\80¶á\80\84á\80ºလ်ုဖး",
-       "mypreferences": "á\80\99á\80ºá\80¯á\80\9cá\80¯á\80²á\82\8bá\81¯á\80\84á\80ºá\80¸လ်ုဖး",
+       "preferences": "á\80\86á\80ºá\80¯á\80\9cá\80¯á\80²á\82\8bလ်ုဖး",
+       "mypreferences": "á\80\99á\80ºá\80¯á\80\9cá\80¯á\80²á\82\8bá\81¯á\80¶á\80\84á\80ºလ်ုဖး",
        "editusergroup": "မ်ုၮဲဖှ်ေ ဆ်ုသုံႋဆာႋကုံရွာဲ",
        "group-user": "ဆ်ုသုံႋဆာႋလ်ုဖး",
-       "group-autoconfirmed": "အ်ုဆ်ုမာအ်ုလ်ုအ်ု ဆ်ုထီ့ဆာႋထ ဆ်ုသုံႋဆာႋလ်ုဖး",
+       "group-autoconfirmed": "အ်ုဆ်ုမာအ်ု ဏေဝ်ႋၯုင်ႋခိုင့်ထ ဆ်ုသုံႋဆာႋလ်ုဖး",
        "group-bot": "ဘေါႋလ်ုဖး",
        "group-sysop": "ပိုင်ဆ်ုပျာဆ်ုလ်ုဖး",
        "grouppage-user": "{{ns:project}}:ဆ်ုသုံႋဆာႋလ်ုဖး",
        "action-edit": "လိက်မေံယိုဝ် မ်ုအင်းတါင်",
        "action-createaccount": "ဆ်ုအင်းသုံ့က်ုဆာဆ်ုမာ မ်ုအင်းတင်",
        "enhancedrc-history": "မေင်ႋစိင်",
-       "recentchanges": "အ်ုခါ့ယိုဝ် ဆ်ုအင်းလယ်",
+       "recentchanges": "အ်ုခါ့ယိုဝ် ဆ်ုအင်းလယ်လ်ုဖး",
        "recentchanges-legend": "အ်ုခါ့ ဆ်ုအင်းလယ်ၯင်း လုဲႋသယ်လ်ုဖး",
        "recentchanges-summary": "လိက်မေံၜၠါ်ယိုဝ် ဝီကီခဝ့် အ်ုဆိုင့်အ်ုထဝ်ႋ မ်ုထါင်အင်းၰူ့အ်ုထိုဝ်",
        "recentchanges-noresult": "ပ္တုံထအ်ုခါ့ထံင် ခိင်ခါ့ယိုဝ် ဆ်ုအင်းတင်ဆ်ုတုဂ်ကၠယ်လ်ု ဖံင်ဆ်ုအင်းလဲါ လ်ုအှ်ၜး။",
        "recentchanges-feed-description": "လိက်မေံၜၠါ်ယိုဝ် ဝီကီခဝ့် အ်ုဆိုင့်အ်ုထဝ်ႋ မ်ုထါင်အင်းၰူ့အ်ုထိုဝ်",
        "recentchanges-label-newpage": "ဆ်ုအင်းတင်ႋယိုဝ်တါင်လင်ႋဝေ့လိက်မေံသင့်ဆေဝ်လ်ှ။",
-       "recentchanges-label-minor": "á\80\9cá\80ºá\80¯á\80\81á\80±á\80«á\80\9fá\80ºá\80\8dá\80±á\80¬á\80\9fá\80ºá\81\9cá\80¸ á\80\86á\80ºá\80¯á\80¡á\80\84á\80ºá\80¸á\80\9cá\80ºá\80¯",
+       "recentchanges-label-minor": "á\80¡á\80ºá\80¯á\80\9aá\80­á\80¯á\80\9dá\80º á\80\99á\80½á\80¬á\80²á\80\9dá\80±á\80·á\80\86á\80ºá\80¯á\80¡á\80\84á\80ºá\80¸á\80\90á\80«á\80\84á\80ºá\80\96á\80±á\80«á\80\9fá\80ºá\80\9cá\80¾á\80º",
        "recentchanges-label-bot": "ဆ်ုအင်ႋတင်ႋယိုဝ် ဘော့မာဝေ့ဆေဝ်ႋလ်ှ",
        "recentchanges-label-unpatrolled": "ဆ်ုအင်ႋတင်ႋယိုဝ် လ်ုအင်းခေဝ်ယောဝ်ႋလ်ုဆၟိုဝ်ၯံင်ဍေၜး",
        "recentchanges-label-plusminus": "လိက်မေံၜၠါ်ယိုဝ် အ်ုဖံင့်လာ ဘိုက်အ်ုလူးအ်ုၯင့် အင်းလဲါထဆေဝ်ႋလှ်",
        "rcnotefrom": "ဖံင့်လာႋသယ်ၮှ် <strong>$3၊ $4</strong> ခဝ့် ၯံင် {{PLURAL:$5|ဆ်ုအင်းလဲါ|ဆ်ုအင်းလဲါလ်ုဖး}} မွာဲဆေဝ်ႋ  (<strong>$1</strong> ခဝ့်ဍာ် ၮဲဖှ်ေထ)။",
        "rclistfrom": "$3 $2 ခဝ့်ၯံင် ဆ်ုအင်းလယ်သင့်သယ်ၮှ် မ်ုၮဲဖှ်ေ",
        "rcshowhideminor": "အ်ုဍံင်လ်ုဍောဟ် ဆ်ုအင်းတင်ႋ $1 ၯင်း",
-       "rcshowhideminor-show": "á\80\8dá\80¯á\80\82á\80ºá\81®ဲ",
+       "rcshowhideminor-show": "á\80\8dá\80¬á\80\8fဲ",
        "rcshowhideminor-hide": "အ်ှသူး",
        "rcshowhidebots": "ဘော့သယ် $1သိုဝ်",
-       "rcshowhidebots-show": "á\80\8dá\80¯á\80\82á\80ºá\81®ဲ",
+       "rcshowhidebots-show": "á\80\8dá\80¬á\80\8fဲ",
        "rcshowhidebots-hide": "အ်ှသူး",
        "rcshowhideliu": "တံင်ထာ့အ်ှက်ုစာ စ်ုလေဝ်ကၠယ် $1",
-       "rcshowhideliu-show": "á\80\8dá\80¯á\80\82á\80ºá\81®ဲ",
+       "rcshowhideliu-show": "á\80\8dá\80¬á\80\8fဲ",
        "rcshowhideliu-hide": "အ်ှသူး",
        "rcshowhideanons": "အ်ုမိင်လ်ုအှ် ဆ်ုသုံက်ုဆာႋ $1ၮှ်",
-       "rcshowhideanons-show": "á\80\8dá\80¯á\80\82á\80ºá\81®ဲ",
+       "rcshowhideanons-show": "á\80\8dá\80¬á\80\8fဲ",
        "rcshowhideanons-hide": "အှ်သူး",
        "rcshowhidepatr": "ခိုဝ်ယောဝ်ဆ်ုအင်ႋတင်ႋ $1အိုဝ်",
        "rcshowhidemine": "$1 ၮင့်ဆါႋဆ်ုအင်ႋတင်ႋ",
-       "rcshowhidemine-show": "á\80\8dá\80¯á\80\82á\80ºá\81®ဲ",
+       "rcshowhidemine-show": "á\80\8dá\80¬á\80\8fဲ",
        "rcshowhidemine-hide": "အ်ှသူး",
        "rclinks": "$2 မူႋသင့်ဍာဲခါ့ လါင်းခါင့်ဆ်ုအင်းတင်ႋ $1 ၮါင်းၮှ် မ်ုၮဲဖှ်ေ",
        "diff": "လ်ုၜးဍံင်",
        "hist": "လိက်အုဂ်ကေဝ်",
        "hide": "အ်ှသူး",
-       "show": "á\80\8dá\80¯á\80\82á\80ºá\81®ဲ",
+       "show": "á\80\8dá\80¬á\80\8fဲ",
        "minoreditletter": "အ်ုဍံင်လ်ုဍောဟ်",
        "newpageletter": "အ်ုသင့်",
        "boteditletter": "ဘော့",
        "recentchangeslinked-to": "ပေးထားသော စာမျက်နှာများအစား လင့်များနှင့် ဆက်စပ်နေသာ စာမျက်နှာများ၏ အပြောင်းအလဲများကို ပြရန်",
        "upload": "မ်ုပ္တုံင်ထါင်ဖိုင်ႋ",
        "uploadlogpage": "ဖိုင်ႋတုံထါင်း ဆ်ုမာၮါင်း",
-       "filedesc": "á\80¡á\80ºá\80¯á\80\81á\80\9dá\80·á\80ºá\80\95á\80ºá\80¯á\80\9aá\80\9dá\80·á\80ºá\80\91á\80\84á\80ºá\82\8b",
+       "filedesc": "á\80¡á\80ºá\80¯á\80¡á\80­á\80\84á\80ºá\80¸",
        "license": "လိုင်စင်ပၞံင့်ပ္တုံ",
        "license-header": "လိုင်စင်ပၞံင့်ပ္တုံ",
        "imgfile": "ဖိုင်ႋ",
        "protectedarticle": "\"[[$1]]\" ၮှ် အ်ုဝုဂ်ႋထးဝေ့",
        "modifiedarticleprotection": "\"[[$1]]\" ၮှ် ဆ်ုဆ်ုဝုဂ်ႋ အ်ုဆင့်အိုဝ် မ်ုအင်းလယ်",
        "protect-default": "ပၠယ်တဝ် ဆ်ုသုံ့က်ုဆာလုက်ဆိင့်",
-       "restriction-edit": "á\80¡á\80\84á\80ºá\82\8bá\80\90á\80\84á\80ºá\82\8b",
+       "restriction-edit": "á\80\9eá\80¶á\80\84á\80·á\80ºá\81\9cá\80¸á\81¯á\80´",
        "restriction-move": "မ်ုသုဂ်",
        "namespace": "အ်ုမၠိင်ထိုဝ်",
        "invert": "လုဲႋထသယ် ဗေ့မ်ုထာင်က္ဍာၯင်း",
        "namespace_association": "ထိုဝ်ၜိုဒ်ၜးဍံင်အှ် ၮဲဖှ်ေမိင်ႋ",
        "tooltip-namespace_association": "လုဲႋထ အ်ုမၠိင်က္ဍာထါင်လ်ု ၜးထိုဝ်ၜုဂ်လိက်လ်ုဖး အှ်ကုံဆ်ုခၠါင် လ်ုမွာဲၜး အ်ုၯာင်းအ်ုကျံင် အ်ုမိင်ထါင်ၮဲထါင် မ်ုပါ့ၯင်း လိက်လင်ခွင်ဝယ်ယိုဝ် ဆူ့လင်ဆ်ုၜးကီလာဆှ်",
        "blanknamespace": "(ခေါဟ်)",
-       "contributions": "{{GENDER:$1|á\80\86á\80ºá\80¯á\80¡á\80\84á\80ºá\80¸á\80\9eá\80¯á\80¶á\80·}} á\80\86á\80ºá\80¯á\80\9eá\80¯á\80\82á\80ºá\80\80á\81 á\80\9aá\80ºá\80\9eá\80\9aá\80º",
+       "contributions": "{{GENDER:$1|á\80\86á\80ºá\80¯á\80\9eá\80¯á\80¶á\82\8bá\80\86á\80¬á\82\8b}}á\80\81á\80\9dá\80·á\80º á\80\86á\80ºá\80¯á\80\9eá\80¯á\80\82á\80ºá\80\80á\81 á\80\9aá\80ºá\80\9cá\80ºá\80¯á\80\96á\80¸",
        "contributions-title": "$1 ၯင်း ဆ်ုအင်းသုံ့က်ုဆာ ဆ်ုဍုဂ်ဆ်ုကၠယ် $1",
-       "mycontris": "á\80\8dá\80±á\80¬á\80\9fá\80ºá\80\96á\80¾á\80ºá\80±á\80\91á\80¬á\80·á\80\80á\80ºá\80¯á\80\86á\80¬",
-       "anoncontribs": "á\80\8dá\80±á\80¬á\80\9fá\80ºá\80\96á\80¾á\80ºá\80±á\80\91á\80¬á\80·á\80\80á\80ºá\80¯á\80\86á\80¬",
+       "mycontris": "á\80\86á\80ºá\80¯á\80\99á\80¬á\80\96á\80¾á\80ºá\80±á\80\91á\80\86á\80¬á\82\8bá\80\9cá\80ºá\80¯á\80\96á\80¸",
+       "anoncontribs": "á\80\86á\80ºá\80¯á\80\99á\80¬á\80\96á\80¾á\80ºá\80±á\80\91á\80\86á\80¬á\82\8bá\80\9cá\80ºá\80¯á\80\96á\80¸",
        "contribsub2": "{{GENDER:$3|$1}}အ်ုၯင်း ($2)",
        "nocontribs": "လ်ုပၞံင့်ယိုဝ် လ်ုၜးက္ဍာၜး ဆ်ုအင်းလယ် လ်ုအ်ှၜး။",
        "uctop": "လ်ုၮီမူႋအ်ုခါ့ယိုဝ်",
        "sp-contributions-blocklog": "ဆ်ုဍာ်အှ်ၯင်း  လိက်မါၮါင်း",
        "sp-contributions-uploads": "အးလုဂ်ထံင့်ဖှ်ေထး",
        "sp-contributions-logs": "က်ုတုဂ်သယ်",
-       "sp-contributions-talk": "á\80\86á\80ºá\80¯á\80\81á\81 á\80«á\80\84á\80ºá\80\80á\80\84á\80ºá\80\80á\80¬",
+       "sp-contributions-talk": "á\80\86á\80ºá\80¯á\80\81á\81 á\80«á\80\84á\80ºá\80\80á\80«á\80\84á\80ºá\80\80á\80«",
        "sp-contributions-userrights": "{{GENDER:$1|ဆ်ုသုံႋဆာႋ}}ခဝ့် ၜးၮေဝ်ႋအ်ုလူးအ်ုထာ့ မ်ုပိုင်ကြိုင်စီရေင့်",
        "sp-contributions-search": "အင်းၰူ့ဆ်ုမာၜိုဒ်မာဆိုင်",
        "sp-contributions-username": "အိုင်ပီလင်ဍာ အိုဝ် ဆ်ုသုံ့က်ုဆာမိင် :",
        "sp-contributions-toponly": "ဟ်ုအင်းတံင်လိက်မေံသှ် မ်ုၮဲဖှ်ေ",
        "sp-contributions-newonly": "ဟ်ုအင်းတံင်လိက်မေံသှ် မ်ုၮဲဖှ်ေ",
        "sp-contributions-submit": "အင်းၰူ့",
-       "whatlinkshere": "á\80\91á\80«á\80\9dá\80ºá\80\9aá\80­á\80¯á\80\9dá\80º á\80\99á\80ºá\80¯á\80\9cá\80\84á\80·á\80ºá\80\81á\80ºá\80¯á\80\9cá\80²á\80«á\80\81á\80\9dá\80·á\80ºá\80\9cá\80²á\80«",
+       "whatlinkshere": "á\80\91á\80­á\80¯á\80\9dá\80ºá\81\9cá\80¯á\80\82á\80ºá\80\91á\80\81á\80\9dá\80·á\80ºá\80\9cá\80\9aá\80º",
        "whatlinkshere-title": "\"$1\" အိုဝ် ထိုဝ်ၜုဂ်ထလိက်မေံၜါ်လ်ုဖး",
        "whatlinkshere-page": "လိက်မေံသး",
        "linkshere": "ဖံင့်လာ့လိက်မေံၜၠါ်သယ်ၮှ် <strong>$2</strong> ခဝ့် ထိုဝ်ၜုဂ်ထဝေ့ -",
        "tooltip-pt-login": "အွးဖှ်ေလါ လ်ုၮ်ုဆ်ုမာၮ်ှ။ လာၮင့်ၜိုဒ်သီး အင်းတါင်ၮ်ုအေ့။",
        "tooltip-pt-logout": "တါ်ထင်း",
        "tooltip-pt-createaccount": "တါင်ၮ်ုဆ်ုမာဝံင် အွးဖှ်ေလာ။ လာၮင့်သီး ၮ်ုဆ်ုမာလ်ှ။",
-       "tooltip-ca-talk": "á\80\95á\80ºá\80¯á\80\9aá\80¯á\80¶á\80·á\80\81á\80±á\80«á\80\9fá\80ºá\80\90á\80\84á\80º á\80\9cá\80­á\80\80á\80ºá\80\99á\80±á\80¶á\81¯á\80\84á\80ºá\80¸ á\80\86á\80ºá\80¯á\80\81á\81 á\80«á\80\84á\80ºá\80\80á\80\84á\80ºá\80\80á\80¬",
+       "tooltip-ca-talk": "á\80\95á\80ºá\80¯á\80\9aá\80¯á\80¶á\80·á\80\81á\80±á\80«á\80\9fá\80ºá\80\90á\80\84á\80º á\80\9cá\80­á\80\80á\80ºá\80\99á\80±á\80¶á\81\9cá\81 á\80«á\80ºá\81¯á\80¶á\80\84á\80º á\80\86á\80ºá\80¯á\80\81á\81 á\80«á\80\84á\80ºá\80\80á\80«á\80\84á\80ºá\80\80á\80«á\80\9cá\80ºá\80¯á\80\96á\80¸",
        "tooltip-ca-edit": "လိက်မေံအ်ုယိုဝ် မာၮေဝ်ထိုဝ်ၜုဂ်",
        "tooltip-ca-addsection": "ကၞါင့်သံင်လ်ုဍူ ပ္တုံသံင်ၜိုဒ်",
        "tooltip-ca-viewsource": "လိက်မေံယိုဝ် လ်ုအင်းတင်ႋခဝ့် ပၠယ်တဝ်ဝေ့အေး။ ၮ်ုယောဝ်ႋ လိက်အ်ုဍံင်ၮေဝ်ႋလှ်။",
        "tooltip-n-mainpage-description": "မ်ုယောဝ်ထံင် လိက်ႋပၟိက်မေံယာ့",
        "tooltip-n-portal": "ပ်ုရော့ဂျက်အကျံင်၊ ၮ်ုမာဖှ်ေၮေဝ်လ်ု မ်ုၜးအင်းၰူ့ခဝ့်လယ်",
        "tooltip-n-currentevents": "အ်ုခါ့ယိုဝ် ဆ်ုတုဂ်ဆ်ုကၠယ်သယ် မ်ုအင်းၰူး ထိုဝ်ၜါင်အးမိင်အးစိင်",
-       "tooltip-n-recentchanges": "á\80\9dá\80®á\80\80á\80®á\80\81á\80\9dá\80·á\80º á\80¡á\80ºá\80¯á\80\81á\80«á\80·á\80\9aá\80­á\80¯á\80\9dá\80º á\80\86á\80ºá\80¯á\80¡á\80\84á\80ºá\80¸á\80\9cá\80\9a်",
+       "tooltip-n-recentchanges": "á\80\9dá\80®á\80¸á\80\80á\80±á\80\9dá\80ºá\80\81á\80\9dá\80·á\80º á\80¡á\80ºá\80¯á\80\81á\80«á\80·á\80\9aá\80­á\80¯á\80\9dá\80º á\80\86á\80ºá\80¯á\80¡á\80\84á\80ºá\80¸á\80\9cá\80\9aá\80ºá\80\9cá\80ºá\80¯á\80\96á\80¸á\80\85á\80ºá\80¯á\80\9bá\80\84á\80·်",
        "tooltip-n-randompage": "လ်ုအ်ုၜးလိက်မေံမိင်မိင် မ်ုယောဝ်ႋ",
        "tooltip-n-help": "အင်းၰူးပ္တုံလင်ခၠယ်",
        "tooltip-t-whatlinkshere": "အ်ုလင်ယိုဝ် ဆ်ုၮဲလင်လင့်ထ ဝီကီလိက်မေံစ်ုရင့်",
        "tooltip-summary": "အင်းတင်ႋဖူးဆူ့လင်",
        "anonusers": "{{SITENAME}} အ်ုမၠိင်လ်ုသှ်ယာႋ {{PLURAL:$2|ဆ်ုသုံႋဆာႋ|ဆ်ုသုံႋဆာႋလ်ုဖး}} $1",
        "simpleantispam-label": "Anti-spam အင်းၰူ့ၯင်းဆ်ုပၠယ်တဝ်။ အှ်ယိုဝ်ၮှ် <strong>ဖိုင့်ၰိုဲလ်ုၯေဝ်</strong>!",
-       "pageinfo-title": "\"$1\" á\80¡á\80ºá\80¯á\81¯á\80\84á\80ºá\80¸ á\80\86á\80ºá\80¯á\80\9eá\80¯á\80\82á\80ºá\80\80á\81 á\80\9aá\80ºလ်ုဖး",
+       "pageinfo-title": "\"$1\" á\80¡á\80ºá\80¯á\81¯á\80¶á\80\84á\80º á\80\86á\80ºá\80¯á\80\96á\81 á\80¶á\80\84á\80ºá\80¡á\80ºá\80¯á\80\96á\81 လ်ုဖး",
        "pageinfo-header-basic": "အ်ုခင်းထါ်ဆ်ုပြိုင့်အ်ုၯာင်ႋအ်ုကျံင်း",
-       "pageinfo-header-edits": "á\80¡á\80\84á\80ºá\82\8bá\80\90á\80\84á\80ºá\82\8b မေဝ်ႋစိင်",
+       "pageinfo-header-edits": "á\80\9eá\80¶á\80\84á\80·á\80ºá\81\9cá\80¸á\81¯á\80´ မေဝ်ႋစိင်",
        "pageinfo-header-restrictions": "လိက်မေံၜါ် ကွင်ပ္ဍင်လင်စိုဝ်ထ",
        "pageinfo-header-properties": "လိက်မေံၜၠါ် ခွင်ႋလ်ုဖး",
        "pageinfo-display-title": "ၮဲလင် ခေါဟ်တင်",
        "redirect-page": "လိက်မေံၜၠါ် အိုင်ဒီ",
        "redirect-revision": "လိက်မေံၜၠါ် ဆ်ုအင်ႋတင်ႋ",
        "redirect-file": "ဖိုင်ႋမၠိင်",
-       "specialpages": "á\80\9cá\80­á\80\80á\80ºá\80\99á\80±á\80ခေါဟ်",
+       "specialpages": "á\80¡á\80ºá\80¯á\80\91á\80­á\80¯á\80\9dá\80ºခေါဟ်",
        "tag-filter": "[[Special:Tags|Tag]] ထုက်ပၠာၰင် -",
        "tag-list-wrapper": "([[Special:Tags|{{PLURAL:$1|လိက်ထိက်ၜုဂ်|လိက်ထိက်ၜုဂ်လ်ုဖး}}]]: $2)",
        "tags-active-yes": "မွာဲ",
        "logentry-newusers-autocreate": "က်ုဆာအ်ုဆ်ုမာ $1 ၮှ် အ်ုဆ်ုမာသိုဝ် {{GENDER:$2|အင်းတင်ထဝေ့}}",
        "logentry-upload-upload": "$1 ၮှ် $3 အိုဝ် {{GENDER:$2|upload ဆောဟ်ထါင်ႋ}}",
        "logentry-upload-overwrite": "$3 ၮှ်ခဝ့် ဗားရှင်းအ်ုသင့်အိုဝ် $1 {{GENDER:$2|upload ပ္တုံထုင်းထဆေဝ်ႋ}}",
-       "searchsuggest-search": "{{SITENAME}}ဝဲါ မ်ုအင်းၰူ့",
+       "rightsnone": "(ပၠဝ်ပြေ)",
+       "searchsuggest-search": "{{SITENAME}} ဖိုင် မ်ုအင်းၰူ့",
        "duration-days": "$1 {{PLURAL:$1|မူႋသင့်|မူႋသင့်လ်ုဖး}}",
        "mw-widgets-titlesmultiselect-placeholder": "ဆူ့ဍုဂ် ဆ်ုအှ်ထါင်...",
        "randomrootpage": "လ်ုၜးမိင် အ်ုခံင့် လိက်မေံၜၠါ်"
index d80dcdf..87e04c4 100644 (file)
        "tag-mw-new-redirect": "Sin choán-ia̍h",
        "tag-mw-removed-redirect": "Choán-ia̍h the̍h-tiāu",
        "tag-mw-changed-redirect-target": "Choán-ia̍h bo̍k-phiau kái-piàn",
+       "logentry-delete-delete": "$1 kā ia̍h-bīn $3 {{GENDER:$2|thâi tiāu}}",
        "logentry-delete-delete_redir": "$1 ēng têng-siá lâi kā choán-ia̍h $3 {{GENDER:$2|thâi-tiāu}}",
        "logentry-move-move": "$1 {{GENDER:$2|sóa}} $3 chit ia̍h khì $4",
        "logentry-move-move_redir": "$1 iōng choán-ia̍h {{GENDER:$2|sóa}} ia̍h-bīn $3 kòe $4",
index d5a539b..e97f222 100644 (file)
        "createaccountblock": "blokada tworzenia kont",
        "emailblock": "zablokowany e‐mail",
        "blocklist-nousertalk": "nie mogą edytować własnych stron dyskusji",
+       "blocklist-editing": "edytowanie",
+       "blocklist-editing-sitewide": "edytowanie całej strony",
        "ipblocklist-empty": "Lista blokad jest pusta.",
        "ipblocklist-no-results": "Podany adres IP lub użytkownik nie jest zablokowany.",
        "blocklink": "zablokuj",
index ce4e0ff..4e27fb1 100644 (file)
        "mw-widgets-mediasearch-input-placeholder": "Procurar por mídia",
        "mw-widgets-mediasearch-noresults": "Nenhum resultado encontrado.",
        "mw-widgets-titleinput-description-new-page": "a página ainda não existe",
-       "mw-widgets-titleinput-description-redirect": "redirecionar para $1",
+       "mw-widgets-titleinput-description-redirect": "redireciona para $1",
        "mw-widgets-categoryselector-add-category-placeholder": "Adicionar uma categoria...",
        "mw-widgets-usersmultiselect-placeholder": "Adicionar mais…",
        "mw-widgets-titlesmultiselect-placeholder": "Adicionar mais…",
index 3b593d4..c0b8dc3 100644 (file)
        "categories-submit": "Mostrar",
        "categoriespagetext": "{{PLURAL:$1|A seguinte categoria existe na wiki e pode, ou não, ser usada|As seguintes categorias existem na wiki e podem, ou não, ser usadas}}.\nVeja também as [[Special:WantedCategories|categorias desejadas]].",
        "categoriesfrom": "Mostrar categorias que comecem por:",
-       "deletedcontributions": "Edições eliminadas",
+       "deletedcontributions": "Contribuições eliminadas",
        "deletedcontributions-title": "Edições eliminadas",
        "sp-deletedcontributions-contribs": "contribuições",
        "linksearch": "Pesquisa de hiperligações externas",
        "exif-gpsprocessingmethod": "Nome do método de processamento do GPS",
        "exif-gpsareainformation": "Nome da área do GPS",
        "exif-gpsdatestamp": "Data do GPS",
-       "exif-gpsdifferential": "Correcção do diferencial do GPS",
+       "exif-gpsdifferential": "Correção do diferencial do GPS",
        "exif-jpegfilecomment": "Comentário de ficheiro JPEG",
        "exif-keywords": "Termos-chave",
        "exif-worldregioncreated": "Região do mundo onde a fotografia foi tirada",
        "exif-scenecapturetype-0": "Padrão",
        "exif-scenecapturetype-1": "Paisagem",
        "exif-scenecapturetype-2": "Retrato",
-       "exif-scenecapturetype-3": "Cena nocturna",
+       "exif-scenecapturetype-3": "Cena noturna",
        "exif-gaincontrol-0": "Nenhum",
        "exif-gaincontrol-1": "Ganho positivo baixo",
        "exif-gaincontrol-2": "Ganho positivo alto",
        "special-characters-title-emdash": "travessão",
        "special-characters-title-minus": "sinal de subtração",
        "mw-widgets-abandonedit": "Tem a certeza de que deseja sair do modo de edição sem antes gravar as alterações?",
-       "mw-widgets-abandonedit-discard": "Ignorar alterações",
+       "mw-widgets-abandonedit-discard": "Descartar edições",
        "mw-widgets-abandonedit-keep": "Continuar a editar",
        "mw-widgets-abandonedit-title": "Tem a certeza?",
        "mw-widgets-dateinput-no-date": "Não foi selecionada nenhuma data",
        "mw-widgets-mediasearch-input-placeholder": "Procurar ficheiros multimédia",
        "mw-widgets-mediasearch-noresults": "Não foram encontrados resultados.",
        "mw-widgets-titleinput-description-new-page": "a página ainda não existe.",
-       "mw-widgets-titleinput-description-redirect": "redirecionar para $1",
+       "mw-widgets-titleinput-description-redirect": "redireciona para $1",
        "mw-widgets-categoryselector-add-category-placeholder": "Adicionar uma categoria...",
        "mw-widgets-usersmultiselect-placeholder": "Adicionar mais...",
        "mw-widgets-titlesmultiselect-placeholder": "Adicionar mais...",
index 8369ea4..1d05889 100644 (file)
                        "ديفيد",
                        "Daimona Eaytoy",
                        "A2093064",
-                       "BadDog"
+                       "BadDog",
+                       "The Discoverer"
                ]
        },
        "sidebar": "{{notranslate}}",
        "blockedtitle": "Used as title displayed for blocked users. The corresponding message body is one of the following messages:\n* {{msg-mw|Blockedtext|notext=1}}\n* {{msg-mw|Autoblockedtext|notext=1}}\n* {{msg-mw|Systemblockedtext}}",
        "blocked-email-user": "Text displayed to partially blocked users that are blocked from sending email.\n\n\"email this user\" should be consistent with {{msg-mw|Emailuser}}.\n\nParameters:\n* $1 - the blocking sysop (with a link to his/her userpage)\n* $2 - the reason for the block\n* $3 - the current IP address of the blocked user\n* $4 - (Unused) the blocking sysop's username (plain text, without the link)\n* $5 - the unique numeric identifier of the applied autoblock\n* $6 - the expiry of the block\n* $7 - the intended target of the block (what the blocking user specified in the blocking form)\n* $8 - the timestamp when the block started\nSee also:\n* {{msg-mw|Grouppage-sysop}}\n* {{msg-mw|Autoblockedtext}}\n* {{msg-mw|Systemblockedtext}}",
        "blockedtext-partial": "Text displayed to partially blocked users.\n\n\"email this user\" should be consistent with {{msg-mw|Emailuser}}.\n\nParameters:\n* $1 - the blocking sysop (with a link to his/her userpage)\n* $2 - the reason for the block\n* $3 - the current IP address of the blocked user\n* $4 - (Unused) the blocking sysop's username (plain text, without the link)\n* $5 - the unique numeric identifier of the applied autoblock\n* $6 - the expiry of the block\n* $7 - the intended target of the block (what the blocking user specified in the blocking form)\n* $8 - the timestamp when the block started\nSee also:\n* {{msg-mw|Grouppage-sysop}}\n* {{msg-mw|Autoblockedtext}}\n* {{msg-mw|Systemblockedtext}}",
-       "blockedtext": "Text displayed to blocked users.\n\n\"email this user\" should be consistent with {{msg-mw|Emailuser}}.\n\nParameters:\n* $1 - the blocking sysop (with a link to his/her userpage)\n* $2 - the reason for the block\n* $3 - the current IP address of the blocked user\n* $4 - (Unused) the blocking sysop's username (plain text, without the link)\n* $5 - the unique numeric identifier of the applied autoblock\n* $6 - the expiry of the block\n* $7 - the intended target of the block (what the blocking user specified in the blocking form)\n* $8 - the timestamp when the block started\nSee also:\n* {{msg-mw|Grouppage-sysop}}\n* {{msg-mw|Autoblockedtext}}\n* {{msg-mw|Systemblockedtext}}",
-       "autoblockedtext": "Text displayed to automatically blocked users.\n\n\"email this user\" should be consistent with {{msg-mw|Emailuser}}.\n\nParameters:\n* $1 - the blocking sysop (with a link to his/her userpage)\n* $2 - the reason for the block (in case of autoblocks: {{msg-mw|autoblocker}})\n* $3 - the current IP address of the blocked user\n* $4 - (Unused) the blocking sysop's username (plain text, without the link). Use it for GENDER.\n* $5 - the unique numeric identifier of the applied autoblock\n* $6 - the expiry of the block\n* $7 - the intended target of the block (what the blocking user specified in the blocking form)\n* $8 - the timestamp when the block started\nSee also:\n* {{msg-mw|Grouppage-sysop}}\n* {{msg-mw|Blockedtext}}\n* {{msg-mw|Systemblockedtext}}",
-       "systemblockedtext": "Text displayed to requests blocked by MediaWiki configuration.\n\n\"email this user\" should be consistent with {{msg-mw|Emailuser}}.\n\nParameters:\n* $1 - (Unused) A dummy user attributed as the blocker, possibly as a link to a user page.\n* $2 - the reason for the block\n* $3 - the current IP address of the blocked user\n* $4 - (Unused) the dummy blocking user's username (plain text, without the link).\n* $5 - A short string indicating the type of system block.\n* $6 - the expiry of the block\n* $7 - the intended target of the block\n* $8 - the timestamp when the block started\nSee also:\n* {{msg-mw|Grouppage-sysop}}\n* {{msg-mw|Blockedtext}}\n* {{msg-mw|Autoblockedtext}}",
+       "blockedtext": "Text displayed to blocked users.\n\n\"email this user\" should be consistent with {{msg-mw|Emailuser}}.\n\nParameters:\n* $1 - the blocking sysop (with a link to his/her userpage)\n* $2 - the reason for the block\n* $3 - the current IP address of the blocked user\n* $4 - (Unused) the blocking sysop's username (plain text, without the link)\n* $5 - the unique numeric identifier of the applied autoblock\n* $6 - the expiry of the block\n* $7 - the intended target of the block (what the blocking user specified in the blocking form)\n* $8 - the timestamp when the block started\nSee also:\n* {{msg-mw|Grouppage-sysop}}\n* {{msg-mw|Autoblockedtext|notext=1}}\n* {{msg-mw|Systemblockedtext|notext=1}}",
+       "autoblockedtext": "Text displayed to automatically blocked users.\n\n\"email this user\" should be consistent with {{msg-mw|Emailuser}}.\n\nParameters:\n* $1 - the blocking sysop (with a link to his/her userpage)\n* $2 - the reason for the block (in case of autoblocks: {{msg-mw|autoblocker}})\n* $3 - the current IP address of the blocked user\n* $4 - (Unused) the blocking sysop's username (plain text, without the link). Use it for GENDER.\n* $5 - the unique numeric identifier of the applied autoblock\n* $6 - the expiry of the block\n* $7 - the intended target of the block (what the blocking user specified in the blocking form)\n* $8 - the timestamp when the block started\nSee also:\n* {{msg-mw|Grouppage-sysop}}\n* {{msg-mw|Blockedtext|notext=1}}\n* {{msg-mw|Systemblockedtext|notext=1}}",
+       "systemblockedtext": "Text displayed to requests blocked by MediaWiki configuration.\n\n\"email this user\" should be consistent with {{msg-mw|Emailuser}}.\n\nParameters:\n* $1 - (Unused) A dummy user attributed as the blocker, possibly as a link to a user page.\n* $2 - the reason for the block\n* $3 - the current IP address of the blocked user\n* $4 - (Unused) the dummy blocking user's username (plain text, without the link).\n* $5 - A short string indicating the type of system block.\n* $6 - the expiry of the block\n* $7 - the intended target of the block\n* $8 - the timestamp when the block started\nSee also:\n* {{msg-mw|Grouppage-sysop}}\n* {{msg-mw|Blockedtext|notext=1}}\n* {{msg-mw|Autoblockedtext|notext=1}}",
        "blockednoreason": "Substituted with <code>$2</code> in the following message if the reason is not given:\n* {{msg-mw|cantcreateaccount-text}}.\n{{Identical|No reason given}}",
        "whitelistedittext": "Used as error message. Parameters:\n* $1 - a link to [[Special:UserLogin]] with {{msg-mw|loginreqlink}} as link description\nSee also:\n* {{msg-mw|Nocreatetext}}\n* {{msg-mw|Uploadnologintext}}\n* {{msg-mw|Loginreqpagetext}}",
        "confirmedittext": "Used as error message.",
        "move-watch": "The text of the checkbox to watch the pages you are moving from and to. If checked, both the destination page and the original page will be added to the watchlist, even if you decide not to leave a redirect behind.\n\nSee also:\n* {{msg-mw|Move-page-legend|legend for the form}}\n* {{msg-mw|newtitle|label for new title}}\n* {{msg-mw|Movereason|label for textarea}}\n* {{msg-mw|Movetalk|label for checkbox}}\n* {{msg-mw|Move-leave-redirect|label for checkbox}}\n* {{msg-mw|Fix-double-redirects|label for checkbox}}\n* {{msg-mw|Move-subpages|label for checkbox}}\n* {{msg-mw|Move-talk-subpages|label for checkbox}}",
        "movepagebtn": "Button label on the special 'Move page'.\n\n{{Identical|Move page}}",
        "pagemovedsub": "Message displayed as aheader of the body, after successfully moving a page from source to target name.",
+       "cannotmove": "Error message for a generic failure while moving a page, to be used together with a specific error message.\n\nParameters:\n* $1 - the number of reasons that were found why the action cannot be performed.",
        "movepage-moved": "Message displayed after successfully moving a page from source to target name.\n\nParameters:\n* $1 - the source page as a link with display name\n* $2 - the target page as a link with display name\n* $3 - (optional) the source page name without a link\n* $4 - (optional) the target page name without a link\nSee also:\n* {{msg-mw|Movepage-moved-redirect}}\n* {{msg-mw|Movepage-moved-noredirect}}",
        "movepage-moved-redirect": "See also:\n* {{msg-mw|Movepage-moved}}\n* {{msg-mw|Movepage-moved-noredirect}}",
        "movepage-moved-noredirect": "The message is shown after pagemove if checkbox \"{{int:move-leave-redirect}}\" was unselected before moving.\n\nSee also:\n* {{msg-mw|Movepage-moved}}\n* {{msg-mw|Movepage-moved-redirect}}",
        "dberr-again": "This message does not allow any wiki nor html markup.",
        "dberr-info": "This message does not allow any wiki nor html markup. Parameters:\n* $1 - database server name\nSee also:\n* {{msg-mw|Dberr-info-hidden}} - hides database server name",
        "dberr-info-hidden": "This message does not allow any wiki nor html markup.\n\nSee also:\n* {{msg-mw|Dberr-info}} - shows database server name",
-       "dberr-usegoogle": "This message does not allow any wiki nor html markup.",
-       "dberr-outofdate": "{{doc-singularthey}}\nIn this sentence, '''their''' indexes refers to '''Google's''' indexes. This message does not allow any wiki nor html markup.",
-       "dberr-cachederror": "Used as error message at the bottom of the page.",
        "htmlform-invalid-input": "Used as error message in HTML forms.\n\n* {{msg-mw|Htmlform-required}}\n* {{msg-mw|Htmlform-float-invalid}}\n* {{msg-mw|Htmlform-int-invalid}}\n* {{msg-mw|Htmlform-int-toolow}}\n* {{msg-mw|Htmlform-int-toohigh}}\n* {{msg-mw|Htmlform-select-badoption}}",
        "htmlform-select-badoption": "Used as error message in HTML forms.\n\n* {{msg-mw|Htmlform-invalid-input}}\n* {{msg-mw|Htmlform-required}}\n* {{msg-mw|Htmlform-float-invalid}}\n* {{msg-mw|Htmlform-int-invalid}}\n* {{msg-mw|Htmlform-int-toolow}}\n* {{msg-mw|Htmlform-int-toohigh}}",
        "htmlform-int-invalid": "Used as error message in HTML forms.\n\n* {{msg-mw|Htmlform-invalid-input}}\n* {{msg-mw|Htmlform-required}}\n* {{msg-mw|Htmlform-float-invalid}}\n* {{msg-mw|Htmlform-int-toolow}}\n* {{msg-mw|Htmlform-int-toohigh}}\n* {{msg-mw|Htmlform-select-badoption}}",
        "htmlform-user-not-exists": "Error message shown if a user with the name provided by the user does not exist. $1 is the username.",
        "htmlform-user-not-valid": "Error message shown if the name provided by the user isn't a valid username. $1 is the username.",
        "rawmessage": "{{notranslate}} Used to pass arbitrary text as a message specifier array",
-       "logentry-delete-delete": "{{Logentry|[[Special:Log/delete]]}}",
+       "logentry-delete-delete": "$1, hannem {{GENDER:$2|kadun udoile}} pan $3",
        "logentry-delete-delete_redir": "{{Logentry|[[Special:Log/delete]]}}",
        "logentry-delete-restore": "{{Logentry|[[Special:Log/delete]]}}\n* $4 - {{msg-mw|restore-count-revisions}} or {{msg-mw|restore-count-files}}, or a combination with both (e.g. \"3 revision and 1 file\")\n\n'''A note for RTL languages''': if $3 is a name of a page or a file written in a different language, the number in the beginning of $4 may be displayed incorrectly. Consider inserting a word or an RLM between $3 and $4.",
        "logentry-delete-restore-nocount": "{{Logentry|[[Special:Log/delete]]}}",
index f77ecb9..c0a4a8f 100644 (file)
        "sp-contributions-uploads": "اپلوڈ کردہ",
        "sp-contributions-logs": "لاگز",
        "sp-contributions-talk": "ڳالھ مہاڑ",
-       "sp-contributions-search": "حصے پاؤݨ آلیاں دی تلاش",
+       "sp-contributions-search": "حصے پاوݨ آلیاں دی ڳول",
        "sp-contributions-username": "آئی پی پتہ یا ورتݨ آلا ناں:",
        "sp-contributions-toponly": "صرف اوہ تبدیلیاں ݙکھاؤ جیہڑیاں ہُݨے ہُݨے تھیاں ہن۔",
        "sp-contributions-newonly": "صرف نویں ورقیاں بݨݨ آلیاں لکھتاں ݙیکھاؤ",
index 183a232..555d2b1 100644 (file)
        "history_short": "Историја",
        "history_small": "историја",
        "updatedmarker": "ажурирано од моје последње посете",
-       "printableversion": "Верзија за штампу",
+       "printableversion": "Верзија за штампање",
        "permalink": "Трајна веза",
-       "print": "ШÑ\82ампаÑ\98",
+       "print": "ШÑ\82ампаÑ\9aе",
        "view": "Прикажи",
        "view-foreign": "Прикажи на пројекту $1",
        "edit": "Уреди",
        "editpage-notsupportedcontentformat-text": "Формат садржаја $1 није подржан за модел садржаја $2.",
        "content-model-wikitext": "викитекст",
        "content-model-text": "чист текст",
-       "content-model-javascript": "јаваскрипт",
+       "content-model-javascript": "JavaScript",
        "content-model-css": "CSS",
        "content-model-json": "JSON",
        "content-json-empty-object": "Празан објекат",
        "protect-locked-dblock": "Нивои заштите се не могу мењати јер је активна база података закључана.\nОво су тренутна подешавања странице <strong>$1</strong>:",
        "protect-locked-access": "Ваш налог нема дозволу да мења нивое заштите странице.\nОво су тренутна подешавања странице <strong>$1</strong>:",
        "protect-cascadeon": "Ова страница је тренутно заштићена јер је укључена у {{PLURAL:$1|следећу страницу која има|следеће странице које имају}} укључену преносиву заштиту.\nПромене нивоа заштите ове странице неће да утичу на преносиву заштиту.",
-       "protect-default": "Ð\94опÑ\83Ñ\88Ñ\82ено свим корисницима",
+       "protect-default": "Ð\94озвоÑ\99ено свим корисницима",
        "protect-fallback": "Дозвољено само корисницима са дозволом „$1“",
-       "protect-level-autoconfirmed": "Ð\94опÑ\83Ñ\88Ñ\82ено само аутоматски потврђеним корисницима",
-       "protect-level-sysop": "Ð\94опÑ\83Ñ\88Ñ\82ено само администраторима",
+       "protect-level-autoconfirmed": "Ð\94озвоÑ\99ено само аутоматски потврђеним корисницима",
+       "protect-level-sysop": "Ð\94озвоÑ\99ено само администраторима",
        "protect-summary-desc": "[$1=$2] ($3)",
        "protect-summary-cascade": "преносива заштита",
        "protect-expiring": "истиче $1 (UTC)",
        "tooltip-t-info": "Више информација о овој страници",
        "tooltip-t-upload": "Отпремите датотеке",
        "tooltip-t-specialpages": "Списак свих посебних страница",
-       "tooltip-t-print": "Верзија ове странице за штампу",
+       "tooltip-t-print": "Верзија ове странице за штампање",
        "tooltip-t-permalink": "Трајна веза ка овој измени странице",
        "tooltip-ca-nstab-main": "Погледајте страницу са садржајем",
        "tooltip-ca-nstab-user": "Погледајте корисничку страницу",
        "spam_blanking": "Све измене садрже везе до $1. Празним",
        "spam_deleting": "Све измене садрже везе до $1. Бришем",
        "simpleantispam-label": "Провера против нежељеног садржаја. \n<strong>Не</strong> попуњавајте ово!",
-       "pageinfo-title": "Ð\98нÑ\84оÑ\80маÑ\86иÑ\98е Ð·Ð° „$1“",
+       "pageinfo-title": "Ð\98нÑ\84оÑ\80маÑ\86иÑ\98е Ð¾ Ñ\81Ñ\82Ñ\80аниÑ\86и „$1“",
        "pageinfo-not-current": "Није могуће навести ове инфомације за старије измене.",
        "pageinfo-header-basic": "Основне информације",
        "pageinfo-header-edits": "Историја измена",
        "pageinfo-visiting-watchers": "Број надгледача странице који су посетили скорашње измене",
        "pageinfo-few-watchers": "Мање од $1 {{PLURAL:$1|надгледача}}",
        "pageinfo-few-visiting-watchers": "Могуће је да постоји корисник који прати и посећује недавне промене",
-       "pageinfo-redirects-name": "Ð\91Ñ\80оÑ\98 Ð¿Ñ\80еÑ\83Ñ\81меÑ\80ења на ову страницу",
+       "pageinfo-redirects-name": "Ð\91Ñ\80оÑ\98 Ð¿Ñ\80еÑ\83Ñ\81меÑ\80авања на ову страницу",
        "pageinfo-redirects-value": "$1",
        "pageinfo-subpages-name": "Број подстраница ове странице",
        "pageinfo-subpages-value": "$1 ($2 {{PLURAL:$2|преусмерење|преусмерења|преусмерења}}; $3 {{PLURAL:$3|непреусмерење|непреусмерења|непреусмерења}})",
-       "pageinfo-firstuser": "Ð\90Ñ\83Ñ\82оÑ\80 странице",
-       "pageinfo-firsttime": "Датум стварања странице",
-       "pageinfo-lastuser": "Ð\9fоÑ\81ледÑ\9aи уредник",
-       "pageinfo-lasttime": "Ð\94аÑ\82Ñ\83м Ð¿Ð¾Ñ\81ледÑ\9aе измене",
-       "pageinfo-edits": "Ð\91рој измена",
+       "pageinfo-firstuser": "ТвоÑ\80аÑ\86 странице",
+       "pageinfo-firsttime": "Датум прављења странице",
+       "pageinfo-lastuser": "Ð\9dаÑ\98новиÑ\98и уредник",
+       "pageinfo-lasttime": "Ð\94аÑ\82Ñ\83м Ð½Ð°Ñ\98новиÑ\98е измене",
+       "pageinfo-edits": "УкÑ\83пан Ð±рој измена",
        "pageinfo-authors": "Број засебних аутора",
-       "pageinfo-recent-edits": "Ð\91Ñ\80оÑ\98 Ð½ÐµÐ´Ð°Ð²Ð½Ð¸Ñ\85 Ð¿Ñ\80омена (у последњих $1)",
-       "pageinfo-recent-authors": "Број скорашњих засебних аутора",
+       "pageinfo-recent-edits": "Ð\91Ñ\80оÑ\98 Ð½ÐµÐ´Ð°Ð²Ð½Ð¸Ñ\85 Ð¸Ð·мена (у последњих $1)",
+       "pageinfo-recent-authors": "Број недавних засебних аутора",
        "pageinfo-magic-words": "{{PLURAL:$1|Магична реч|Магичне речи}} ($1)",
        "pageinfo-hidden-categories": "{{PLURAL:$1|Сакривена категорија|Сакривене категорије}} ($1)",
        "pageinfo-templates": "{{PLURAL:$1|Укључени шаблон|Укључени шаблони}} ($1)",
index 95f1cfb..a030f05 100644 (file)
        "special-characters-title-emdash": "långt tankstreck",
        "special-characters-title-minus": "minustecken",
        "mw-widgets-abandonedit": "Är du säker på att du vill lämna redigeringsläget utan att spara först?",
-       "mw-widgets-abandonedit-discard": "Ignorera ändringar",
+       "mw-widgets-abandonedit-discard": "Släng redigeringar",
        "mw-widgets-abandonedit-keep": "Fortsätt redigera",
        "mw-widgets-abandonedit-title": "Är du säker?",
        "mw-widgets-dateinput-no-date": "Inget valt datum",
index 0fa24d1..02fb029 100644 (file)
        "prefixindex": "Önek ile tüm sayfalar",
        "prefixindex-namespace": "Önek ile tüm sayfalar ($1 ad alanında)",
        "prefixindex-submit": "Göster",
-       "prefixindex-strip": "Listede öneki kırp",
+       "prefixindex-strip": "Sonuçlardaki öneki gizle",
        "shortpages": "Kısa sayfalar",
        "longpages": "Uzun sayfalar",
        "deadendpages": "Başka sayfalara bağlantısı olmayan sayfalar",
index 3a0cb20..659678b 100644 (file)
        "tooltip-namespace_association": "勾選此核選方塊以包含與選擇命名空間相關的對話或主題命名空間",
        "blanknamespace": "(主要)",
        "contributions": "{{GENDER:$1|使用者}}貢獻",
-       "contributions-title": "$1 的使用者貢獻",
+       "contributions-title": "$1的使用者貢獻",
        "mycontris": "貢獻",
        "anoncontribs": "貢獻",
-       "contribsub2": "{{GENDER:$3|$1}} 的貢獻 ($2)",
+       "contribsub2": "{{GENDER:$3|$1}}的貢獻($2)",
        "contributions-userdoesnotexist": "使用者帳號 \"$1\" 尚未註冊。",
        "nocontribs": "沒有找到符合條件的變更。",
        "uctop": "(目前)",
index 24ca86d..17d2e18 100644 (file)
@@ -54,13 +54,13 @@ class CleanupSpam extends Maintenance {
 
                $spec = $this->getArg();
 
-               $likes = [];
+               $protConds = [];
                foreach ( [ 'http://', 'https://' ] as $prot ) {
-                       $like = LinkFilter::makeLikeArray( $spec, $prot );
-                       if ( !$like ) {
+                       $conds = LinkFilter::getQueryConditions( $spec, [ 'protocol' => $prot ] );
+                       if ( !$conds ) {
                                $this->fatalError( "Not a valid hostname specification: $spec" );
                        }
-                       $likes[$prot] = $like;
+                       $protConds[$prot] = $conds;
                }
 
                if ( $this->hasOption( 'all' ) ) {
@@ -71,11 +71,11 @@ class CleanupSpam extends Maintenance {
                                /** @var $dbr Database */
                                $dbr = $this->getDB( DB_REPLICA, [], $wikiID );
 
-                               foreach ( $likes as $like ) {
+                               foreach ( $protConds as $conds ) {
                                        $count = $dbr->selectField(
                                                'externallinks',
                                                'COUNT(*)',
-                                               [ 'el_index' . $dbr->buildLike( $like ) ],
+                                               $conds,
                                                __METHOD__
                                        );
                                        if ( $count ) {
@@ -99,11 +99,11 @@ class CleanupSpam extends Maintenance {
                        $count = 0;
                        /** @var $dbr Database */
                        $dbr = $this->getDB( DB_REPLICA );
-                       foreach ( $likes as $prot => $like ) {
+                       foreach ( $protConds as $prot => $conds ) {
                                $res = $dbr->select(
                                        'externallinks',
                                        [ 'DISTINCT el_from' ],
-                                       [ 'el_index' . $dbr->buildLike( $like ) ],
+                                       $conds,
                                        __METHOD__
                                );
                                $count = $dbr->numRows( $res );
index 9849dc5..76a6a1f 100644 (file)
@@ -38,17 +38,44 @@ class DeleteSelfExternals extends Maintenance {
 
        public function execute() {
                global $wgServer;
+
+               // Extract the host and scheme from $wgServer
+               $bits = wfParseUrl( $wgServer );
+               if ( !$bits ) {
+                       $this->error( 'Could not parse $wgServer' );
+                       exit( 1 );
+               }
+
                $this->output( "Deleting self externals from $wgServer\n" );
                $db = $this->getDB( DB_MASTER );
-               while ( 1 ) {
-                       $this->commitTransaction( $db, __METHOD__ );
-                       $q = $db->limitResult( "DELETE /* deleteSelfExternals */ FROM externallinks WHERE el_to"
-                               . $db->buildLike( $wgServer . '/', $db->anyString() ), $this->getBatchSize() );
-                       $this->output( "Deleting a batch\n" );
-                       $db->query( $q );
-                       if ( !$db->affectedRows() ) {
-                               return;
+
+               // If it's protocol-relative, we need to do both http and https.
+               // Otherwise, just do the specified scheme.
+               $host = $bits['host'];
+               if ( isset( $bits['port'] ) ) {
+                       $host .= ':' . $bits['port'];
+               }
+               if ( $bits['scheme'] != '' ) {
+                       $conds = [ LinkFilter::getQueryConditions( $host, [ 'protocol' => $bits['scheme'] . '://' ] ) ];
+               } else {
+                       $conds = [
+                               LinkFilter::getQueryConditions( $host, [ 'protocol' => 'http://' ] ),
+                               LinkFilter::getQueryConditions( $host, [ 'protocol' => 'https://' ] ),
+                       ];
+               }
+
+               foreach ( $conds as $cond ) {
+                       if ( !$cond ) {
+                               continue;
                        }
+                       $cond = $db->makeList( $cond, LIST_AND );
+                       do {
+                               $this->commitTransaction( $db, __METHOD__ );
+                               $q = $db->limitResult( "DELETE /* deleteSelfExternals */ FROM externallinks WHERE $cond",
+                                       $this->mBatchSize );
+                               $this->output( "Deleting a batch\n" );
+                               $db->query( $q );
+                       } while ( $db->affectedRows() );
                }
        }
 }
index 2b95b43..63e0aa8 100644 (file)
@@ -545,6 +545,9 @@ CREATE TABLE /*_*/externallinks (
   -- which allows for fast searching for all pages under example.com with the
   -- clause:
   --      WHERE el_index LIKE 'http://com.example.%'
+  --
+  -- Note if you enable or disable PHP's intl extension, you'll need to run
+  -- maintenance/refreshExternallinksIndex.php to refresh this field.
   el_index nvarchar(450) NOT NULL,
 
   -- This is el_index truncated to 60 bytes to allow for sortable queries that
diff --git a/maintenance/refreshExternallinksIndex.php b/maintenance/refreshExternallinksIndex.php
new file mode 100644 (file)
index 0000000..1551a94
--- /dev/null
@@ -0,0 +1,120 @@
+<?php
+/**
+ * Refresh the externallinks table el_index and el_index_60 from el_to
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @file
+ * @ingroup Maintenance
+ */
+
+require_once __DIR__ . '/Maintenance.php';
+
+/**
+ * Maintenance script that refreshes the externallinks table el_index and
+ * el_index_60 from el_to
+ *
+ * @ingroup Maintenance
+ * @since 1.33
+ */
+class RefreshExternallinksIndex extends LoggedUpdateMaintenance {
+       public function __construct() {
+               parent::__construct();
+               $this->addDescription(
+                       'Refresh the externallinks table el_index and el_index_60 from el_to' );
+               $this->setBatchSize( 10000 );
+       }
+
+       protected function getUpdateKey() {
+               return static::class
+                       . ' v' . LinkFilter::VERSION
+                       . ( LinkFilter::supportsIDN() ? '+' : '-' ) . 'IDN';
+       }
+
+       protected function updateSkippedMessage() {
+               return 'externallinks table indexes up to date';
+       }
+
+       protected function doDBUpdates() {
+               $dbw = $this->getDB( DB_MASTER );
+               if ( !$dbw->tableExists( 'externallinks' ) ) {
+                       $this->error( "externallinks table does not exist" );
+                       return false;
+               }
+               $this->output( "Updating externallinks table index fields\n" );
+
+               $minmax = $dbw->selectRow(
+                       'externallinks',
+                       [ 'min' => 'MIN(el_id)', 'max' => 'MAX(el_id)' ],
+                       '',
+                       __METHOD__
+               );
+
+               $updated = 0;
+               $deleted = 0;
+               $start = $minmax->min - 1;
+               $last = $minmax->max;
+               while ( $start < $last ) {
+                       $end = min( $start + $this->mBatchSize, $last );
+                       $this->output( "el_id $start - $end of $last\n" );
+                       $res = $dbw->select( 'externallinks', [ 'el_id', 'el_to', 'el_index' ],
+                               [
+                                       "el_id > $start",
+                                       "el_id <= $end",
+                               ],
+                               __METHOD__,
+                               [ 'ORDER BY' => 'el_id' ]
+                       );
+                       foreach ( $res as $row ) {
+                               $newIndexes = LinkFilter::makeIndexes( $row->el_to );
+                               if ( !$newIndexes ) {
+                                       $dbw->delete( 'externallinks', [ 'el_id' => $row->el_id ], __METHOD__ );
+                                       $deleted++;
+                                       continue;
+                               }
+                               if ( in_array( $row->el_index, $newIndexes, true ) ) {
+                                       continue;
+                               }
+
+                               if ( count( $newIndexes ) === 1 ) {
+                                       $newIndex = $newIndexes[0];
+                               } else {
+                                       // Assume the scheme is the only difference between the different $newIndexes.
+                                       // Keep this row's scheme, assuming there's another row with the other scheme.
+                                       $newIndex = substr( $row->el_index, 0, strpos( $row->el_index, ':' ) ) .
+                                               substr( $newIndexes[0], strpos( $newIndexes[0], ':' ) );
+                               }
+                               $dbw->update( 'externallinks',
+                                       [
+                                               'el_index' => $newIndex,
+                                               'el_index_60' => substr( $newIndex, 0, 60 ),
+                                       ],
+                                       [ 'el_id' => $row->el_id ],
+                                       __METHOD__
+                               );
+                               $updated++;
+                       }
+                       wfWaitForSlaves();
+                       $start = $end;
+               }
+               $this->output( "Done, $updated rows updated, $deleted deleted.\n" );
+
+               return true;
+       }
+}
+
+$maintClass = "RefreshExternallinksIndex";
+require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/resetPageRandom.php b/maintenance/resetPageRandom.php
new file mode 100644 (file)
index 0000000..6110221
--- /dev/null
@@ -0,0 +1,126 @@
+<?php
+/**
+ * Resets the page_random field for articles in the provided time range.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @file
+ * @ingroup Maintenance
+ */
+
+require_once __DIR__ . '/Maintenance.php';
+
+/**
+ * Maintenance script that resets page_random over a time range.
+ *
+ * @ingroup Maintenance
+ */
+class ResetPageRandom extends Maintenance {
+       public function __construct() {
+               parent::__construct();
+               $this->addDescription( 'Reset the page_random for articles within given date range' );
+               $this->addOption( 'from',
+                       'From date range selector to select articles to update, ex: 20041011000000' );
+               $this->addOption( 'to',
+                       'To date range selector to select articles to update, ex: 20050708000000' );
+               $this->addOption( 'dry', 'Do not update column' );
+               $this->addOption( 'batch-start',
+                       'Optional: Use when you need to restart the reset process from a given page ID offset'
+                       . ' in case a previous reset failed or was stopped'
+               );
+               // Initialize batch size to a good default value and enable the batch size option.
+               $this->setBatchSize( 200 );
+       }
+
+       public function execute() {
+               $batchSize = $this->getBatchSize();
+               $dbw = $this->getDB( DB_MASTER );
+               $lbFactory = \MediaWiki\MediaWikiServices::getInstance()->getDBLoadBalancerFactory();
+               $dbr = $this->getDB( DB_REPLICA );
+               $from = wfTimestampOrNull( TS_MW, $this->getOption( 'from' ) );
+               $to = wfTimestampOrNull( TS_MW, $this->getOption( 'to' ) );
+
+               if ( $from === null || $to === null ) {
+                       $this->output( "--from and --to have to be provided" . PHP_EOL );
+                       return false;
+               }
+               if ( $from >= $to ) {
+                       $this->output( "--from has to be smaller than --to" . PHP_EOL );
+                       return false;
+               }
+               $batchStart = (int)$this->getOption( 'batch-start', 0 );
+               $changed = 0;
+               $dry = (bool)$this->getOption( 'dry' );
+
+               $message = "Resetting page_random column within date range from $from to $to";
+               if ( $batchStart > 0 ) {
+                       $message .= " starting from page ID $batchStart";
+               }
+               $message .= $dry ? ". dry run" : '.';
+
+               $this->output( $message . PHP_EOL );
+               do {
+                       $this->output( "  ...doing chunk of $batchSize from $batchStart " . PHP_EOL );
+
+                       // Find the oldest page revision associated with each page_id. Iff it falls in the given
+                       // time range AND it's greater than $batchStart, yield the page ID. If it falls outside the
+                       // time range, it was created before or after the occurrence of T208909 and its page_random
+                       // is considered valid. The replica is used for this read since page_id and the rev_timestamp
+                       // will not change between queries.
+                       $res = $dbr->select(
+                               'page',
+                               'page_id',
+                               [
+                                       '(' . $dbr->selectSQLText( 'revision', 'MIN(rev_timestamp)', 'rev_page=page_id' ) . ') ' .
+                                               'BETWEEN ' . $dbr->addQuotes( $dbr->timestamp( $from ) ) .
+                                               ' AND ' . $dbr->addQuotes( $dbr->timestamp( $to ) ),
+                                       'page_id > ' . $dbr->addQuotes( $batchStart )
+                               ],
+                               __METHOD__,
+                               [ 'LIMIT' => $batchSize, 'ORDER BY' => 'page_id' ]
+                       );
+
+                       foreach ( $res as $row ) {
+                               if ( !$dry ) {
+                                       # Update the row...
+                                       $dbw->update( 'page',
+                                               [ 'page_random' => wfRandom() ],
+                                               [ 'page_id' => $row->page_id ],
+                                               __METHOD__ );
+                                       $changed += $dbw->affectedRows();
+                               } else {
+                                       $changed++;
+                               }
+                       }
+                       if ( $row ) {
+                               $batchStart = $row->page_id;
+                       } else {
+                               // We don't need to set the $batchStart as $res is empty,
+                               // and we don't need to do another loop
+                               // the while() condition will evaluate to false and
+                               // we will leave the do{}while() block.
+                       }
+
+                       $lbFactory->waitForReplication();
+               } while ( $res->numRows() === $batchSize );
+               $this->output( "page_random reset complete ... changed $changed rows" . PHP_EOL );
+
+               return true;
+       }
+}
+
+$maintClass = ResetPageRandom::class;
+require_once RUN_MAINTENANCE_IF_MAIN;
index 8edc3c3..c46e4c6 100644 (file)
@@ -930,6 +930,9 @@ CREATE TABLE /*_*/externallinks (
   -- which allows for fast searching for all pages under example.com with the
   -- clause:
   --      WHERE el_index LIKE 'http://com.example.%'
+  --
+  -- Note if you enable or disable PHP's intl extension, you'll need to run
+  -- maintenance/refreshExternallinksIndex.php to refresh this field.
   el_index blob NOT NULL,
 
   -- This is el_index truncated to 60 bytes to allow for sortable queries that
index 32c190e..22fe3ce 100644 (file)
@@ -589,63 +589,6 @@ class GlobalTest extends MediaWikiTestCase {
                ];
        }
 
-       /**
-        * @dataProvider provideMakeUrlIndexes()
-        * @covers ::wfMakeUrlIndexes
-        */
-       public function testMakeUrlIndexes( $url, $expected ) {
-               $index = wfMakeUrlIndexes( $url );
-               $this->assertEquals( $expected, $index, "wfMakeUrlIndexes(\"$url\")" );
-       }
-
-       public static function provideMakeUrlIndexes() {
-               return [
-                       // Testcase for T30627
-                       [
-                               'https://example.org/test.cgi?id=12345',
-                               [ 'https://org.example./test.cgi?id=12345' ]
-                       ],
-                       [
-                               // mailtos are handled special
-                               // is this really right though? that final . probably belongs earlier?
-                               'mailto:wiki@wikimedia.org',
-                               [ 'mailto:org.wikimedia@wiki.' ]
-                       ],
-
-                       // file URL cases per T30627...
-                       [
-                               // three slashes: local filesystem path Unix-style
-                               'file:///whatever/you/like.txt',
-                               [ 'file://./whatever/you/like.txt' ]
-                       ],
-                       [
-                               // three slashes: local filesystem path Windows-style
-                               'file:///c:/whatever/you/like.txt',
-                               [ 'file://./c:/whatever/you/like.txt' ]
-                       ],
-                       [
-                               // two slashes: UNC filesystem path Windows-style
-                               'file://intranet/whatever/you/like.txt',
-                               [ 'file://intranet./whatever/you/like.txt' ]
-                       ],
-                       // Multiple-slash cases that can sorta work on Mozilla
-                       // if you hack it just right are kinda pathological,
-                       // and unreliable cross-platform or on IE which means they're
-                       // unlikely to appear on intranets.
-                       // Those will survive the algorithm but with results that
-                       // are less consistent.
-
-                       // protocol-relative URL cases per T31854...
-                       [
-                               '//example.org/test.cgi?id=12345',
-                               [
-                                       'http://org.example./test.cgi?id=12345',
-                                       'https://org.example./test.cgi?id=12345'
-                               ]
-                       ],
-               ];
-       }
-
        /**
         * @dataProvider provideWfMatchesDomainList
         * @covers ::wfMatchesDomainList
index 51b54d2..02fbd81 100644 (file)
@@ -75,7 +75,10 @@ class LinkFilterTest extends MediaWikiLangTestCase {
                        [ 'http://', 'test.com', 'http://name:pass@test.com' ],
                        [ 'http://', '*.test.com', 'http://a.b.c.test.com/dir/dir/file?a=6' ],
                        [ null, 'http://*.test.com', 'http://www.test.com' ],
+                       [ 'http://', '.test.com', 'http://.test.com' ],
+                       [ 'http://', '*..test.com', 'http://foo..test.com' ],
                        [ 'mailto:', 'name@mail.test123.com', 'mailto:name@mail.test123.com' ],
+                       [ 'mailto:', '*@mail.test123.com', 'mailto:name@mail.test123.com' ],
                        [ '',
                                'http://name:pass@www.test.com:12345/dir/dir/file.xyz.php#__se__?arg1=_&arg2[]=4rtg',
                                'http://name:pass@www.test.com:12345/dir/dir/file.xyz.php#__se__?arg1=_&arg2[]=4rtg'
@@ -127,39 +130,66 @@ class LinkFilterTest extends MediaWikiLangTestCase {
                                'http://xx23124:__ffdfdef__@www.test.com:12345/dir' ,
                                'http://name:pass@www.test.com:12345/dir/dir/file.xyz.php#__se__?arg1=_&arg2[]=4rtg'
                        ],
+                       [ 'http://', '127.0.0.1', 'http://127.000.000.001' ],
+                       [ 'http://', '127.0.0.*', 'http://127.000.000.010' ],
+                       [ 'http://', '127.0.*', 'http://127.000.123.010' ],
+                       [ 'http://', '127.*', 'http://127.127.127.127' ],
+                       [ 'http://', '[0:0:0:0:0:0:0:0001]', 'http://[::1]' ],
+                       [ 'http://', '[2001:db8:0:0:*]', 'http://[2001:0DB8::]' ],
+                       [ 'http://', '[2001:db8:0:0:*]', 'http://[2001:0DB8::123]' ],
+                       [ 'http://', '[2001:db8:0:0:*]', 'http://[2001:0DB8::123:456]' ],
+                       [ 'http://', 'xn--f-vgaa.example.com', 'http://fóó.example.com', [ 'idn' => true ] ],
+                       [ 'http://', 'xn--f-vgaa.example.com', 'http://f%c3%b3%C3%B3.example.com', [ 'idn' => true ] ],
+                       [ 'http://', 'fóó.example.com', 'http://xn--f-vgaa.example.com', [ 'idn' => true ] ],
+                       [ 'http://', 'f%c3%b3%C3%B3.example.com', 'http://xn--f-vgaa.example.com', [ 'idn' => true ] ],
+                       [ 'http://', 'f%c3%b3%C3%B3.example.com', 'http://fóó.example.com' ],
+                       [ 'http://', 'fóó.example.com', 'http://f%c3%b3%C3%B3.example.com' ],
+
+                       [ 'http://', 'example.com./foo', 'http://example.com/foo' ],
+                       [ 'http://', 'example.com/foo', 'http://example.com./foo' ],
+                       [ 'http://', '127.0.0.1./foo', 'http://127.0.0.1/foo' ],
+                       [ 'http://', '127.0.0.1/foo', 'http://127.0.0.1./foo' ],
 
                        // Tests for false positives
-                       [ 'http://', 'test.com', 'http://www.test.com', false ],
-                       [ 'http://', 'www1.test.com', 'http://www.test.com', false ],
-                       [ 'http://', '*.test.com', 'http://www.test.t.com', false ],
-                       [ '', 'http://test.com:8080', 'http://www.test.com:8080', false ],
-                       [ '', 'https://test.com', 'http://test.com', false ],
-                       [ '', 'http://test.com', 'https://test.com', false ],
-                       [ 'http://', 'http://test.com', 'http://test.com', false ],
-                       [ null, 'http://www.test.com', 'http://www.test.com:80', false ],
-                       [ null, 'http://www.test.com:80', 'http://www.test.com', false ],
-                       [ null, 'http://*.test.com:80', 'http://www.test.com', false ],
+                       [ 'http://', 'test.com', 'http://www.test.com', [ 'found' => false ] ],
+                       [ 'http://', 'www1.test.com', 'http://www.test.com', [ 'found' => false ] ],
+                       [ 'http://', '*.test.com', 'http://www.test.t.com', [ 'found' => false ] ],
+                       [ 'http://', 'test.com', 'http://xtest.com', [ 'found' => false ] ],
+                       [ 'http://', '*.test.com', 'http://xtest.com', [ 'found' => false ] ],
+                       [ 'http://', '.test.com', 'http://test.com', [ 'found' => false ] ],
+                       [ 'http://', '.test.com', 'http://www.test.com', [ 'found' => false ] ],
+                       [ 'http://', '*..test.com', 'http://test.com', [ 'found' => false ] ],
+                       [ 'http://', '*..test.com', 'http://www.test.com', [ 'found' => false ] ],
+                       [ '', 'http://test.com:8080', 'http://www.test.com:8080', [ 'found' => false ] ],
+                       [ '', 'https://test.com', 'http://test.com', [ 'found' => false ] ],
+                       [ '', 'http://test.com', 'https://test.com', [ 'found' => false ] ],
+                       [ 'http://', 'http://test.com', 'http://test.com', [ 'found' => false ] ],
+                       [ null, 'http://www.test.com', 'http://www.test.com:80', [ 'found' => false ] ],
+                       [ null, 'http://www.test.com:80', 'http://www.test.com', [ 'found' => false ] ],
+                       [ null, 'http://*.test.com:80', 'http://www.test.com', [ 'found' => false ] ],
                        [ '', 'https://gerrit.wikimedia.org/r/#/XXX/status:open,n,z',
-                               'https://gerrit.wikimedia.org/r/#/q/status:open,n,z', false ],
+                               'https://gerrit.wikimedia.org/r/#/q/status:open,n,z', [ 'found' => false ] ],
                        [ '', 'https://*.wikimedia.org/r/#/q/status:open,n,z',
-                               'https://gerrit.wikimedia.org/r/#/XXX/status:open,n,z', false ],
-                       [ 'mailto:', '@test.com', '@abc.test.com', false ],
-                       [ 'mailto:', 'mail@test.com', 'mail2@test.com', false ],
-                       [ '', 'mailto:mail@test.com', 'mail2@test.com', false ],
-                       [ '', 'mailto:@test.com', '@abc.test.com', false ],
-                       [ 'ftp://', '*.co', 'ftp://www.co.uk', false ],
-                       [ 'ftp://', '*.co', 'ftp://www.co.m', false ],
-                       [ 'ftp://', '*.co/dir/', 'ftp://www.co/dir2/', false ],
-                       [ 'ftp://', 'www.co/dir/', 'ftp://www.co/dir2/', false ],
-                       [ 'ftp://', 'test.com/dir/', 'ftp://test.com/', false ],
-                       [ '', 'http://test.com:8080/dir/', 'http://test.com:808/dir/', false ],
-                       [ '', 'http://test.com/dir/index.html', 'http://test.com/dir/index.php', false ],
+                               'https://gerrit.wikimedia.org/r/#/XXX/status:open,n,z', [ 'found' => false ] ],
+                       [ 'mailto:', '@test.com', '@abc.test.com', [ 'found' => false ] ],
+                       [ 'mailto:', 'mail@test.com', 'mail2@test.com', [ 'found' => false ] ],
+                       [ '', 'mailto:mail@test.com', 'mail2@test.com', [ 'found' => false ] ],
+                       [ '', 'mailto:@test.com', '@abc.test.com', [ 'found' => false ] ],
+                       [ 'ftp://', '*.co', 'ftp://www.co.uk', [ 'found' => false ] ],
+                       [ 'ftp://', '*.co', 'ftp://www.co.m', [ 'found' => false ] ],
+                       [ 'ftp://', '*.co/dir/', 'ftp://www.co/dir2/', [ 'found' => false ] ],
+                       [ 'ftp://', 'www.co/dir/', 'ftp://www.co/dir2/', [ 'found' => false ] ],
+                       [ 'ftp://', 'test.com/dir/', 'ftp://test.com/', [ 'found' => false ] ],
+                       [ '', 'http://test.com:8080/dir/', 'http://test.com:808/dir/', [ 'found' => false ] ],
+                       [ '', 'http://test.com/dir/index.html', 'http://test.com/dir/index.php', [ 'found' => false ] ],
+                       [ 'http://', '127.0.0.*', 'http://127.0.1.0', [ 'found' => false ] ],
+                       [ 'http://', '[2001:db8::*]', 'http://[2001:0DB8::123:456]', [ 'found' => false ] ],
 
                        // These are false positives too and ideally shouldn't match, but that
                        // would require using regexes and RLIKE instead of LIKE
-                       // [ null, 'http://*.test.com', 'http://www.test.com:80', false ],
+                       // [ null, 'http://*.test.com', 'http://www.test.com:80', [ 'found' => false ] ],
                        // [ '', 'https://*.wikimedia.org/r/#/q/status:open,n,z',
-                       //      'https://gerrit.wikimedia.org/XXX/r/#/q/status:open,n,z', false ],
+                       //      'https://gerrit.wikimedia.org/XXX/r/#/q/status:open,n,z', [ 'found' => false ] ],
                ];
        }
 
@@ -167,17 +197,24 @@ class LinkFilterTest extends MediaWikiLangTestCase {
         * testMakeLikeArrayWithValidPatterns()
         *
         * Tests whether the LIKE clause produced by LinkFilter::makeLikeArray($pattern, $protocol)
-        * will find one of the URL indexes produced by wfMakeUrlIndexes($url)
+        * will find one of the URL indexes produced by LinkFilter::makeIndexes($url)
         *
         * @dataProvider provideValidPatterns
         *
         * @param string $protocol Protocol, e.g. 'http://' or 'mailto:'
         * @param string $pattern Search pattern to feed to LinkFilter::makeLikeArray
-        * @param string $url URL to feed to wfMakeUrlIndexes
-        * @param bool $shouldBeFound Should the URL be found? (defaults true)
+        * @param string $url URL to feed to LinkFilter::makeIndexes
+        * @param array $options
+        *  - found: (bool) Should the URL be found? (defaults true)
+        *  - idn: (bool) Does this test require the idn conversion (default false)
         */
-       function testMakeLikeArrayWithValidPatterns( $protocol, $pattern, $url, $shouldBeFound = true ) {
-               $indexes = wfMakeUrlIndexes( $url );
+       function testMakeLikeArrayWithValidPatterns( $protocol, $pattern, $url, $options = [] ) {
+               $options += [ 'found' => true, 'idn' => false ];
+               if ( !empty( $options['idn'] ) && !LinkFilter::supportsIDN() ) {
+                       $this->markTestSkipped( 'LinkFilter IDN support is not available' );
+               }
+
+               $indexes = LinkFilter::makeIndexes( $url );
                $likeArray = LinkFilter::makeLikeArray( $pattern, $protocol );
 
                $this->assertTrue( $likeArray !== false,
@@ -186,7 +223,7 @@ class LinkFilterTest extends MediaWikiLangTestCase {
 
                $regex = $this->createRegexFromLIKE( $likeArray );
                $debugmsg = "Regex: '" . $regex . "'\n";
-               $debugmsg .= count( $indexes ) . " index(es) created by wfMakeUrlIndexes():\n";
+               $debugmsg .= count( $indexes ) . " index(es) created by LinkFilter::makeIndexes():\n";
 
                $matches = 0;
 
@@ -195,7 +232,7 @@ class LinkFilterTest extends MediaWikiLangTestCase {
                        $debugmsg .= "\t'$index'\n";
                }
 
-               if ( $shouldBeFound ) {
+               if ( !empty( $options['found'] ) ) {
                        $this->assertTrue(
                                $matches > 0,
                                "Search pattern '$protocol$pattern' does not find url '$url' \n$debugmsg"
@@ -251,4 +288,183 @@ class LinkFilterTest extends MediaWikiLangTestCase {
                );
        }
 
+       /**
+        * @dataProvider provideMakeIndexes()
+        * @covers LinkFilter::makeIndexes
+        */
+       public function testMakeIndexes( $url, $expected ) {
+               // Set global so file:// tests can work
+               $this->setMwGlobals( [
+                       'wgUrlProtocols' => [
+                               'http://',
+                               'https://',
+                               'mailto:',
+                               '//',
+                               'file://', # Non-default
+                       ],
+               ] );
+
+               $index = LinkFilter::makeIndexes( $url );
+               $this->assertEquals( $expected, $index, "LinkFilter::makeIndexes(\"$url\")" );
+       }
+
+       public static function provideMakeIndexes() {
+               return [
+                       // Testcase for T30627
+                       [
+                               'https://example.org/test.cgi?id=12345',
+                               [ 'https://org.example./test.cgi?id=12345' ]
+                       ],
+                       [
+                               // mailtos are handled special
+                               'mailto:wiki@wikimedia.org',
+                               [ 'mailto:org.wikimedia.@wiki' ]
+                       ],
+                       [
+                               // mailtos are handled special
+                               'mailto:wiki',
+                               [ 'mailto:@wiki' ]
+                       ],
+
+                       // file URL cases per T30627...
+                       [
+                               // three slashes: local filesystem path Unix-style
+                               'file:///whatever/you/like.txt',
+                               [ 'file://./whatever/you/like.txt' ]
+                       ],
+                       [
+                               // three slashes: local filesystem path Windows-style
+                               'file:///c:/whatever/you/like.txt',
+                               [ 'file://./c:/whatever/you/like.txt' ]
+                       ],
+                       [
+                               // two slashes: UNC filesystem path Windows-style
+                               'file://intranet/whatever/you/like.txt',
+                               [ 'file://intranet./whatever/you/like.txt' ]
+                       ],
+                       // Multiple-slash cases that can sorta work on Mozilla
+                       // if you hack it just right are kinda pathological,
+                       // and unreliable cross-platform or on IE which means they're
+                       // unlikely to appear on intranets.
+                       // Those will survive the algorithm but with results that
+                       // are less consistent.
+
+                       // protocol-relative URL cases per T31854...
+                       [
+                               '//example.org/test.cgi?id=12345',
+                               [
+                                       'http://org.example./test.cgi?id=12345',
+                                       'https://org.example./test.cgi?id=12345'
+                               ]
+                       ],
+
+                       // IP addresses
+                       [
+                               'http://192.0.2.0/foo',
+                               [ 'http://V4.192.0.2.0./foo' ]
+                       ],
+                       [
+                               'http://192.0.0002.0/foo',
+                               [ 'http://V4.192.0.2.0./foo' ]
+                       ],
+                       [
+                               'http://[2001:db8::1]/foo',
+                               [ 'http://V6.2001.DB8.0.0.0.0.0.1./foo' ]
+                       ],
+
+                       // Explicit specification of the DNS root
+                       [
+                               'http://example.com./foo',
+                               [ 'http://com.example./foo' ]
+                       ],
+                       [
+                               'http://192.0.2.0./foo',
+                               [ 'http://V4.192.0.2.0./foo' ]
+                       ],
+
+                       // Weird edge case
+                       [
+                               'http://.example.com/foo',
+                               [ 'http://com.example../foo' ]
+                       ],
+               ];
+       }
+
+       /**
+        * @dataProvider provideGetQueryConditions
+        * @covers LinkFilter::getQueryConditions
+        */
+       public function testGetQueryConditions( $query, $options, $expected ) {
+               $conds = LinkFilter::getQueryConditions( $query, $options );
+               $this->assertEquals( $expected, $conds );
+       }
+
+       public static function provideGetQueryConditions() {
+               return [
+                       'Basic example' => [
+                               'example.com',
+                               [],
+                               [
+                                       'el_index_60 LIKE \'http://com.example./%\' ESCAPE \'`\' ',
+                                       'el_index LIKE \'http://com.example./%\' ESCAPE \'`\' ',
+                               ],
+                       ],
+                       'Basic example with path' => [
+                               'example.com/foobar',
+                               [],
+                               [
+                                       'el_index_60 LIKE \'http://com.example./foobar%\' ESCAPE \'`\' ',
+                                       'el_index LIKE \'http://com.example./foobar%\' ESCAPE \'`\' ',
+                               ],
+                       ],
+                       'Wildcard domain' => [
+                               '*.example.com',
+                               [],
+                               [
+                                       'el_index_60 LIKE \'http://com.example.%\' ESCAPE \'`\' ',
+                                       'el_index LIKE \'http://com.example.%\' ESCAPE \'`\' ',
+                               ],
+                       ],
+                       'Wildcard domain with path' => [
+                               '*.example.com/foobar',
+                               [],
+                               [
+                                       'el_index_60 LIKE \'http://com.example.%\' ESCAPE \'`\' ',
+                                       'el_index LIKE \'http://com.example.%/foobar%\' ESCAPE \'`\' ',
+                               ],
+                       ],
+                       'Wildcard domain with path, oneWildcard=true' => [
+                               '*.example.com/foobar',
+                               [ 'oneWildcard' => true ],
+                               [
+                                       'el_index_60 LIKE \'http://com.example.%\' ESCAPE \'`\' ',
+                                       'el_index LIKE \'http://com.example.%\' ESCAPE \'`\' ',
+                               ],
+                       ],
+                       'Constant prefix' => [
+                               'example.com/blah/blah/blah/blah/blah/blah/blah/blah/blah/blah?foo=',
+                               [],
+                               [
+                                       'el_index_60' => 'http://com.example./blah/blah/blah/blah/blah/blah/blah/blah/',
+                                       'el_index LIKE ' .
+                                               '\'http://com.example./blah/blah/blah/blah/blah/blah/blah/blah/blah/blah?foo=%\' ' .
+                                               'ESCAPE \'`\' ',
+                               ],
+                       ],
+                       'Bad protocol' => [
+                               'test/',
+                               [ 'protocol' => 'invalid://' ],
+                               false
+                       ],
+                       'Various options' => [
+                               'example.com',
+                               [ 'protocol' => 'https://', 'prefix' => 'xx' ],
+                               [
+                                       'xx_index_60 LIKE \'https://com.example./%\' ESCAPE \'`\' ',
+                                       'xx_index LIKE \'https://com.example./%\' ESCAPE \'`\' ',
+                               ],
+                       ],
+               ];
+       }
+
 }
index 583b751..607f4f7 100644 (file)
@@ -62,4 +62,24 @@ class MovePageTest extends MediaWikiTestCase {
                        WikiPage::factory( $newTitle )->getRevision()
                );
        }
+
+       /**
+        * Test for the move operation being aborted via the TitleMove hook
+        */
+       public function testMoveAbortedByTitleMoveHook() {
+               $error = 'Preventing move operation with TitleMove hook.';
+               $this->setTemporaryHook( 'TitleMove',
+                       function ( $old, $new, $user, $reason, $status ) use ( $error ) {
+                               $status->fatal( $error );
+                       }
+               );
+
+               $oldTitle = Title::newFromText( 'Some old title' );
+               WikiPage::factory( $oldTitle )->doEditContent( new WikitextContent( 'foo' ), 'bar' );
+               $newTitle = Title::newFromText( 'A brand new title' );
+               $mp = new MovePage( $oldTitle, $newTitle );
+               $user = User::newFromName( 'TitleMove tester' );
+               $status = $mp->move( $user, 'Reason', true );
+               $this->assertTrue( $status->hasMessage( $error ) );
+       }
 }
index a4ab879..2760cb9 100644 (file)
@@ -172,7 +172,7 @@ class FormatJsonTest extends MediaWikiTestCase {
        /**
         * Test data for testParseTryFixing.
         *
-        * Some PHP interpreters use json-c rather than the JSON.org cannonical
+        * Some PHP interpreters use json-c rather than the JSON.org canonical
         * parser to avoid being encumbered by the "shall be used for Good, not
         * Evil" clause of the JSON.org parser's license. By default, json-c
         * parses in a non-strict mode which allows trailing commas for array and
@@ -372,4 +372,56 @@ class FormatJsonTest extends MediaWikiTestCase {
 
                return $cases;
        }
+
+       public function provideEmptyJsonKeyStrings() {
+               return [
+                       [
+                               '{"":"foo"}',
+                               '{"":"foo"}',
+                               ''
+                       ],
+                       [
+                               '{"_empty_":"foo"}',
+                               '{"_empty_":"foo"}',
+                               '_empty_' ],
+                       [
+                               '{"\u005F\u0065\u006D\u0070\u0074\u0079\u005F":"foo"}',
+                               '{"_empty_":"foo"}',
+                               '_empty_'
+                       ],
+                       [
+                               '{"_empty_":"bar","":"foo"}',
+                               '{"_empty_":"bar","":"foo"}',
+                               ''
+                       ],
+                       [
+                               '{"":"bar","_empty_":"foo"}',
+                               '{"":"bar","_empty_":"foo"}',
+                               '_empty_'
+                       ]
+               ];
+       }
+
+       /**
+        * @covers FormatJson::encode
+        * @covers FormatJson::decode
+        * @dataProvider provideEmptyJsonKeyStrings
+        * @param string $json
+        *
+        * Decoding behavior with empty keys can be surprising.
+        * See https://phabricator.wikimedia.org/T206411
+        */
+       public function testEmptyJsonKeyArray( $json, $expect, $php71Name ) {
+               // Decoding to array is consistent across supported PHP versions
+               $this->assertSame( $expect, FormatJson::encode(
+                       FormatJson::decode( $json, true ) ) );
+
+               // Decoding to object differs between supported PHP versions
+               $obj = FormatJson::decode( $json );
+               if ( version_compare( PHP_VERSION, '7.1', '<' ) ) {
+                       $this->assertEquals( 'foo', $obj->_empty_ );
+               } else {
+                       $this->assertEquals( 'foo', $obj->{$php71Name} );
+               }
+       }
 }
index d702084..e102b9b 100644 (file)
@@ -181,6 +181,16 @@ class ParserMethodsTest extends MediaWikiLangTestCase {
                                'http://example.org/%23%2F%3F%26%3D%2B%3B?%23%2F%3F%26%3D%2B%3B#%23%2F%3F%26%3D%2B%3B',
                                'http://example.org/%23%2F%3F&=+;?%23/?%26%3D%2B%3B#%23/?&=+;',
                        ],
+                       [
+                               'IPv6 links aren\'t escaped',
+                               'http://[::1]/foobar',
+                               'http://[::1]/foobar',
+                       ],
+                       [
+                               'non-IPv6 links aren\'t unescaped',
+                               'http://%5B::1%5D/foobar',
+                               'http://%5B::1%5D/foobar',
+                       ],
                ];
        }