Merge "Make sure URI comparisons include highlight states"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 2 Jun 2017 17:24:53 +0000 (17:24 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 2 Jun 2017 17:24:53 +0000 (17:24 +0000)
48 files changed:
autoload.php
docs/extension.schema.v2.json
includes/EditPage.php
includes/MediaWiki.php
includes/OutputPage.php
includes/api/i18n/es.json
includes/api/i18n/fr.json
includes/api/i18n/hu.json
includes/api/i18n/ru.json
includes/deferred/DeferredUpdates.php
includes/installer/i18n/mzn.json
includes/installer/i18n/zh-hant.json
includes/jobqueue/JobRunner.php
includes/resourceloader/ResourceLoader.php
includes/resourceloader/ResourceLoaderOOUIFileModule.php [new file with mode: 0644]
includes/resourceloader/ResourceLoaderOOUIImageModule.php
includes/resourceloader/ResourceLoaderOOUIModule.php [new file with mode: 0644]
languages/i18n/atj.json
languages/i18n/azb.json
languages/i18n/be-tarask.json
languages/i18n/bg.json
languages/i18n/bho.json
languages/i18n/bs.json
languages/i18n/cs.json
languages/i18n/en.json
languages/i18n/es.json
languages/i18n/fr.json
languages/i18n/gl.json
languages/i18n/hr.json
languages/i18n/mk.json
languages/i18n/mzn.json
languages/i18n/nb.json
languages/i18n/nl.json
languages/i18n/ru.json
languages/i18n/sl.json
languages/i18n/sr-ec.json
languages/i18n/sr-el.json
languages/i18n/ur.json
languages/i18n/zh-hant.json
resources/Resources.php
resources/ResourcesOOUI.php [deleted file]
resources/src/mediawiki.action/mediawiki.action.edit.js
resources/src/mediawiki.action/mediawiki.action.edit.styles.css
resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.FilterItemHighlightButton.js
resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.SavedLinksListWidget.js
resources/src/mediawiki.special/mediawiki.special.apisandbox.js
resources/src/mediawiki.widgets.datetime/DateTimeInputWidget.js
resources/src/mediawiki/mediawiki.hlist.css

index 12fe6d1..0264435 100644 (file)
@@ -1221,7 +1221,9 @@ $wgAutoloadLocalClasses = [
        'ResourceLoaderLanguageDataModule' => __DIR__ . '/includes/resourceloader/ResourceLoaderLanguageDataModule.php',
        'ResourceLoaderLanguageNamesModule' => __DIR__ . '/includes/resourceloader/ResourceLoaderLanguageNamesModule.php',
        'ResourceLoaderModule' => __DIR__ . '/includes/resourceloader/ResourceLoaderModule.php',
+       'ResourceLoaderOOUIFileModule' => __DIR__ . '/includes/resourceloader/ResourceLoaderOOUIFileModule.php',
        'ResourceLoaderOOUIImageModule' => __DIR__ . '/includes/resourceloader/ResourceLoaderOOUIImageModule.php',
+       'ResourceLoaderOOUIModule' => __DIR__ . '/includes/resourceloader/ResourceLoaderOOUIModule.php',
        'ResourceLoaderRawFileModule' => __DIR__ . '/includes/resourceloader/ResourceLoaderRawFileModule.php',
        'ResourceLoaderSiteModule' => __DIR__ . '/includes/resourceloader/ResourceLoaderSiteModule.php',
        'ResourceLoaderSiteStylesModule' => __DIR__ . '/includes/resourceloader/ResourceLoaderSiteStylesModule.php',
index 6345632..518a65c 100644 (file)
                        "description": "Available feeds objects"
                },
                "SkinOOUIThemes": {
-                       "type": "object"
+                       "type": "object",
+                       "description": "Map of skin names to OOjs UI themes to use. Same format as ResourceLoaderOOUIModule::$builtinSkinThemeMap."
                },
                "PasswordPolicy": {
                        "type": "object",
index 3e8473d..20250d5 100644 (file)
@@ -3119,6 +3119,10 @@ class EditPage {
                        $this->getSummaryInputAttributes( $inputAttrs )
                );
 
+               // For compatibility with old scripts and extensions, we want the legacy 'id' on the `<input>`
+               $inputAttrs['inputId'] = $inputAttrs['id'];
+               $inputAttrs['id'] = 'wpSummaryWidget';
+
                return new OOUI\FieldLayout(
                        new OOUI\TextInputWidget( [
                                'value' => $summary,
@@ -4268,7 +4272,8 @@ HTML
                                new OOUI\CheckboxInputWidget( [
                                        'tabIndex' => ++$tabindex,
                                        'accessKey' => $accesskey,
-                                       'id' => $options['id'],
+                                       'id' => $options['id'] . 'Widget',
+                                       'inputId' => $options['id'],
                                        'name' => $name,
                                        'selected' => $options['default'],
                                        'infusable' => true,
@@ -4330,7 +4335,8 @@ HTML
                $buttonLabel = $this->context->msg( $this->getSaveButtonLabel() )->text();
 
                $attribs = [
-                       'id' => 'wpSave',
+                       'id' => 'wpSaveWidget',
+                       'inputId' => 'wpSave',
                        'name' => 'wpSave',
                        'tabindex' => ++$tabindex,
                ] + Linker::tooltipAndAccesskeyAttribs( 'save' );
@@ -4354,7 +4360,8 @@ HTML
                }
 
                $attribs = [
-                       'id' => 'wpPreview',
+                       'id' => 'wpPreviewWidget',
+                       'inputId' => 'wpPreview',
                        'name' => 'wpPreview',
                        'tabindex' => ++$tabindex,
                ] + Linker::tooltipAndAccesskeyAttribs( 'preview' );
@@ -4374,7 +4381,8 @@ HTML
                        );
                }
                $attribs = [
-                       'id' => 'wpDiff',
+                       'id' => 'wpDiffWidget',
+                       'inputId' => 'wpDiff',
                        'name' => 'wpDiff',
                        'tabindex' => ++$tabindex,
                ] + Linker::tooltipAndAccesskeyAttribs( 'diff' );
index b18414d..a7214c7 100644 (file)
@@ -900,7 +900,6 @@ class MediaWiki {
 
                // Do any deferred jobs
                DeferredUpdates::doUpdates( 'enqueue' );
-               DeferredUpdates::setImmediateMode( true );
 
                // Make sure any lazy jobs are pushed
                JobQueueGroup::pushLazyJobs();
index e22f42c..df948f0 100644 (file)
@@ -3952,12 +3952,10 @@ class OutputPage extends ContextSource {
         * @param String $skinName The Skin name to determine the correct OOUI theme
         * @param String $dir Language direction
         */
-       public static function setupOOUI( $skinName = '', $dir = 'ltr' ) {
-               $themes = ExtensionRegistry::getInstance()->getAttribute( 'SkinOOUIThemes' );
-               // Make keys (skin names) lowercase for case-insensitive matching.
-               $themes = array_change_key_case( $themes, CASE_LOWER );
-               $theme = isset( $themes[$skinName] ) ? $themes[$skinName] : 'MediaWiki';
-               // For example, 'OOUI\MediaWikiTheme'.
+       public static function setupOOUI( $skinName = 'default', $dir = 'ltr' ) {
+               $themes = ResourceLoaderOOUIModule::getSkinThemeMap();
+               $theme = isset( $themes[$skinName] ) ? $themes[$skinName] : $themes['default'];
+               // For example, 'OOUI\WikimediaUITheme'.
                $themeClass = "OOUI\\{$theme}Theme";
                OOUI\Theme::setSingleton( new $themeClass() );
                OOUI\Element::setDefaultDir( $dir );
@@ -3976,7 +3974,6 @@ class OutputPage extends ContextSource {
                );
                $this->addModuleStyles( [
                        'oojs-ui-core.styles',
-                       'oojs-ui.styles.icons',
                        'oojs-ui.styles.indicators',
                        'oojs-ui.styles.textures',
                        'mediawiki.widgets.styles',
index 3244801..a82ade4 100644 (file)
@@ -98,8 +98,8 @@
        "apihelp-createaccount-param-language": "Código de idioma a establecer como predeterminado para el usuario (opcional, predeterminado al contenido del idioma).",
        "apihelp-createaccount-example-pass": "Crear usuario <kbd>testuser</kbd> con la contraseña <kbd>test123</kbd>.",
        "apihelp-createaccount-example-mail": "Crear usuario <kbd>testmailuser</kbd> y enviar una contraseña generada aleatoriamente.",
-       "apihelp-cspreport-description": "Utilizado por los navegadores para reportar violaciones de la política de seguridad de contenidos. Este módulo no debe usarse nunca, excepto cuando se usa automáticamente por un navegador web CSP compatible.",
-       "apihelp-cspreport-param-reportonly": "Marcar un informe de una política de vigilancia y no a una política forzada",
+       "apihelp-cspreport-description": "Utilizado por los navegadores para informar de violaciones a la normativa de seguridad de contenidos. Este módulo no debe usarse nunca, excepto cuando se usa automáticamente por un navegador web compatible con CSP.",
+       "apihelp-cspreport-param-reportonly": "Marcar como informe proveniente de una normativa de vigilancia, no una impuesta",
        "apihelp-cspreport-param-source": "Qué generó la cabecera CSP que provocó este informe",
        "apihelp-delete-description": "Borrar una página.",
        "apihelp-delete-param-title": "Título de la página a eliminar. No se puede utilizar junto a <var>$1pageid</var>.",
index ecc2feb..706aadb 100644 (file)
        "apihelp-upload-param-filesize": "Taille du téléversement entier.",
        "apihelp-upload-param-offset": "Décalage du bloc en octets.",
        "apihelp-upload-param-chunk": "Partie du contenu.",
-       "apihelp-upload-param-async": "Faire de façon asynchrone les grosses opérations sur les fichiers quand c’est possible.",
+       "apihelp-upload-param-async": "Faire les grosses opérations de fichiers de façon asynchrone quand c’est possible.",
        "apihelp-upload-param-checkstatus": "Récupérer uniquement l’état de téléversement pour la clé de fichier donnée.",
        "apihelp-upload-example-url": "Téléverser depuis une URL",
        "apihelp-upload-example-filekey": "Terminer un téléversement qui a échoué à cause d’avertissements",
        "apierror-show": "Paramètre incorrect - des valeurs mutuellement exclusives ne peuvent pas être fournies.",
        "apierror-siteinfo-includealldenied": "Impossible d’afficher toutes les informatiosn du serveur, sauf si <var>$wgShowHostNames</var> vaut vrai.",
        "apierror-sizediffdisabled": "La différence de taille est désactivée dans le mode Miser.",
-       "apierror-spamdetected": "Votre modification a été refusée parce qu'elle contenait un fragment de spam: <code>$1</code>.",
+       "apierror-spamdetected": "Votre modification a été refusée parce qu’elle contenait un fragment de pourriel : <code>$1</code>.",
        "apierror-specialpage-cantexecute": "Vous n'avez pas l'autorisation d'afficher les résultats de cette page spéciale.",
        "apierror-stashedfilenotfound": "Impossible de trouver le fichier dans la réserve: $1.",
        "apierror-stashedit-missingtext": "Pas de texte en réserve associé à la donnée de hachage.",
index 71d2645..0647b1c 100644 (file)
        "apihelp-query+blocks-example-simple": "Blokkok listázása.",
        "apihelp-query+blocks-example-users": "<kbd>Alice</kbd> és <kbd>Bob</kbd> blokkjainak listázása.",
        "apihelp-query+categories-description": "A lapok összes kategóriájának listázása.",
-       "apihelp-query+categories-param-prop": "A kategóriákhoz további lekérendő további tulajdonságok:",
+       "apihelp-query+categories-param-prop": "A kategóriákhoz lekérendő további tulajdonságok:",
        "apihelp-query+categories-paramvalue-prop-timestamp": "A kategória hozzáadásának időbélyege.",
        "apihelp-query+categories-paramvalue-prop-hidden": "A <code>_&#95;HIDDENCAT_&#95;</code> kapcsolóval elrejtett kategóriák megjelölése.",
        "apihelp-query+categories-param-show": "A megjelenítendő kategóriatípusok.",
        "apihelp-query+fileusage-paramvalue-prop-pageid": "A lapok lapazonosítói.",
        "apihelp-query+fileusage-paramvalue-prop-title": "A lapok címei.",
        "apihelp-query+fileusage-paramvalue-prop-redirect": "Az átirányítások megjelölése.",
-       "apihelp-query+fileusage-param-namespace": "Lapok listázása ebben a névtérben.",
+       "apihelp-query+fileusage-param-namespace": "Lapok listázása ezekben a névterekben.",
        "apihelp-query+fileusage-param-limit": "A visszaadandó lapok száma.",
        "apihelp-query+fileusage-param-show": "Szűrés az átirányítások alapján:\n;redirect: Csak átirányítások visszaadása.\n;!redirect: Átirányítások elrejtése.",
        "apihelp-query+fileusage-example-simple": "A [[:File:Example.jpg]] képet használó lapok listázása.",
        "apihelp-query+info-param-token": "Használd a <kbd>[[Special:ApiHelp/query+tokens|action=query&meta=tokens]]</kbd> lekérdezést helyette.",
        "apihelp-query+info-example-simple": "Információk lekérése a <kbd>Main Page</kbd> lapról.",
        "apihelp-query+info-example-protection": "Alapvető és lapvédelmi információk lekérése a <kbd>Main Page</kbd> lapról.",
+       "apihelp-query+iwbacklinks-description": "Egy adott interwikilinkre hivatkozó lapok lekérése.\n\nHasználható adott előtagú vagy egy adott címre mutató (megadott előtagú) linkek keresésére. Mindkét paraméter elhagyásával az összes interwikilinket visszaadja.",
+       "apihelp-query+iwbacklinks-param-prefix": "Az interwiki előtagja.",
+       "apihelp-query+iwbacklinks-param-title": "A keresendő interwikilink. Az <var>$1blprefix</var> paraméterrel együtt használandó.",
+       "apihelp-query+iwbacklinks-param-limit": "A visszaadandó lapok maximális száma.",
+       "apihelp-query+iwbacklinks-param-prop": "Lekérendő tulajdonságok:",
+       "apihelp-query+iwbacklinks-paramvalue-prop-iwprefix": "Az interwiki előtagja.",
+       "apihelp-query+iwbacklinks-paramvalue-prop-iwtitle": "Az interwiki címe.",
+       "apihelp-query+iwbacklinks-param-dir": "A listázás iránya.",
+       "apihelp-query+iwbacklinks-example-simple": "A [[wikibooks:Test]] könyvre hivatkozó lapok lekérése.",
+       "apihelp-query+iwbacklinks-example-generator": "Információk lekérése a [[wikibooks:Test]] könyvre hivatkozó lapokról.",
+       "apihelp-query+iwlinks-description": "A megadott lapokon található összes interwikilink lekérése.",
+       "apihelp-query+iwlinks-param-prop": "A nyelvközi hivatkozásokhoz lekérendő további tulajdonságok:",
+       "apihelp-query+iwlinks-param-limit": "A visszaadandó interwikilinkek száma.",
+       "apihelp-query+iwlinks-param-prefix": "Csak a megadott előtagú interwikilinkek visszaadása.",
+       "apihelp-query+iwlinks-param-title": "A keresendő interwikilink. Az <var>$1prefix</var> paraméterrel együtt használandó.",
+       "apihelp-query+iwlinks-param-dir": "A listázás iránya.",
+       "apihelp-query+iwlinks-example-simple": "A <kbd>Main Page</kbd> lapon található interwikilinkek lekérése.",
+       "apihelp-query+langbacklinks-description": "A megadott nyelvközi hivatkozásra hivatkozó lapok lekérése.\n\nHasználható adott előtagú vagy egy adott címre mutató (megadott előtagú) linkek keresésére. Mindkét paraméter elhagyásával az összes nyelvközi hivatkozást visszaadja.\n\nEz a lekérdezés nem feltétlenül veszi figyelembe a kiterjesztések által hozzáadott nyelvközi hivatkozásokat.",
+       "apihelp-query+langbacklinks-param-lang": "A nyelvközi hivatkozás nyelve.",
+       "apihelp-query+langbacklinks-param-title": "A keresendő nyelvközi hivatkozás. Az <var>$1lang</var> paraméterrel együtt használandó.",
+       "apihelp-query+langbacklinks-param-limit": "A visszaadandó lapok maximális száma.",
+       "apihelp-query+langbacklinks-param-prop": "Lekérendő tulajdonságok:",
+       "apihelp-query+langbacklinks-paramvalue-prop-lllang": "A nyelvközi hivatkozás nyelvkódja.",
+       "apihelp-query+langbacklinks-paramvalue-prop-lltitle": "A nyelvközi hivatkozás címe.",
+       "apihelp-query+langbacklinks-param-dir": "A listázás iránya.",
+       "apihelp-query+langbacklinks-example-simple": "A [[:fr:Test]] lapra hivatkozó lapok lekérése.",
+       "apihelp-query+langbacklinks-example-generator": "Információk lekérése a [[:fr:Test]] lapra hivatkozó lapokról.",
+       "apihelp-query+langlinks-description": "A megadott lapokon található összes nyelvközi hivatkozás lekérése.",
+       "apihelp-query+langlinks-param-limit": "A visszaadandó nyelvközi hivatkozások száma.",
+       "apihelp-query+langlinks-param-prop": "A nyelvközi hivatkozásokhoz lekérendő további tulajdonságok:",
+       "apihelp-query+langlinks-param-lang": "Csak ezen nyelvű nyelvközi hivatkozások visszaadása.",
+       "apihelp-query+langlinks-param-title": "A keresendő hivatkozás. Az <var>$1prefix</var> paraméterrel együtt használandó.",
+       "apihelp-query+langlinks-param-dir": "A listázás iránya.",
+       "apihelp-query+langlinks-param-inlanguagecode": "Nyelvkód a lefordított nyelvneveknek.",
+       "apihelp-query+langlinks-example-simple": "A <kbd>Main Page</kbd> lapon található nyelvközi hivatkozások lekérése.",
+       "apihelp-query+links-description": "A megadott lapokon található összes hivatkozás lekérése.",
+       "apihelp-query+links-param-namespace": "Csak az ezen névterekbe mutató hivatkozások visszaadása.",
+       "apihelp-query+links-param-limit": "A visszaadandó hivatkozások száma.",
+       "apihelp-query+links-param-titles": "Csak ezen címekre mutató hivatkozások listázása. Annak ellenőrzésére alkalmas, hogy egy lap hivatkozik-e egy adott lapra.",
+       "apihelp-query+links-param-dir": "A listázás iránya.",
+       "apihelp-query+links-example-simple": "A <kbd>Main Page</kbd> lapon található hivatkozások lekérése.",
+       "apihelp-query+links-example-generator": "Információk lekérése a <kbd>Main Page</kbd> lapon lévő hivatkozások céllapjairól.",
+       "apihelp-query+links-example-namespaces": "A <kbd>Main Page</kbd> lapon található, {{ns:user}} és {{ns:template}} névterekbe mutató hivatkozások lekérése.",
+       "apihelp-query+linkshere-description": "A megadott lapra hivatkozó lapok lekérése.",
+       "apihelp-query+linkshere-param-prop": "Lekérendő tulajdonságok:",
+       "apihelp-query+linkshere-paramvalue-prop-pageid": "A lapok lapazonosítói.",
+       "apihelp-query+linkshere-paramvalue-prop-title": "A lapok címei.",
+       "apihelp-query+linkshere-paramvalue-prop-redirect": "Az átirányítások megjelölése.",
+       "apihelp-query+linkshere-param-namespace": "Lapok listázása ezekben a névterekben.",
+       "apihelp-query+linkshere-param-limit": "A visszaadandó lapok száma.",
+       "apihelp-query+linkshere-param-show": "Szűrés az átirányítások alapján:\n;redirect: Csak átirányítások visszaadása.\n;!redirect: Átirányítások elrejtése.",
+       "apihelp-query+linkshere-example-simple": "A [[Main Page]] lapra hivatkozó lapok listázása.",
+       "apihelp-query+linkshere-example-generator": "Információk lekérése a [[Main Page]] lapra hivatkozó lapokról.",
+       "apihelp-query+logevents-description": "Naplóbejegyzések lekérése.",
+       "apihelp-query+logevents-param-prop": "Lekérendő tulajdonságok:",
+       "apihelp-query+logevents-paramvalue-prop-ids": "A naplóbejegyzés azonosítója.",
+       "apihelp-query+logevents-paramvalue-prop-title": "Az eseményben érintett lap címe.",
+       "apihelp-query+logevents-paramvalue-prop-type": "A naplóbejegyzés típusa.",
+       "apihelp-query+logevents-paramvalue-prop-user": "Az eseményért felelős felhasználó.",
+       "apihelp-query+logevents-paramvalue-prop-userid": "Az eseményért felelős felhasználó azonosítója.",
+       "apihelp-query+logevents-paramvalue-prop-timestamp": "A naplóbejegyzés időbélyege.",
+       "apihelp-query+logevents-paramvalue-prop-comment": "A naplóbejegyzéshez tartozó megjegyzés.",
+       "apihelp-query+logevents-paramvalue-prop-details": "További részletek a naplóbejegyzésről.",
+       "apihelp-query+logevents-paramvalue-prop-tags": "A naplóbejegyzés címkéi.",
+       "apihelp-query+logevents-param-type": "Csak ezen típusú naplóbejegyzések visszaadása.",
+       "apihelp-query+logevents-param-start": "A listázás kezdő időbélyege.",
+       "apihelp-query+logevents-param-end": "A lista végét jelentő időbélyeg.",
+       "apihelp-query+logevents-param-user": "A bejegyzések szűrése az ezen felhasználó által végrehajtottakra.",
+       "apihelp-query+logevents-param-title": "A bejegyzések szűrése az ezen laphoz kapcsolódóakra.",
+       "apihelp-query+logevents-param-namespace": "A bejegyzések szűrése névtér alapján.",
+       "apihelp-query+logevents-param-prefix": "A bejegyzések szűrése az ezzel az előtaggal kezdődőekre.",
+       "apihelp-query+logevents-param-tag": "Csak ezzel a címkével ellátott bejegyzések listázása.",
+       "apihelp-query+logevents-param-limit": "A visszaadandó bejegyzések száma.",
+       "apihelp-query+logevents-example-simple": "A legutóbbi naplóbejegyzések listázása.",
        "apihelp-userrights-param-userid": "Felhasználói azonosító.",
        "api-help-title": "MediaWiki API súgó",
        "api-help-lead": "Ez egy automatikusan generált MediaWiki API-dokumentációs lap.\n\nDokumentáció és példák: https://www.mediawiki.org/wiki/API",
index 5992b40..9de5aa0 100644 (file)
        "apihelp-parse-param-preview": "Проанализировать в режиме препросмотра.",
        "apihelp-parse-param-sectionpreview": "Распарсить в режиме предпросмотра раздела (также активирует режим предпросмотра).",
        "apihelp-parse-param-disabletoc": "Не включать в вывод содержание.",
+       "apihelp-parse-param-useskin": "Применить выбранную тему оформления к результату работы парсера. Может затронуть следующие свойства: <kbd>langlinks</kbd>, <kbd>headitems</kbd>, <kbd>modules</kbd>, <kbd>jsconfigvars</kbd>, <kbd>indicators</kbd>.",
        "apihelp-parse-param-contentformat": "Формат сериализации содержимого, использующийся во входном тексте. Доступен только при использовании с $1text.",
        "apihelp-parse-param-contentmodel": "Модель содержимого входного текста. Если пропущена, должен быть задан $1title, и значение по умолчанию будет взято в зависимости от указанного названия. Доступно только при использовании с $1text.",
        "apihelp-parse-example-page": "Парсинг страницы.",
index bbe8687..9f5b31a 100644 (file)
@@ -55,8 +55,6 @@ class DeferredUpdates {
        private static $preSendUpdates = [];
        /** @var DeferrableUpdate[] Updates to be deferred until after request end */
        private static $postSendUpdates = [];
-       /** @var bool Whether to just run updates in addUpdate() */
-       private static $immediateMode = false;
 
        const ALL = 0; // all updates; in web requests, use only after flushing the output buffer
        const PRESEND = 1; // for updates that should run before flushing output buffer
@@ -90,12 +88,6 @@ class DeferredUpdates {
                        self::push( self::$postSendUpdates, $update );
                }
 
-               if ( self::$immediateMode ) {
-                       // No more explicit doUpdates() calls will happen, so run this now
-                       self::doUpdates( 'run' );
-                       return;
-               }
-
                // Try to run the updates now if in CLI mode and no transaction is active.
                // This covers scripts that don't/barely use the DB but make updates to other stores.
                if ( $wgCommandLineMode ) {
@@ -140,9 +132,10 @@ class DeferredUpdates {
        /**
         * @param bool $value Whether to just immediately run updates in addUpdate()
         * @since 1.28
+        * @deprecated 1.29 Causes issues in Web-executed jobs - see T165714 and T100085.
         */
        public static function setImmediateMode( $value ) {
-               self::$immediateMode = (bool)$value;
+               wfDeprecated( __METHOD__, '1.29' );
        }
 
        /**
index c257481..b821846 100644 (file)
@@ -4,5 +4,56 @@
                        "محک"
                ]
        },
+       "config-information": "اطلاعات",
+       "config-localsettings-key": "آپگریت کلید:",
+       "config-your-language": "شمه زوون:",
+       "config-wiki-language": "ویکی زوون:",
+       "config-back": "→ دِگِرِستِن",
+       "config-continue": "دمباله ←",
+       "config-page-language": "زوون",
+       "config-page-welcome": "مدیاویکی ره خِش بمونی!",
+       "config-page-dbconnect": "اتصال به دیتابیس",
+       "config-page-name": "نوم",
+       "config-page-options": "تنظیمات",
+       "config-page-install": "نصب",
+       "config-page-complete": "کامل!",
+       "config-page-restart": "دِباره نصب هاکردن",
+       "config-page-readme": "مه ره ونگ هاکن",
+       "config-page-releasenotes": "انتشار یادداشتون",
+       "config-page-copying": "کپی هاکردن",
+       "config-page-upgradedoc": "آپگریت هاکردن",
+       "config-page-existingwiki": "دیی ویکی",
+       "config-help-restart": "خانی تموم اطلاعاتی که ذخیره بینه ره حذف هاکنین و اَی این صوه سَری دِباره نصب هاکردن ره شروع هاکنین؟",
+       "config-restart": "اره. دِباره",
+       "config-env-good": "محیط بررسی بیّه.\nشما توندی مدیاویکی ره نصب هاکنی.",
+       "config-env-bad": "محیط بررسی بیه.\nشما نتوندی مدیاویکی ره نصب هاکنی.",
+       "config-env-php": "پی‌اچ‌پی $1 نصب بیه.",
+       "config-env-hhvm": "اچ‌اچ‌وی‌ام $1 نصب بیه.",
+       "config-unicode-using-intl": "عادی یونیکد وسه [http://pecl.php.net/intl افزونهٔ intl برای PECL] جه استفاده هاکن.",
+       "config-memory-raised": "PHP's <code>memory_limit</code>, نسخهٔ $1 هسته، ونه نسخهٔ $2 ره بَیری آپگریت هاکنی.",
+       "config-xcache": "[http://xcache.lighttpd.net/ XCache] نصب بیه.",
+       "config-apc": "[http://www.php.net/apc APC] نصب بیه.",
+       "config-apcu": "[http://www.php.net/apcu APCu] نصب بیه.",
+       "config-wincache": "[http://www.iis.net/download/WinCacheForPhp WinCache] نصب بیه.",
+       "config-diff3-bad": "GNU diff3 پیدا نیه.",
+       "config-mysql-binary": "باینری",
+       "config-mysql-utf8": "UTF-8",
+       "config-mssql-auth": "نوع تأیید:",
+       "config-ns-generic": "پروژه",
+       "config-ns-other": "دیگه ( تعیین هاکنین)",
+       "config-ns-other-default": "مه‌ویکی",
+       "config-admin-box": "مدیر ِکاروری حیساب",
+       "config-admin-name": "شمه کاروری نوم:",
+       "config-admin-password": "پسوُرد:",
+       "config-admin-password-confirm": "دِباره پسورد:",
+       "config-admin-password-mismatch": "دِتا پسوردی که بنویشتی اتجور نینه",
+       "config-admin-email": "ایمیل آدرس:",
+       "config-admin-error-bademail": "شمه ایمیل آدرس مشکل دارنه.",
+       "config-optional-continue": "مه جه ویشته سوال هاپرس.",
+       "config-optional-skip": "اسا خستومه، زودته ویکی ره نصب هاکن.",
+       "config-profile-wiki": "ویکی ره دیار هاکن",
+       "config-profile-private": "خصوصی ویکی",
+       "config-license-pd": "عمومی دامنه",
+       "config-email-settings": "ایمیل تنظیمات",
        "config-help": "راهنما"
 }
index 877740f..ab365ec 100644 (file)
@@ -18,7 +18,8 @@
                        "Reke",
                        "Suchichi02",
                        "Winstonyin",
-                       "Wehwei"
+                       "Wehwei",
+                       "Wwycheuk"
                ]
        },
        "config-desc": "MediaWiki 安裝程式",
@@ -41,7 +42,7 @@
        "config-back": "← 返回",
        "config-continue": "繼續 →",
        "config-page-language": "語言",
-       "config-page-welcome": "歡迎您來到 MediaWiki!",
+       "config-page-welcome": "歡迎使用 MediaWiki!",
        "config-page-dbconnect": "連線到資料庫",
        "config-page-upgrade": "升級目前安裝的版本",
        "config-page-dbsettings": "資料庫設定",
index 6415533..a1aeaba 100644 (file)
@@ -291,6 +291,8 @@ class JobRunner implements LoggerAwareInterface {
                        $this->commitMasterChanges( $lbFactory, $job, $fnameTrxOwner );
                        // Run any deferred update tasks; doUpdates() manages transactions itself
                        DeferredUpdates::doUpdates();
+                       // Push lazy jobs added by the job or its deferred udpates
+                       JobQueueGroup::pushLazyJobs();
                } catch ( Exception $e ) {
                        MWExceptionHandler::rollbackMasterChangesAndLog( $e );
                        $status = false;
index 0d12840..d144987 100644 (file)
@@ -253,7 +253,6 @@ class ResourceLoader implements LoggerAwareInterface {
 
                // Register core modules
                $this->register( include "$IP/resources/Resources.php" );
-               $this->register( include "$IP/resources/ResourcesOOUI.php" );
                // Register extension modules
                $this->register( $config->get( 'ResourceModules' ) );
 
diff --git a/includes/resourceloader/ResourceLoaderOOUIFileModule.php b/includes/resourceloader/ResourceLoaderOOUIFileModule.php
new file mode 100644 (file)
index 0000000..135efa7
--- /dev/null
@@ -0,0 +1,63 @@
+<?php
+/**
+ * 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
+ */
+
+/**
+ * ResourceLoaderFileModule which magically loads the right skinScripts and skinStyles for every
+ * skin, using the specified OOUI theme for each.
+ *
+ * @since 1.30
+ */
+class ResourceLoaderOOUIFileModule extends ResourceLoaderFileModule {
+       use ResourceLoaderOOUIModule;
+
+       public function __construct( $options = [] ) {
+               if ( isset( $options[ 'themeScripts' ] ) ) {
+                       $options['skinScripts'] = $this->getSkinSpecific( $options[ 'themeScripts' ], 'scripts' );
+               }
+               if ( isset( $options[ 'themeStyles' ] ) ) {
+                       $options['skinStyles'] = $this->getSkinSpecific( $options[ 'themeStyles' ], 'styles' );
+               }
+
+               parent::__construct( $options );
+       }
+
+       /**
+        * Helper function to generate values for 'skinStyles' and 'skinScripts'.
+        *
+        * @param string $module Module to generate skinStyles/skinScripts for:
+        *   'core', 'widgets', 'toolbars', 'windows'
+        * @param string $which 'scripts' or 'styles'
+        * @return array
+        */
+       private function getSkinSpecific( $module, $which ) {
+               $themes = self::getSkinThemeMap();
+
+               return array_combine(
+                       array_keys( $themes ),
+                       array_map( function ( $theme ) use ( $module, $which ) {
+                               if ( $which === 'scripts' ) {
+                                       return $this->getThemeScriptsPath( $theme, $module );
+                               } else {
+                                       return $this->getThemeStylesPath( $theme, $module );
+                               }
+                       }, array_values( $themes ) )
+               );
+       }
+}
index 426ba67..ee87d8d 100644 (file)
  * @since 1.26
  */
 class ResourceLoaderOOUIImageModule extends ResourceLoaderImageModule {
+       use ResourceLoaderOOUIModule;
+
        protected function loadFromDefinition() {
                if ( $this->definition === null ) {
                        // Do nothing if definition was already processed
                        return;
                }
 
-               // Core default themes
-               $themes = [ 'default' => 'wikimediaui' ];
-               $themes += ExtensionRegistry::getInstance()->getAttribute( 'SkinOOUIThemes' );
+               $themes = self::getSkinThemeMap();
 
-               $name = $this->definition['name'];
-               $rootPath = $this->definition['rootPath'];
+               // For backwards-compatibility, allow missing 'themeImages'
+               $module = isset( $this->definition['themeImages'] ) ? $this->definition['themeImages'] : '';
 
                $definition = [];
                foreach ( $themes as $skin => $theme ) {
                        // Find the path to the JSON file which contains the actual image definitions for this theme
-                       // TODO Allow extensions to specify this path somehow
-                       $dataPath = $rootPath . '/' . strtolower( $theme ) . '/' . $name . '.json';
+                       if ( $module ) {
+                               $dataPath = $this->getThemeImagesPath( $theme, $module );
+                       } else {
+                               // Backwards-compatibility for things that probably shouldn't have used this class...
+                               $dataPath =
+                                       $this->definition['rootPath'] . '/' .
+                                       strtolower( $theme ) . '/' .
+                                       $this->definition['name'] . '.json';
+                       }
                        $localDataPath = $this->localBasePath . '/' . $dataPath;
 
                        // If there's no file for this module of this theme, that's okay, it will just use the defaults
@@ -79,7 +86,7 @@ class ResourceLoaderOOUIImageModule extends ResourceLoaderImageModule {
                                                } elseif ( $definition[$key] !== $data[$key] ) {
                                                        throw new Exception(
                                                                "Mismatched OOUI theme images definition: " .
-                                                                       "key '$key' of theme '$theme' " .
+                                                                       "key '$key' of theme '$theme' for module '$module' " .
                                                                        "does not match other themes"
                                                        );
                                                }
@@ -88,6 +95,16 @@ class ResourceLoaderOOUIImageModule extends ResourceLoaderImageModule {
                        }
                }
 
+               // Extra selectors to allow using the same icons for old-style MediaWiki UI code
+               if ( substr( $module, 0, 5 ) === 'icons' ) {
+                       $definition['selectorWithoutVariant'] = '.oo-ui-icon-{name}, .mw-ui-icon-{name}:before';
+                       $definition['selectorWithVariant'] = '
+                               .oo-ui-image-{variant}.oo-ui-icon-{name}, .mw-ui-icon-{name}-{variant}:before,
+                               /* Hack for Flow, see T110051 */
+                               .mw-ui-hovericon:hover .mw-ui-icon-{name}-{variant}-hover:before,
+                               .mw-ui-hovericon.mw-ui-icon-{name}-{variant}-hover:hover:before';
+               }
+
                // Fields from module definition silently override keys from JSON files
                $this->definition += $definition;
 
diff --git a/includes/resourceloader/ResourceLoaderOOUIModule.php b/includes/resourceloader/ResourceLoaderOOUIModule.php
new file mode 100644 (file)
index 0000000..4228a45
--- /dev/null
@@ -0,0 +1,146 @@
+<?php
+/**
+ * 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
+ */
+
+/**
+ * Convenience methods for dealing with OOUI themes and their relations to MW skins.
+ *
+ * @since 1.30
+ */
+trait ResourceLoaderOOUIModule {
+       protected static $knownScriptsModules = [ 'core' ];
+       protected static $knownStylesModules = [ 'core', 'widgets', 'toolbars', 'windows' ];
+       protected static $knownImagesModules = [
+               'indicators', 'textures',
+               // Extra icons
+               'icons-accessibility',
+               'icons-alerts',
+               'icons-content',
+               'icons-editing-advanced',
+               'icons-editing-core',
+               'icons-editing-list',
+               'icons-editing-styling',
+               'icons-interactions',
+               'icons-layout',
+               'icons-location',
+               'icons-media',
+               'icons-moderation',
+               'icons-movement',
+               'icons-user',
+               'icons-wikimedia',
+       ];
+
+       // Note that keys must be lowercase, values TitleCase.
+       protected static $builtinSkinThemeMap = [
+               'default' => 'WikimediaUI',
+       ];
+
+       // Note that keys must be TitleCase.
+       protected static $builtinThemePaths = [
+               'WikimediaUI' => [
+                       'scripts' => 'resources/lib/oojs-ui/oojs-ui-wikimediaui.js',
+                       'styles' => 'resources/lib/oojs-ui/oojs-ui-{module}-wikimediaui.css',
+                       'images' => 'resources/lib/oojs-ui/themes/wikimediaui/{module}.json',
+               ],
+               'Apex' => [
+                       'scripts' => 'resources/lib/oojs-ui/oojs-ui-apex.js',
+                       'styles' => 'resources/lib/oojs-ui/oojs-ui-{module}-apex.css',
+                       'images' => 'resources/lib/oojs-ui/themes/apex/{module}.json',
+               ],
+       ];
+
+       /**
+        * Return a map of skin names (in lowercase) to OOUI theme names, defining which theme a given
+        * skin should use.
+        *
+        * @return array
+        */
+       public static function getSkinThemeMap() {
+               $themeMap = self::$builtinSkinThemeMap;
+               $themeMap += ExtensionRegistry::getInstance()->getAttribute( 'SkinOOUIThemes' );
+               return $themeMap;
+       }
+
+       /**
+        * Return a map of theme names to lists of paths from which a given theme should be loaded.
+        *
+        * Keys are theme names, values are associative arrays. Keys of the inner array are 'scripts',
+        * 'styles', or 'images', and values are string paths.
+        *
+        * Additionally, the string '{module}' in paths represents the name of the module to load.
+        *
+        * @return array
+        */
+       protected static function getThemePaths() {
+               $themePaths = self::$builtinThemePaths;
+               return $themePaths;
+       }
+
+       /**
+        * Return a path to load given module of given theme from.
+        *
+        * @param string $theme OOUI theme name, for example 'WikimediaUI' or 'Apex'
+        * @param string $kind Kind of the module: 'scripts', 'styles', or 'images'
+        * @param string $module Module name, for valid values see $knownScriptsModules,
+        *     $knownStylesModules, $knownImagesModules
+        * @return string
+        */
+       protected function getThemePath( $theme, $kind, $module ) {
+               $paths = self::getThemePaths();
+               $path = $paths[ $theme ][ $kind ];
+               $path = str_replace( '{module}', $module, $path );
+               return $path;
+       }
+
+       /**
+        * @param string $theme See getThemePath()
+        * @param string $module See getThemePath()
+        * @return string
+        */
+       protected function getThemeScriptsPath( $theme, $module ) {
+               if ( !in_array( $module, self::$knownScriptsModules ) ) {
+                       throw new InvalidArgumentException( "Invalid OOUI scripts module '$module'" );
+               }
+               return $this->getThemePath( $theme, 'scripts', $module );
+       }
+
+       /**
+        * @param string $theme See getThemePath()
+        * @param string $module See getThemePath()
+        * @return string
+        */
+       protected function getThemeStylesPath( $theme, $module ) {
+               if ( !in_array( $module, self::$knownStylesModules ) ) {
+                       throw new InvalidArgumentException( "Invalid OOUI styles module '$module'" );
+               }
+               return $this->getThemePath( $theme, 'styles', $module );
+       }
+
+       /**
+        * @param string $theme See getThemePath()
+        * @param string $module See getThemePath()
+        * @return string
+        */
+       protected function getThemeImagesPath( $theme, $module ) {
+               if ( !in_array( $module, self::$knownImagesModules ) ) {
+                       throw new InvalidArgumentException( "Invalid OOUI images module '$module'" );
+               }
+               return $this->getThemePath( $theme, 'images', $module );
+       }
+}
index 6599a10..a76f617 100644 (file)
                        "Catrope"
                ]
        },
+       "tog-underline": "Kicawetcita ntowapesinihikana:",
+       "tog-hideminor": "Ka ki ocitakaniwoki kwekisinihikana nta katcicta aka ka sapinakoki.",
+       "tog-hidepatrolled": "Nohwe nta ka ki kweskisinihikateki nama weckat katcicta ka ki aci koski kanawapatcikateki",
+       "tog-newpageshidepatrolled": " Katcicta paskickwemakana ka ki koski aci tapwatcikateki  taci e ici masinateki ocki paskickwemikana",
+       "tog-hidecategorization": "Katcicta tipanictawin paskickwemikana",
        "underline-always": "Mocak",
        "underline-never": "Nama wiskat",
        "sunday": "Manactakaniwon",
index 6015f26..04ee5eb 100644 (file)
        "history_short": "گئچمیش",
        "updatedmarker": "سوْن باخیشیمدان سوْنرا یئنی‌لنیب‌دیر",
        "printableversion": "چاپ اۆچون نۆسخه",
-       "permalink": "قالیجی باغلانتی",
+       "permalink": "قالیجی لینک",
        "print": "یازدیر",
        "view": "باخ",
        "view-foreign": "$1 گور",
index c60efa1..893fefb 100644 (file)
        "mypreferences": "Налады",
        "prefs-edits": "Колькасьць рэдагаваньняў:",
        "prefsnologintext2": "Калі ласка, увайдзіце ў сыстэму, каб зьмяніць вашыя налады.",
-       "prefs-skin": "Ð\90Ñ\84аÑ\80мленÑ\8cне",
+       "prefs-skin": "ТÑ\8dма Ð°Ñ\84аÑ\80мленÑ\8cнÑ\8f",
        "skin-preview": "Папярэдні прагляд",
        "datedefault": "Па змоўчаньні",
        "prefs-labs": "Экспэрымэнтальныя магчымасьці",
        "mw-widgets-titleinput-description-redirect": "перанакіраваньне на $1",
        "mw-widgets-categoryselector-add-category-placeholder": "Дадаць катэгорыю…",
        "mw-widgets-usersmultiselect-placeholder": "Дадаць яшчэ…",
+       "date-range-from": "З даты:",
        "sessionmanager-tie": "Немагчыма выкарыстаць адначасова некалькі тыпаў аўтэнтыфікацыі: $1.",
        "sessionprovider-generic": "$1 сэсіі",
        "sessionprovider-mediawiki-session-cookiesessionprovider": "сэсіі на падставе файлаў-кукі",
index ea0d138..b52f1b7 100644 (file)
        "localtime": "Местно време:",
        "timezoneuseserverdefault": "По подразбиране от уикито ($1)",
        "timezoneuseoffset": "Друга (посочете отместване)",
-       "servertime": "Ð\92Ñ\80еме Ð½Ð° Ñ\81Ñ\8aÑ\80вÑ\8aÑ\80а:",
+       "servertime": "СÑ\8aÑ\80вÑ\8aÑ\80но Ð²Ñ\80еме:",
        "guesstimezone": "Попълване чрез браузъра",
        "timezoneregion-africa": "Африка",
        "timezoneregion-america": "Америка",
        "email": "Е-поща",
        "prefs-help-realname": "* Истинското име не е задължително. Ако го посочите, вашите приноси ще бъдат приписани на него.",
        "prefs-help-email": "Електронната поща е незадължителна, но позволява възстановяване на забравена или загубена парола.",
-       "prefs-help-email-others": "Ð\9cожеÑ\82е Ð´Ð° Ð¸Ð·Ð±ÐµÑ\80еÑ\82е Ð´Ð° Ð¿Ð¾Ð·Ð²Ð¾Ð»Ð¸Ñ\82е Ð½Ð° Ð´Ñ\80Ñ\83гиÑ\82е Ð´Ð° Ñ\81е Ñ\81вÑ\8aÑ\80зваÑ\82 Ñ\81 Ð²Ð°Ñ\81 Ð¿Ð¾ ÐµÐ»ÐµÐºÑ\82Ñ\80онна Ð¿Ð¾Ñ\89а, ÐºÐ°Ñ\82о Ñ\89Ñ\80акваÑ\82 Ð½Ð° Ð¿Ñ\80епÑ\80аÑ\82ка Ð¾Ñ\82 Ð²Ð°Ñ\88аÑ\82а Ð»Ð¸Ñ\87на Ð¿Ð¾Ñ\82Ñ\80ебиÑ\82елÑ\81ка Ñ\81Ñ\82Ñ\80аниÑ\86а Ð¸Ð»Ð¸ Ð±ÐµÑ\81еда. \nÐ\90дÑ\80еÑ\81Ñ\8aÑ\82 Ð½Ð° ÐµÐ»ÐµÐºÑ\82Ñ\80оннаÑ\82а Ð²Ð¸ Ð¿Ð¾Ñ\89а Ð½Ðµ Ñ\81е Ñ\80азкÑ\80ива Ð½Ð° Ð¿Ð¾Ñ\82Ñ\80ебиÑ\82елиÑ\82е, ÐºÐ¾Ð¸Ñ\82о Ñ\81е Ñ\81вÑ\8aÑ\80зваÑ\82 Ñ\81 Ð²ас по този начин.",
+       "prefs-help-email-others": "Ð\9cожеÑ\82е Ð´Ð° Ð¸Ð·Ð±ÐµÑ\80еÑ\82е Ð´Ð° Ð¿Ð¾Ð·Ð²Ð¾Ð»Ð¸Ñ\82е Ð½Ð° Ð´Ñ\80Ñ\83гиÑ\82е Ð´Ð° Ñ\81е Ñ\81вÑ\8aÑ\80зваÑ\82 Ñ\81 Ð\92аÑ\81 Ð¿Ð¾ ÐµÐ»ÐµÐºÑ\82Ñ\80онна Ð¿Ð¾Ñ\89а, ÐºÐ°Ñ\82о Ñ\89Ñ\80акваÑ\82 Ð½Ð° Ð¿Ñ\80епÑ\80аÑ\82ка Ð¾Ñ\82 Ð\92аÑ\88аÑ\82а Ð»Ð¸Ñ\87на Ð¿Ð¾Ñ\82Ñ\80ебиÑ\82елÑ\81ка Ñ\81Ñ\82Ñ\80аниÑ\86а Ð¸Ð»Ð¸ Ð±ÐµÑ\81еда. \nÐ\90дÑ\80еÑ\81Ñ\8aÑ\82 Ð½Ð° ÐµÐ»ÐµÐºÑ\82Ñ\80оннаÑ\82а Ð\92и Ð¿Ð¾Ñ\89а Ð½Ðµ Ñ\81е Ñ\80азкÑ\80ива Ð½Ð° Ð¿Ð¾Ñ\82Ñ\80ебиÑ\82елиÑ\82е, ÐºÐ¾Ð¸Ñ\82о Ñ\81е Ñ\81вÑ\8aÑ\80зваÑ\82 Ñ\81 Ð\92ас по този начин.",
        "prefs-help-email-required": "Изисква се адрес за електронна поща.",
        "prefs-info": "Основна информация",
        "prefs-i18n": "Интернационализация",
        "right-movefile": "Преместване на файлове",
        "right-suppressredirect": "Без създаване на пренасочване от старото име при преместване на страница",
        "right-upload": "Качване на файлове",
-       "right-reupload": "Ð\9fÑ\80езапиÑ\81ване на съществуващ файл",
-       "right-reupload-own": "Ð\9fÑ\80езапиÑ\81ване на съществуващ файл, качен от същия потребител",
-       "right-reupload-shared": "Ð\9fÑ\80едеÑ\84иниÑ\80ане на едноименните файлове от общото мултимедийно хранилище с локални",
+       "right-reupload": "Ð\9fÑ\80епокÑ\80иване на съществуващ файл",
+       "right-reupload-own": "Ð\9fÑ\80епокÑ\80иване на съществуващ файл, качен от същия потребител",
+       "right-reupload-shared": "Ð\9fÑ\80епокÑ\80иване на едноименните файлове от общото мултимедийно хранилище с локални",
        "right-upload_by_url": "Качване на файл от URL адрес",
        "right-purge": "Изчистване на складираното съдържание на страниците без показване на страница за потвърждение",
        "right-autoconfirmed": "Редактиране на полузащитени страници",
        "grant-editpage": "Редактиране на съществуващи страници",
        "grant-editprotected": "Редактиране на защитени страници",
        "grant-highvolume": "Голям обем за редактиране",
-       "grant-oversight": "Скриване на участниците и версия страници",
+       "grant-oversight": "Скриване на потребители и прикриване на редакции",
        "grant-patrol": "Патрулират промени страници",
        "grant-privateinfo": "Достъп до лична информация",
        "grant-protect": "Защита и премахване на защита на страници",
index 2bc5256..092f159 100644 (file)
        "logouttext": "'''रउआ अब खाता से बाहर बानी'''\n\nध्यान रहे कि जब तक रउआ आपन ब्राउजर के कैश साफ ना करब, तब तक कुछ पन्नन में हो सकत बा रउआ के खाता में लगातार प्रवेशित दिखावत रही।",
        "cannotlogoutnow-title": "एह समय लॉगआउट ना हो सकी",
        "cannotlogoutnow-text": "$1 के इस्तेमाल करत समय लॉगआउट नइखे संभव।",
-       "welcomeuser": "राà¤\89र à¤¸à¥\8dवाà¤\97त à¤¬à¤¾, $1!",
+       "welcomeuser": "स्वागत बा, $1!",
        "welcomecreation-msg": "राउर खाता बना दिहल गईल बा।\nआपन [[Special:Preferences|{{SITENAME}} वरीयतां]] के बदले के ना भूलब।",
        "yourname": "प्रयोगकर्तानाँव:",
        "userlogin-yourname": "प्रयोगकर्तानाँव",
index 9da4b4c..3f277e4 100644 (file)
        "autoblocklist-submit": "Pretraži",
        "autoblocklist-legend": "Ispis autoblokova",
        "autoblocklist-localblocks": "{{PLURAL:$1|Lokalni autoblok|Lokalni autoblokovi}}",
-       "autoblocklist-total-autoblocks": "Ukupan broj autoblokiranja: $1",
+       "autoblocklist-total-autoblocks": "Ukupno autoblokova: $1",
        "autoblocklist-empty": "Spisak autoblokova je prazan.",
        "autoblocklist-otherblocks": "{{PLURAL:$1|Drugi autoblok|Drugi autoblokovi}}",
        "ipblocklist": "Blokirani korisnici",
        "confirm-rollback-top": "Ukloniti izmjene na ovoj stranici?",
        "quotation-marks": "\"$1\"",
        "imgmultipageprev": "← prethodna stranica",
-       "imgmultipagenext": "slijedeća stranica →",
+       "imgmultipagenext": "sljedeća stranica →",
        "imgmultigo": "Idi!",
        "imgmultigoto": "Idi na stranicu $1",
        "img-lang-default": "(podrazumijevani jezik)",
index b5d0a79..bcb5dc9 100644 (file)
        "autoblocklist-submit": "Hledat",
        "autoblocklist-legend": "Seznam automatických blokování",
        "autoblocklist-localblocks": "Místní {{PLURAL:$1|automatické|automatická}} blokování",
+       "autoblocklist-total-autoblocks": "Celkový počet automatických blokování: $1",
        "autoblocklist-empty": "Seznam automatických blokování je prázdný.",
        "autoblocklist-otherblocks": "{{PLURAL:$1|Jiné automatické|Jiná automatická}} blokování",
        "ipblocklist": "Zablokovaní uživatelé",
index 25879c8..9fe0e3c 100644 (file)
        "recentchanges-legend-plusminus": "(<em>±123</em>)",
        "recentchanges-submit": "Show",
        "rcfilters-activefilters": "Active filters",
-       "rcfilters-quickfilters": "Quick links",
+       "rcfilters-quickfilters": "Saved filter settings",
        "rcfilters-quickfilters-placeholder-title": "No links saved yet",
        "rcfilters-quickfilters-placeholder-description": "To save your filter settings and reuse them later, click the bookmark icon in the Active Filter area, below.",
        "rcfilters-savedqueries-defaultlabel": "Saved filters",
        "rcfilters-savedqueries-unsetdefault": "Remove as default",
        "rcfilters-savedqueries-remove": "Remove",
        "rcfilters-savedqueries-new-name-label": "Name",
-       "rcfilters-savedqueries-apply-label": "Create quick link",
+       "rcfilters-savedqueries-apply-label": "Save settings",
        "rcfilters-savedqueries-cancel-label": "Cancel",
-       "rcfilters-savedqueries-add-new-title": "Save filters as a quick link",
+       "rcfilters-savedqueries-add-new-title": "Save current filter settings",
        "rcfilters-restore-default-filters": "Restore default filters",
        "rcfilters-clear-all-filters": "Clear all filters",
        "rcfilters-search-placeholder": "Filter recent changes (browse or start typing)",
        "rcfilters-filter-watchlist-notwatched-description": "Everything except changes to your Watchlisted pages.",
        "rcfilters-filtergroup-changetype": "Type of change",
        "rcfilters-filter-pageedits-label": "Page edits",
-       "rcfilters-filter-pageedits-description": "Edits to wiki content, discussions, category descriptions....",
+       "rcfilters-filter-pageedits-description": "Edits to wiki content, discussions, category descriptions",
        "rcfilters-filter-newpages-label": "Page creations",
        "rcfilters-filter-newpages-description": "Edits that make new pages.",
        "rcfilters-filter-categorization-label": "Category changes",
        "rcfilters-filter-categorization-description": "Records of pages being added or removed from categories.",
        "rcfilters-filter-logactions-label": "Logged actions",
-       "rcfilters-filter-logactions-description": "Administrative actions, account creations, page deletions, uploads....",
+       "rcfilters-filter-logactions-description": "Administrative actions, account creations, page deletions, uploads",
        "rcfilters-hideminor-conflicts-typeofchange-global": "The \"Minor edits\" filter conflicts with one or more Type of Change filters, because certain types of change cannot be designated as \"minor.\" The conflicting filters are marked in the Active Filters area, above.",
        "rcfilters-hideminor-conflicts-typeofchange": "Certain types of change cannot be designated as \"minor,\" so this filter conflicts with the following Type of Change filters: $1",
        "rcfilters-typeofchange-conflicts-hideminor": "This Type of Change filter conflicts with the \"Minor Edits\" filter. Certain types of change cannot be designated as \"minor.\"",
index 3760902..ab2ea44 100644 (file)
        "policy-url": "Project:Políticas",
        "portal": "Portal de la comunidad",
        "portal-url": "Project:Portal de la comunidad",
-       "privacy": "Política de privacidad",
-       "privacypage": "Project:Política de privacidad",
+       "privacy": "Normativa de privacidad",
+       "privacypage": "Project:Normativa de privacidad",
        "badaccess": "Error de permisos",
        "badaccess-group0": "No estás autorizado a ejecutar la acción solicitada.",
        "badaccess-groups": "La acción que has solicitado está restringida a los usuarios {{PLURAL:$2|del grupo|de uno de estos $2 grupos}}: $1.",
        "rcfilters-activefilters": "Filtros activos",
        "rcfilters-quickfilters": "Enlaces rápidos",
        "rcfilters-quickfilters-placeholder-title": "Ningún enlace guardado aún",
-       "rcfilters-quickfilters-placeholder-description": "Para guardar sus ajustes de filtro y reutilizarlos más tarde, haga clic en el icono del marcador en el área de Filtro Activo a continuación.",
+       "rcfilters-quickfilters-placeholder-description": "Para guardar tus ajustes de filtro y reutilizarlos más tarde, pulsa en el icono del marcador en el área de Filtro Activo que se encuentra a continuación.",
        "rcfilters-savedqueries-defaultlabel": "Filtros guardados",
        "rcfilters-savedqueries-rename": "Cambiar nombre",
        "rcfilters-savedqueries-setdefault": "Activar por defecto",
-       "rcfilters-savedqueries-unsetdefault": "Eliminar por defecto",
+       "rcfilters-savedqueries-unsetdefault": "Desmarcar como predeterminado",
        "rcfilters-savedqueries-remove": "Eliminar",
        "rcfilters-savedqueries-new-name-label": "Nombre",
        "rcfilters-savedqueries-apply-label": "Crear enlace rápido",
        "autoblocklist-submit": "Buscar",
        "autoblocklist-legend": "Mostrar bloqueos automáticos",
        "autoblocklist-localblocks": "{{PLURAL:$1|Bloqueo automático local|Bloqueos automáticos locales}}",
-       "autoblocklist-total-autoblocks": "Número total de autobloques: $1",
+       "autoblocklist-total-autoblocks": "Número total de bloqueos automáticos: $1",
        "autoblocklist-empty": "La lista de bloqueos automáticos está vacía.",
        "autoblocklist-otherblocks": "{{PLURAL:$1|Otro bloqueo automático|Otros bloqueos automáticos}}",
        "ipblocklist": "Usuarios bloqueados",
index 08e68d0..2ed559a 100644 (file)
        "rev-deleted-user": "(nom d'utilisateur retiré)",
        "rev-deleted-event": "(détails de l’historique retirés)",
        "rev-deleted-user-contribs": "[nom d’utilisateur ou adresse IP retiré – modification masquée dans les contributions]",
-       "rev-deleted-text-permission": "Cette version de la page a été <strong>effacée</strong>.\nDes détails sont disponibles dans le [{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} journal des suppressions].",
+       "rev-deleted-text-permission": "Cette version de la page a été <strong>supprimée</strong>.\nDes détails sont disponibles dans le [{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} journal des suppressions].",
        "rev-suppressed-text-permission": "Cette version de la page a été <strong>masquée</strong>.\nLes détails se trouvent dans le [{{fullurl:{{#Special:Log}}/suppress|page={{FULLPAGENAMEE}}}} journal des masquages].",
        "rev-deleted-text-unhide": "Cette version de la page a été <strong>supprimée</strong>.\nDes détails sont disponibles dans [{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} le journal des suppressions].\nVous pouvez toujours [$1 voir cette version] si vous le voulez.",
        "rev-suppressed-text-unhide": "Cette version de la page a été <strong>masquée</strong>.\nDes détails sont disponibles dans [{{fullurl:{{#Special:Log}}/suppress|page={{FULLPAGENAMEE}}}} le journal des masquages].\nVous pouvez toujours [$1 voir cette version] si vous le voulez.",
        "creditspage": "Crédits de la page",
        "nocredits": "Il n'y a pas d'informations d'attribution disponibles pour cette page.",
        "spamprotectiontitle": "Filtre de protection anti-pollupostage",
-       "spamprotectiontext": "La page que vous avez voulu sauvegarder a été bloquée par le filtre anti-spam. Ceci est probablement dû à l'introduction d'un lien vers un site externe apparaissant sur la liste noire.",
+       "spamprotectiontext": "La page que vous avez voulu sauvegarder a été bloquée par le filtre anti-pourriel. Ceci est probablement dû à l’introduction d’un lien vers un site externe apparaissant sur la liste noire.",
        "spamprotectionmatch": "Le texte suivant a déclenché notre filtre de protection anti-pollupostage : $1",
        "spambot_username": "Nettoyage de pourriels par MediaWiki",
        "spam_reverting": "Rétablissement de la dernière version ne contenant pas de lien vers $1",
        "spam_blanking": "Toutes les versions contenant des liens vers $1 sont blanchies",
        "spam_deleting": "Toutes les versions contenaient des liens vers $1, suppression",
-       "simpleantispam-label": "Vérification anti-spam.\nNe <strong>rien</strong> inscrire ici !",
+       "simpleantispam-label": "Vérification anti-pourriel.\nNe <strong>rien</strong> inscrire ici !",
        "pageinfo-title": "Informations pour « $1 »",
        "pageinfo-not-current": "Désolé, impossible de fournir cette information pour les anciennes révisions.",
        "pageinfo-header-basic": "Informations de base",
        "specialpages-group-pagetools": "Outils pour les pages",
        "specialpages-group-wiki": "Données et outils",
        "specialpages-group-redirects": "Pages spéciales redirigées",
-       "specialpages-group-spam": "Outils anti-spam",
+       "specialpages-group-spam": "Outils anti-pourriel",
        "specialpages-group-developer": "Outils du développeur",
        "blankpage": "Page vide",
        "intentionallyblankpage": "Cette page est laissée intentionnellement (presque) vide.",
index 3077e44..182b67f 100644 (file)
        "autoblocklist-submit": "Procura",
        "autoblocklist-legend": "Listar autobloqueos",
        "autoblocklist-localblocks": "{{PLURAL:$1|Autobloqueo local|Autobloqueos locais}}",
+       "autoblocklist-total-autoblocks": "Número total de bloques automáticos: $1",
        "autoblocklist-empty": "A lista de autobloqueos está baleira.",
        "autoblocklist-otherblocks": "{{PLURAL:$1|Outro autobloqueo|Outros autobloqueos}}",
        "ipblocklist": "Usuarios bloqueados",
index ef4a168..4092e88 100644 (file)
        "pageinfo-category-subcats": "Broj podkategorija",
        "pageinfo-category-files": "Broj datoteka",
        "markaspatrolleddiff": "Označi pregledanim",
-       "markaspatrolledtext": "Označi ovaj članak pregledanim",
+       "markaspatrolledtext": "Označi ovu stranicu ophođenom",
        "markaspatrolledtext-file": "Označi ovu inačicu datoteke kao pregledanu",
        "markedaspatrolled": "Pregledano",
        "markedaspatrolledtext": "Odabrana promjena [[:$1]] označena je pregledanom.",
        "special-characters-group-thai": "tajlandski (tajski)",
        "special-characters-group-lao": "laoski",
        "special-characters-group-khmer": "kmerski",
+       "mw-widgets-dateinput-no-date": "Nadnevak nije naznačen",
        "mw-widgets-dateinput-placeholder-day": "GGGG-MM-DD",
        "mw-widgets-dateinput-placeholder-month": "GGGG-MM",
        "mw-widgets-titleinput-description-new-page": "stranica još ne postoji",
index 2c39e34..ea525d3 100644 (file)
        "autoblocklist-submit": "Пребарај",
        "autoblocklist-legend": "Испис на автоблокови",
        "autoblocklist-localblocks": "{{PLURAL:$1|Месен автоблок|Месни автоблокови}}",
+       "autoblocklist-total-autoblocks": "Вкупно автоблокови: $1",
        "autoblocklist-empty": "Списокот на автоблокови е празен.",
        "autoblocklist-otherblocks": "{{PLURAL:$1|Друг автоблок|Други автоблокови}}",
        "ipblocklist": "Блокирани корисници",
index a3b7c7e..75ad220 100644 (file)
        "redirectedfrom": "($1 جه بموئه)",
        "redirectpagesub": "گجگی‌بَیتـِن",
        "redirectto": "دکشی‌بیّه به:",
-       "lastmodifiedat": "این صفحه ره آخرین بار این گادر دچینه:\n$2، $1",
+       "lastmodifiedat": "این صفحه ره آخرین بار این گادر دچینه: $2، $1",
        "viewcount": "این صفحه {{PLURAL:$1|ات|$1}} بار بدی‌یه بیّه",
        "protectedpage": "صفحه محافظت‌بَیی",
        "jumpto": "کپّل بیّن به:",
        "nstab-template": "شابلون",
        "nstab-help": "راهنما",
        "nstab-category": "رج",
+       "mainpage-nstab": "گت صفحه",
        "nosuchaction": "نونه اینتی هاکردن",
        "nosuchactiontext": "اینتا کار اینترنتی ِنشونی دله غیرموجازه\nشما احتمالا اینترنتی آدرس ره ایشتباه بنویشنی یا لینک ایشتبا ره کلیک هاکردنی\nهمینتی ممکن هسته ایرادی {{SITENAME}} دله داره.",
        "nosuchspecialpage": "اینتا شاء صفحه وجود ندانّه",
        "yourdomainname": "شمه کاروری نوم",
        "login": "دله بوردن",
        "nav-login-createaccount": "دله بوردن / عضو بیّن",
-       "userlogin": "دله بموئن / عضو بیّن",
-       "userloginnocreate": "دله بموئن",
        "logout": "دربوردن",
        "userlogout": "دربوردن",
        "notloggedin": "سیستم ره دله نیه مونی",
        "userlogin-noaccount": "عضو نی؟",
        "userlogin-joinproject": "{{SITENAME}} دله ثبت‌نوم هاکنین!",
-       "nologin": "عضو نی؟ $1.",
-       "nologinlink": "عضو بواشین",
        "createaccount": "ترنه حساب وا هکاردن",
-       "gotaccount": "عضو هسنی؟ $1.",
-       "gotaccountlink": "بورین دله",
-       "userlogin-resetlink": "دله بموئن ِجزئیات ره یاد هاکردی؟",
        "userlogin-resetpassword-link": "شه پسوُرد ره یاد بکاردنی؟",
        "userlogin-helplink2": "لاگین وسّه کومِک بَییتن",
        "createacct-emailoptional": "ایمیل (اختیاری)",
        "createacct-email-ph": "شه ایمیل ره باوّین",
        "createaccountmail": "ایمیل جه",
-       "createaccountreason": "دلیل:",
        "createacct-submit": "شه اکانت ره بسازین",
        "createacct-benefit-heading": "{{SITENAME}} ره شِمه واری آدِمون بِساتنه",
        "createacct-benefit-body1": "{{PLURAL:$1|دچی‌ین}}",
        "passwordreset": "پسورد ِتغییر",
        "passwordreset-username": "کاروری نوم:",
        "passwordreset-domain": "دامنه:",
-       "passwordreset-capture": "گت ایمیل سِراق هدائه بَواشه؟",
        "changeemail-oldemail": "اساء ایمیل:",
        "changeemail-newemail": "ترنه ایمیل آدرس:",
        "changeemail-none": "(هچّی)",
        "rcshowhidemine": "مه دچی‌یه‌ئون $1",
        "rcshowhidemine-show": "سِراق هِدائِن",
        "rcshowhidemine-hide": "پنهون هاکن",
-       "rclinks": "نـِشون هـِدائن  $1 پایانی دَچی‌‌یه‌ئون، $2 اِسـا روز ره دلـه؛ $3",
+       "rclinks": "نـِشون هـِدائن  $1 پایانی دَچی‌‌یه، $2 روز اخیر دله",
        "diff": "فرق",
        "hist": "تاریخچه",
        "hide": "پنهون هاکن",
        "linkstoimage": "این {{PLURAL:$1|صفحه|$1 صفحه‌ئون}} لینک هِدانه این فایل ره:",
        "nolinkstoimage": "این عکس ره هیچ جا نی‌یشتنه",
        "sharedupload-desc-here": "این پرونده $1 دله دَره و ممکن هسته دیگه پروژه‌ئون دله هم استفاده بواشه.\nتوضیحات موجود [$2 پرونده توضیحات صفحه میون اونجه]، سِراق هِدا وونّه.",
+       "shared-repo-name-wikimediacommons": "ویکی‌تلمبار",
        "upload-disallowed-here": "متأسفانه شما نتوندی این پرونده ره بازنویس هاکنی.",
        "randompage": "شانسی صفحه",
        "statistics": "آمار",
        "contributions": "{{GENDER:$1|کارور}} کایری‌ئون",
        "contributions-title": "$1 کایری‌ئون",
        "mycontris": "مه کایری‌ئون",
+       "anoncontribs": "کومِک هاکردن",
        "contribsub2": "$1 ($2) وه‌سه",
        "uctop": "(سر)",
        "month": "این ماه (و پیش از اون) دله:",
        "allmessages-filter-all": "همه",
        "thumbnail-more": "گت بوو",
        "import-interwiki-submit": "بیاردن",
-       "tooltip-pt-userpage": "مه کاروری صفحه",
-       "tooltip-pt-mytalk": "مه گپ صفحه",
-       "tooltip-pt-preferences": "مه خواسته‌نی‌ئون",
+       "tooltip-pt-userpage": "{{GENDER:|شمه کاروری}} صفحه",
+       "tooltip-pt-mytalk": "{{GENDER:|شمه}} گپ صفحه",
+       "tooltip-pt-preferences": "{{GENDER:|شمه}} خواسته‌نی‌ئون",
        "tooltip-pt-watchlist": "لیست صفحه‌ئونی که شِما وشون ِدچی‌یه بیّن ره اشنی",
-       "tooltip-pt-mycontris": "مه کایری‌ئون لیست",
+       "tooltip-pt-mycontris": "{{GENDER:|شمه}} کایری‌ئون لیست",
        "tooltip-pt-login": "شه‌ما به‌ته‌ر هـأسـه که سـیـسـتـه‌م ده‌لـه بـیـه‌ئی، هـرچـأن زوری نـیـه",
        "tooltip-pt-logout": "سیستم جه دأیابـوری",
        "tooltip-pt-createaccount": "شِما ره پیشنهاد کامبی که اتا کاروری حیساب بسازین و لاگین بَواشین؛ البته این کار اختیاری هسته.",
        "tooltip-t-recentchangeslinked": "اِسایی دِگاردسته‌ئون ِصفحه‌ئون که این صفحه جه لینک دارنه",
        "tooltip-feed-rss": "RSS خوراک این صفحه وسّه",
        "tooltip-feed-atom": "Atom خوراک این صفحه وسّه",
-       "tooltip-t-contributions": "این کارور ِکایریون ِفهرست",
+       "tooltip-t-contributions": "{{GENDER:$1|این کارور}} ِکایری‌ئون ِفهرست",
        "tooltip-t-emailuser": "ای کـارور ره اتـا ئـه‌لـه‌کـتـه‌رونـیـکـی‌نـومـه راهـی هـه‌کـارده‌ن",
        "tooltip-t-upload": "بـاربـیـه‌شـتـه‌ن فـایـل‌ئون",
        "tooltip-t-specialpages": "همه شا صفحه‌ئون ِلیسـت",
        "feedback-message": "پیغوم:",
        "feedback-subject": "موضوع:",
        "feedback-submit": "ارسال پیشنهادات و انتقادات",
-       "searchsuggest-search": "چرخه‌تو",
-       "api-error-badaccess-groups": "شما اجازهٔ باربی‌یشتن پرونده‌ها ره این ویکی دله ندارنی.",
+       "searchsuggest-search": "چرخه‌تو {{SITENAME}}",
        "api-error-badtoken": "خطای داخلی: کد امنیتی اشتبائه (Bad token).",
-       "api-error-copyuploaddisabled": "باربی‌یشتن با استفاده از نشونی اینترنتی این کارساز دله غیرفعاله.",
-       "api-error-duplicate": "{{PLURAL:$1|پروندهٔ دیگه‌یی|چن پروندهٔ دیگه}} وب‌گاه دله با محتوای ات‌تی دیی‌یه.",
-       "api-error-duplicate-archive": "{{PLURAL:$1|پروندهٔ دیگه‌یی|چن پروندهٔ دیگه}} وب‌گاه دله با محتوای اتجور وجود داشته، ولی حذف {{PLURAL:$1|بیی‌یه|بیی‌نه}}.",
-       "api-error-empty-file": "پرونده‌ای که شما برسنینی خالی بی‌یه.",
-       "api-error-fetchfileerror": "خطای داخلی: زمون بییتن پرونده، اتا چی درست پیش نشی‌یه.",
-       "api-error-file-too-large": "پرونده‌ای که شما برسنینی خله خله گت بی‌یه.",
-       "api-error-filename-tooshort": "پرونده ایسم خله خله پچیکه.",
-       "api-error-filetype-banned": "این نوع پرونده ممنوعه.",
-       "api-error-filetype-missing": "پرونده فرمت ندانّه.",
-       "api-error-hookaborted": "اصلاحیه‌ای که شما خاسنی وه ره بساجین، افزونه وه ره تله دمبدائه.",
-       "api-error-http": "خطای داخلی: نتومبی به به سرور اتصال هادیم",
-       "api-error-illegal-filename": "پرونده ایسم مجاز نی‌یه.",
-       "api-error-internal-error": "خطای داخلی: با پردازش باربی‌یشتن شما ویکی سر، ات چی اشتباه پیش بورده.",
-       "api-error-invalid-file-key": "خطای داخلی: پرونده حافظهٔ موقت سر دنی‌ئه.",
-       "api-error-missingparam": "خطای داخلی: پارامترون درخاست ره ندارمی.",
-       "api-error-missingresult": "خطای داخلی: نتونّی بفهمین کپی‌رایت موفق بی‌یه یا نا.",
-       "api-error-mustbeloggedin": "باربی‌یشتن پرونده‌ها وسّه شما ونه کاروری ایسم جا دَواشین.",
-       "api-error-mustbeposted": "خطای داخلی: درخواست ونه روش POST HTTP جا ارسال بوو.",
-       "api-error-noimageinfo": "باربی‌یشتن موفق بی‌یه، ولی کارساز هیچ اطلاعاتی دربارهٔ پرونده اما ره ندائه.",
-       "api-error-nomodule": "خطای داخلی: ماژول باربی‌یشتن تنظیم نیی‌ئه.",
-       "api-error-ok-but-empty": "خطای داخلی : سرور جه جواب نموئه.",
-       "api-error-overwrite": "جای بنویشتن اتا پرونده موجود مجاز نی‌یه.",
        "api-error-stashfailed": "خطای داخلی: کارساز نتونده پرونده موقت ره ذخیره هاکنه.",
-       "api-error-timeout": "کارساز زمون انتظار جواب ندائه.",
-       "api-error-unclassified": "اتا خطای نشناسته دکته.",
-       "api-error-unknown-code": "خطای نشناسی‌یه: \" $1 \"",
-       "api-error-unknown-error": "خطای داخلی: زمونی که شما تلاش کاردنی باربی‌یشتن پرونده ره انجوم هادین، اتا چی اشتباه پیش بورده.",
-       "api-error-unknown-warning": "اخطار نشناسی‌یه: $1",
-       "api-error-uploaddisabled": "باربی‌یشتن این ویکی دله غیرفعاله.",
-       "api-error-verification-error": "ممکن هسته که پرونده رِقِد بورد بائه یا پسوند غلط داره."
+       "api-error-unknown-warning": "اخطار نشناسی‌یه: $1"
 }
index db82ddb..3c85ebc 100644 (file)
        "recentchanges-submit": "Vis",
        "rcfilters-activefilters": "Aktive filtre",
        "rcfilters-quickfilters": "Raske lenker",
+       "rcfilters-quickfilters-placeholder-title": "Ingen lenker lagret enda",
+       "rcfilters-quickfilters-placeholder-description": "For å lagre filterinnstillingene og gjenbruk dem senere, klikk på bokmerkeikonet i området Aktive Filtre under.",
        "rcfilters-savedqueries-defaultlabel": "Lagrede filtre",
        "rcfilters-savedqueries-rename": "Gi nytt navn",
        "rcfilters-savedqueries-setdefault": "Sett som standard",
        "pageid": "side-ID $1",
        "rawhtml-notallowed": "&lt;html&gt;-tagger kan ikke brukes utenfor normale sider.",
        "gotointerwiki": "Forlater {{SITENAME}}",
-       "gotointerwiki-invalid": "Den gitte tittelen var ugyldig.",
-       "gotointerwiki-external": "Du er i ferd med å forlate {{SITENAME}} for å besøke [[$2]], som er et annet nettsted.\n\n[$1 Klikk her for å fortsette til $1].",
+       "gotointerwiki-invalid": "Den gitte tittelen er ugyldig.",
+       "gotointerwiki-external": "Du er i ferd med å forlate {{SITENAME}} for å besøke [[$2]], som er et annet nettsted.\n\n'''[$1 Fortsett til $1]'''",
        "undelete-cantedit": "Du kan ikke gjenopprette denne siden fordi du ikke har tillatelse til å redigere den.",
        "undelete-cantcreate": "Du kan ikke gjenopprette denne siden fordi det ikke er noen eksisterende side med dette navnet, og du ikke har tillatelse til å opprette siden."
 }
index bb15403..2f46750 100644 (file)
        "autoblocklist-submit": "Zoeken",
        "autoblocklist-legend": "Automatische blokkades tonen",
        "autoblocklist-localblocks": "Lokale {{PLURAL:$1|automatische blokkades}}",
+       "autoblocklist-total-autoblocks": "Totaal aantal autoblokkades: $",
        "autoblocklist-empty": "De lijst met automatische blokkades is leeg.",
        "autoblocklist-otherblocks": "Andere {{PLURAL:$1|automatische blokkades}}",
        "ipblocklist": "Geblokkeerde gebruikers",
index 580f184..974fd36 100644 (file)
        "autoblocklist-submit": "Найти",
        "autoblocklist-legend": "Список автоблокировок",
        "autoblocklist-localblocks": "{{PLURAL:$1|Локальная автоблокировка|Локальные автоблокировки}}",
+       "autoblocklist-total-autoblocks": "Всего автоблоков: $1",
        "autoblocklist-empty": "Список автоблокировок пуст.",
        "autoblocklist-otherblocks": "{{PLURAL:$1|Другая автоблокировка|Другие автоблокировки}}",
        "ipblocklist": "Заблокированные участники",
index f41ade0..1a59d46 100644 (file)
        "autoblocklist-submit": "Išči",
        "autoblocklist-legend": "Seznam samodejnih blokad",
        "autoblocklist-localblocks": "{{PLURAL:$1|Lokalna samodejna blokada|Lokalni samodejni blokadi|Lokalne samodejne blokade}}",
+       "autoblocklist-total-autoblocks": "Skupno število samodejnih blokad: $1",
        "autoblocklist-empty": "Seznam samodejnih blokad je prazen.",
        "autoblocklist-otherblocks": "{{PLURAL:$1|Druga samodejna blokada|Drugi samodejni blokadi|Druge samodejne blokade}}",
        "ipblocklist": "Blokirani uporabniki",
index 9a53a80..df57e36 100644 (file)
        "hidden-category-category": "Скривене категорије",
        "category-subcat-count": "{{PLURAL:$2|1=Ова категорија садржи само следећу поткатегорију.|Ова категорија има {{PLURAL:$1|1=следећу поткатегорију|следеће $1 поткатегорије|следећих $1 поткатегорија}}, од укупно $2.}}",
        "category-subcat-count-limited": "Ова категорија садржи {{PLURAL:$1|следећу поткатегорију|следеће $1 поткатегорије|следећих $1 поткатегорија}}.",
-       "category-article-count": "{{PLURAL:$2|1=Ова категорија садржи само следећу страницу.|{{PLURAL:$1|Следећа страница је|Следеће $1 странице су|Следећих $1 страница је}} у овој категорији, од укупно $2.}}",
+       "category-article-count": "{{PLURAL:$2|1=Ова категорија садржи само следећу страницу.|{{PLURAL:$1|Следећа $1 страница је|Следеће $1 странице су|Следећих $1 страница је}} у овој категорији, од укупно $2.}}",
        "category-article-count-limited": "{{PLURAL:$1|1=Следећа страница је|Следеће $1 странице су|Следећих $1 страница је}} у овој категорији.",
        "category-file-count": "{{PLURAL:$2|1=Ова категорија садржи само следећу датотеку.|{{PLURAL:$1|1=Следећа датотека је|Следеће $1 датотеке су|Следећих $1 датотека је}} у овој категорији, од укупно $2.}}",
        "category-file-count-limited": "{{PLURAL:$1|1=Следећа датотека је|Следеће $1 датотеке су|Следећих $1 датотека је}} у овој категорији.",
index 7c7000c..d35d600 100644 (file)
        "hidden-category-category": "Skrivene kategorije",
        "category-subcat-count": "{{PLURAL:$2|1=Ova kategorija sadrži samo sledeću potkategoriju.|Ova kategorija ima {{PLURAL:$1|1=sledeću potkategoriju|sledeće $1 potkategorije|sledećih $1 potkategorija}}, od ukupno $2.}}",
        "category-subcat-count-limited": "Ova kategorija sadrži {{PLURAL:$1|sledeću potkategoriju|sledeće $1 potkategorije|sledećih $1 potkategorija}}.",
-       "category-article-count": "{{PLURAL:$2|1=Ova kategorija sadrži samo sledeću stranicu.|{{PLURAL:$1|Sledeća stranica je|Sledeće $1 stranice su|Sledećih $1 stranica je}} u ovoj kategoriji, od ukupno $2.}}",
+       "category-article-count": "{{PLURAL:$2|1=Ova kategorija sadrži samo sledeću stranicu.|{{PLURAL:$1|Sledeća $1 stranica je|Sledeće $1 stranice su|Sledećih $1 stranica je}} u ovoj kategoriji, od ukupno $2.}}",
        "category-article-count-limited": "{{PLURAL:$1|1=Sledeća stranica je|Sledeće $1 stranice su|Sledećih $1 stranica je}} u ovoj kategoriji.",
        "category-file-count": "{{PLURAL:$2|1=Ova kategorija sadrži samo sledeću datoteku.|{{PLURAL:$1|1=Sledeća datoteka je|Sledeće $1 datoteke su|Sledećih $1 datoteka je}} u ovoj kategoriji, od ukupno $2.}}",
        "category-file-count-limited": "{{PLURAL:$1|1=Sledeća datoteka je|Sledeće $1 datoteke su|Sledećih $1 datoteka je}} u ovoj kategoriji.",
index 48c50c5..47c67ca 100644 (file)
        "listusers-blocked": "(مسدود)",
        "activeusers": "متحرک صارفین کی فہرست",
        "activeusers-intro": "ذیل میں ان صارفین کی فہرست ہے جو گزشتہ $1 {{PLURAL:$1|دن|دنوں}} میں کسی بھی قسم کی سرگرمی میں شریک رہے ہوں۔",
-       "activeusers-count": "گزشتÛ\81 {{PLURAL:$3|دÙ\86|$3 Ø¯Ù\86Ù\88Úº}} Ù\85Û\8cÚº $1 {{PLURAL:$1|اÙ\82داÙ\85|اÙ\82داÙ\85ات}}",
+       "activeusers-count": "گزشتÛ\81 {{PLURAL:$3|دÙ\86|$3 Ø¯Ù\86Ù\88Úº}} Ù\85Û\8cÚº $1 {{PLURAL:$1|ترÙ\85Û\8cÙ\85|تراÙ\85Û\8cÙ\85}}",
        "activeusers-from": "اس حرف سے شروع ہونے والے صارفین کے نام دکھائیں:",
        "activeusers-noresult": "یہ صارف نہیں مل سکا",
        "activeusers-submit": "فعال صارفین دکھائیں",
index fbd52d1..dacaa7f 100644 (file)
@@ -85,7 +85,8 @@
                        "和平奮鬥救地球",
                        "Arthur2e5",
                        "逆襲的天邪鬼",
-                       "A2093064"
+                       "A2093064",
+                       "Wwycheuk"
                ]
        },
        "tog-underline": "底線標示連結:",
        "rcfilters-savedqueries-defaultlabel": "儲存過濾器",
        "rcfilters-savedqueries-rename": "重新命名",
        "rcfilters-savedqueries-setdefault": "定為預設",
-       "rcfilters-savedqueries-unsetdefault": "取消預設",
+       "rcfilters-savedqueries-unsetdefault": "取消作為預設",
        "rcfilters-savedqueries-remove": "移除",
        "rcfilters-savedqueries-new-name-label": "名稱",
        "rcfilters-savedqueries-apply-label": "建立快速連結",
        "uploadwarning": "上傳警告",
        "uploadwarning-text": "請修改以下的檔案描述並重試。",
        "savefile": "儲存檔案",
-       "uploaddisabled": "å·±停用上傳。",
-       "copyuploaddisabled": "å·±å\81\9cç\94¨使用 URL 上傳。",
+       "uploaddisabled": "å·²停用上傳。",
+       "copyuploaddisabled": "å·²å\81\9cæ­¢使用 URL 上傳。",
        "uploaddisabledtext": "已停用檔案上傳。",
        "php-uploaddisabledtext": "PHP 已停用檔案上傳。\n請檢查 file_uploads 設定。",
        "uploadscripted": "此檔案包含可能會被網頁瀏覽器錯誤執行的 HTML 或 Script。",
index e30196c..c4baab7 100644 (file)
@@ -1028,6 +1028,7 @@ return [
                'styles' => 'resources/src/mediawiki/mediawiki.filewarning.less',
                'dependencies' => [
                        'oojs-ui-core',
+                       'oojs-ui.styles.icons-alerts',
                ],
        ],
        'mediawiki.ForeignApi' => [
@@ -1647,7 +1648,8 @@ return [
                        'oojs',
                        'oojs-ui-core',
                        'oojs-ui-widgets',
-                       'oojs-ui.styles.icons-media'
+                       'oojs-ui.styles.icons-media',
+                       'oojs-ui.styles.icons-movement'
                ],
                'messages' => [
                        'gallery-slideshow-toggle'
@@ -1840,6 +1842,7 @@ return [
                        'mediawiki.language',
                        'mediawiki.user',
                        'mediawiki.rcfilters.filters.dm',
+                       'oojs-ui.styles.icons-content',
                        'oojs-ui.styles.icons-moderation',
                        'oojs-ui.styles.icons-editing-core',
                        'oojs-ui.styles.icons-editing-styling',
@@ -1863,6 +1866,10 @@ return [
                        'mediawiki.jqueryMsg',
                        'mediawiki.util',
                        'oojs-ui',
+                       'oojs-ui.styles.icons-content',
+                       'oojs-ui.styles.icons-editing-advanced',
+                       'oojs-ui.styles.icons-interactions',
+                       'oojs-ui.styles.icons-moderation',
                        'mediawiki.widgets.datetime',
                ],
                'messages' => [
@@ -2329,6 +2336,7 @@ return [
                ],
                'dependencies' => [
                        'oojs-ui-widgets',
+                       'oojs-ui.styles.icons-movement',
                        'moment',
                ],
                'targets' => [ 'desktop', 'mobile' ],
@@ -2393,6 +2401,8 @@ return [
                ],
                'dependencies' => [
                        'oojs-ui-core',
+                       'oojs-ui.styles.icons-moderation',
+                       'oojs-ui.styles.icons-movement',
                ],
                'targets' => [ 'desktop', 'mobile' ],
        ],
@@ -2482,6 +2492,7 @@ return [
                ],
                'dependencies' => [
                        'mediawiki.searchSuggest',
+                       'oojs-ui.styles.icons-interactions',
                        // FIXME: Needs TitleInputWidget only
                        'mediawiki.widgets',
                ],
@@ -2550,5 +2561,155 @@ return [
        ],
 
        /* OOjs UI */
-       // @see ResourcesOOUI.php
+
+       // Omnibus module.
+       'oojs-ui' => [
+               'dependencies' => [
+                       'oojs-ui-core',
+                       'oojs-ui-widgets',
+                       'oojs-ui-toolbars',
+                       'oojs-ui-windows',
+               ],
+               'targets' => [ 'desktop', 'mobile' ],
+       ],
+
+       // The core JavaScript library.
+       'oojs-ui-core' => [
+               'class' => 'ResourceLoaderOOUIFileModule',
+               'scripts' => [
+                       'resources/lib/oojs-ui/oojs-ui-core.js',
+                       'resources/src/oojs-ui-local.js',
+               ],
+               'themeScripts' => 'core',
+               'dependencies' => [
+                       'oojs',
+                       'oojs-ui-core.styles',
+                       'oojs-ui.styles.indicators',
+                       'oojs-ui.styles.textures',
+                       'mediawiki.language',
+               ],
+               'targets' => [ 'desktop', 'mobile' ],
+       ],
+       // This contains only the styles required by core widgets.
+       'oojs-ui-core.styles' => [
+               'class' => 'ResourceLoaderOOUIFileModule',
+               'styles' => 'resources/src/oojs-ui-local.css', // HACK, see inside the file
+               'themeStyles' => 'core',
+               'targets' => [ 'desktop', 'mobile' ],
+       ],
+       // Additional widgets and layouts module.
+       'oojs-ui-widgets' => [
+               'class' => 'ResourceLoaderOOUIFileModule',
+               'scripts' => 'resources/lib/oojs-ui/oojs-ui-widgets.js',
+               'themeStyles' => 'widgets',
+               'dependencies' => 'oojs-ui-core',
+               'messages' => [
+                       'ooui-outline-control-move-down',
+                       'ooui-outline-control-move-up',
+                       'ooui-outline-control-remove',
+                       'ooui-selectfile-button-select',
+                       'ooui-selectfile-dragdrop-placeholder',
+                       'ooui-selectfile-not-supported',
+                       'ooui-selectfile-placeholder',
+               ],
+               'targets' => [ 'desktop', 'mobile' ],
+       ],
+       // Toolbar and tools module.
+       'oojs-ui-toolbars' => [
+               'class' => 'ResourceLoaderOOUIFileModule',
+               'scripts' => 'resources/lib/oojs-ui/oojs-ui-toolbars.js',
+               'themeStyles' => 'toolbars',
+               'dependencies' => 'oojs-ui-core',
+               'messages' => [
+                       'ooui-toolbar-more',
+                       'ooui-toolgroup-collapse',
+                       'ooui-toolgroup-expand',
+               ],
+               'targets' => [ 'desktop', 'mobile' ],
+       ],
+       // Windows and dialogs module.
+       'oojs-ui-windows' => [
+               'class' => 'ResourceLoaderOOUIFileModule',
+               'scripts' => 'resources/lib/oojs-ui/oojs-ui-windows.js',
+               'themeStyles' => 'windows',
+               'dependencies' => 'oojs-ui-core',
+               'messages' => [
+                       'ooui-dialog-message-accept',
+                       'ooui-dialog-message-reject',
+                       'ooui-dialog-process-continue',
+                       'ooui-dialog-process-dismiss',
+                       'ooui-dialog-process-error',
+                       'ooui-dialog-process-retry',
+               ],
+               'targets' => [ 'desktop', 'mobile' ],
+       ],
+
+       'oojs-ui.styles.indicators' => [
+               'class' => 'ResourceLoaderOOUIImageModule',
+               'themeImages' => 'indicators',
+       ],
+       'oojs-ui.styles.textures' => [
+               'class' => 'ResourceLoaderOOUIImageModule',
+               'themeImages' => 'textures',
+       ],
+       'oojs-ui.styles.icons-accessibility' => [
+               'class' => 'ResourceLoaderOOUIImageModule',
+               'themeImages' => 'icons-accessibility',
+       ],
+       'oojs-ui.styles.icons-alerts' => [
+               'class' => 'ResourceLoaderOOUIImageModule',
+               'themeImages' => 'icons-alerts',
+       ],
+       'oojs-ui.styles.icons-content' => [
+               'class' => 'ResourceLoaderOOUIImageModule',
+               'themeImages' => 'icons-content',
+       ],
+       'oojs-ui.styles.icons-editing-advanced' => [
+               'class' => 'ResourceLoaderOOUIImageModule',
+               'themeImages' => 'icons-editing-advanced',
+       ],
+       'oojs-ui.styles.icons-editing-core' => [
+               'class' => 'ResourceLoaderOOUIImageModule',
+               'themeImages' => 'icons-editing-core',
+       ],
+       'oojs-ui.styles.icons-editing-list' => [
+               'class' => 'ResourceLoaderOOUIImageModule',
+               'themeImages' => 'icons-editing-list',
+       ],
+       'oojs-ui.styles.icons-editing-styling' => [
+               'class' => 'ResourceLoaderOOUIImageModule',
+               'themeImages' => 'icons-editing-styling',
+       ],
+       'oojs-ui.styles.icons-interactions' => [
+               'class' => 'ResourceLoaderOOUIImageModule',
+               'themeImages' => 'icons-interactions',
+       ],
+       'oojs-ui.styles.icons-layout' => [
+               'class' => 'ResourceLoaderOOUIImageModule',
+               'themeImages' => 'icons-layout',
+       ],
+       'oojs-ui.styles.icons-location' => [
+               'class' => 'ResourceLoaderOOUIImageModule',
+               'themeImages' => 'icons-location',
+       ],
+       'oojs-ui.styles.icons-media' => [
+               'class' => 'ResourceLoaderOOUIImageModule',
+               'themeImages' => 'icons-media',
+       ],
+       'oojs-ui.styles.icons-moderation' => [
+               'class' => 'ResourceLoaderOOUIImageModule',
+               'themeImages' => 'icons-moderation',
+       ],
+       'oojs-ui.styles.icons-movement' => [
+               'class' => 'ResourceLoaderOOUIImageModule',
+               'themeImages' => 'icons-movement',
+       ],
+       'oojs-ui.styles.icons-user' => [
+               'class' => 'ResourceLoaderOOUIImageModule',
+               'themeImages' => 'icons-user',
+       ],
+       'oojs-ui.styles.icons-wikimedia' => [
+               'class' => 'ResourceLoaderOOUIImageModule',
+               'themeImages' => 'icons-wikimedia',
+       ],
 ];
diff --git a/resources/ResourcesOOUI.php b/resources/ResourcesOOUI.php
deleted file mode 100644 (file)
index c9b5d89..0000000
+++ /dev/null
@@ -1,172 +0,0 @@
-<?php
-/**
- * Definition of OOjs UI ResourceLoader modules.
- *
- * 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
- */
-
-if ( !defined( 'MEDIAWIKI' ) ) {
-       die( 'Not an entry point.' );
-}
-
-// WARNING: OOjs-UI is NOT TESTED with older browsers and is likely to break
-// if loaded in browsers that don't support ES5
-return call_user_func( function () {
-       $themes = ExtensionRegistry::getInstance()->getAttribute( 'SkinOOUIThemes' );
-       // We only use the theme names for file names, and they are lowercase
-       $themes = array_map( 'strtolower', $themes );
-       $themes['default'] = 'wikimediaui';
-
-       // Helper function to generate paths to files used in 'skinStyles' and 'skinScripts'.
-       $getSkinSpecific = function ( $module, $ext = 'css' ) use ( $themes ) {
-               return array_combine(
-                       array_keys( $themes ),
-                       array_map( function ( $theme ) use ( $module, $ext ) {
-                               $module = $module ? "$module-" : '';
-                               // TODO Allow extensions to specify this path somehow
-                               return "resources/lib/oojs-ui/oojs-ui-$module$theme.$ext";
-                       }, array_values( $themes ) )
-               );
-       };
-
-       $modules = [];
-
-       // Omnibus module.
-       $modules['oojs-ui'] = [
-               'dependencies' => [
-                       'oojs-ui-core',
-                       'oojs-ui-widgets',
-                       'oojs-ui-toolbars',
-                       'oojs-ui-windows',
-               ],
-               'targets' => [ 'desktop', 'mobile' ],
-       ];
-
-       // The core JavaScript library.
-       $modules['oojs-ui-core'] = [
-               'scripts' => [
-                       'resources/lib/oojs-ui/oojs-ui-core.js',
-                       'resources/src/oojs-ui-local.js',
-               ],
-               'skinScripts' => $getSkinSpecific( null, 'js' ),
-               'dependencies' => [
-                       'oojs',
-                       'oojs-ui-core.styles',
-                       'oojs-ui.styles.indicators',
-                       'oojs-ui.styles.textures',
-                       'mediawiki.language',
-               ],
-               'targets' => [ 'desktop', 'mobile' ],
-       ];
-       // This contains only the styles required by core widgets.
-       $modules['oojs-ui-core.styles'] = [
-               'position' => 'top',
-               'styles' => 'resources/src/oojs-ui-local.css', // HACK, see inside the file
-               'skinStyles' => $getSkinSpecific( 'core' ),
-               'targets' => [ 'desktop', 'mobile' ],
-       ];
-
-       // Additional widgets and layouts module.
-       $modules['oojs-ui-widgets'] = [
-               'scripts' => 'resources/lib/oojs-ui/oojs-ui-widgets.js',
-               'skinStyles' => $getSkinSpecific( 'widgets' ),
-               'dependencies' => 'oojs-ui-core',
-               'messages' => [
-                       'ooui-outline-control-move-down',
-                       'ooui-outline-control-move-up',
-                       'ooui-outline-control-remove',
-                       'ooui-selectfile-button-select',
-                       'ooui-selectfile-dragdrop-placeholder',
-                       'ooui-selectfile-not-supported',
-                       'ooui-selectfile-placeholder',
-               ],
-               'targets' => [ 'desktop', 'mobile' ],
-       ];
-       // Toolbar and tools module.
-       $modules['oojs-ui-toolbars'] = [
-               'scripts' => 'resources/lib/oojs-ui/oojs-ui-toolbars.js',
-               'skinStyles' => $getSkinSpecific( 'toolbars' ),
-               'dependencies' => 'oojs-ui-core',
-               'messages' => [
-                       'ooui-toolbar-more',
-                       'ooui-toolgroup-collapse',
-                       'ooui-toolgroup-expand',
-               ],
-               'targets' => [ 'desktop', 'mobile' ],
-       ];
-       // Windows and dialogs module.
-       $modules['oojs-ui-windows'] = [
-               'scripts' => 'resources/lib/oojs-ui/oojs-ui-windows.js',
-               'skinStyles' => $getSkinSpecific( 'windows' ),
-               'dependencies' => 'oojs-ui-core',
-               'messages' => [
-                       'ooui-dialog-message-accept',
-                       'ooui-dialog-message-reject',
-                       'ooui-dialog-process-continue',
-                       'ooui-dialog-process-dismiss',
-                       'ooui-dialog-process-error',
-                       'ooui-dialog-process-retry',
-               ],
-               'targets' => [ 'desktop', 'mobile' ],
-       ];
-
-       $imageSets = [
-               // Comments for greppability
-               'icons', // oojs-ui.styles.icons
-               'indicators', // oojs-ui.styles.indicators
-               'textures', // oojs-ui.styles.textures
-               'icons-accessibility', // oojs-ui.styles.icons-accessibility
-               'icons-alerts', // oojs-ui.styles.icons-alerts
-               'icons-content', // oojs-ui.styles.icons-content
-               'icons-editing-advanced', // oojs-ui.styles.icons-editing-advanced
-               'icons-editing-core', // oojs-ui.styles.icons-editing-core
-               'icons-editing-list', // oojs-ui.styles.icons-editing-list
-               'icons-editing-styling', // oojs-ui.styles.icons-editing-styling
-               'icons-interactions', // oojs-ui.styles.icons-interactions
-               'icons-layout', // oojs-ui.styles.icons-layout
-               'icons-location', // oojs-ui.styles.icons-location
-               'icons-media', // oojs-ui.styles.icons-media
-               'icons-moderation', // oojs-ui.styles.icons-moderation
-               'icons-movement', // oojs-ui.styles.icons-movement
-               'icons-user', // oojs-ui.styles.icons-user
-               'icons-wikimedia', // oojs-ui.styles.icons-wikimedia
-       ];
-       $rootPath = 'resources/lib/oojs-ui/themes';
-
-       foreach ( $imageSets as $name ) {
-               $module = [
-                       'position' => 'top',
-                       'class' => 'ResourceLoaderOOUIImageModule',
-                       'name' => $name,
-                       'rootPath' => $rootPath,
-               ];
-
-               if ( substr( $name, 0, 5 ) === 'icons' ) {
-                       $module['selectorWithoutVariant'] = '.oo-ui-icon-{name}, .mw-ui-icon-{name}:before';
-                       $module['selectorWithVariant'] = '
-                               .oo-ui-image-{variant}.oo-ui-icon-{name}, .mw-ui-icon-{name}-{variant}:before,
-                               /* Hack for Flow, see T110051 */
-                               .mw-ui-hovericon:hover .mw-ui-icon-{name}-{variant}-hover:before,
-                               .mw-ui-hovericon.mw-ui-icon-{name}-{variant}-hover:hover:before';
-               }
-
-               $modules["oojs-ui.styles.$name"] = $module;
-       }
-
-       return $modules;
-} );
index f6a9c54..7e2ee5e 100644 (file)
                // Make sure edit summary does not exceed byte limit
                // TODO: Replace with this when $wgOOUIEditPage is removed:
                // OO.ui.infuse( 'wpSummary' ).$input.byteLimit( 255 );
-               $( 'input#wpSummary, #wpSummary > input' ).byteLimit( 255 );
+               $( '#wpSummary' ).byteLimit( 255 );
+
+               // Show a byte-counter to users with how many bytes are left for their edit summary.
+               // TODO: This looks a bit weird, as there is no unit in the UI, just numbers; showing
+               // 'bytes' confused users in testing, and showing 'chars' would be a lie. See T42035.
+               if ( $( '#editform' ).hasClass( 'mw-editform-ooui' ) ) {
+                       mw.loader.using( 'oojs-ui-core' ).then( function () {
+                               var wpSummary = OO.ui.infuse( $( '#wpSummaryWidget' ) );
+
+                               function updateSummaryLabelCount() {
+                                       wpSummary.setLabel( String( 255 - $.byteLength( wpSummary.getValue() ) ) );
+                               }
+
+                               wpSummary.on( 'change', updateSummaryLabelCount );
+                               // Initialise value
+                               updateSummaryLabelCount();
+                       } );
+               }
 
                // Restore the edit box scroll state following a preview operation,
                // and set up a form submission handler to remember this state.
index 8287264..093a26d 100644 (file)
@@ -25,7 +25,8 @@
        font-size: 0.9em;
 }
 
-#wpSummary {
+.mw-editform-ooui #wpSummaryWidget,
+.mw-editform-legacy #wpSummary {
        display: block;
        width: 80%;
        margin-bottom: 1em;
@@ -75,7 +76,7 @@
        line-height: 1.26;
 }
 
-.mw-editform-ooui #wpSummary {
+.mw-editform-ooui #wpSummaryWidget {
        max-width: none;
 }
 
index 616608e..835cec8 100644 (file)
                        icon: 'highlight',
                        indicator: 'down',
                        popup: {
-                               // TODO: There is a bug in non-anchored popups in
-                               // OOUI, so we set this popup to "anchored" until
-                               // the bug is fixed.
-                               // See: https://phabricator.wikimedia.org/T159906
-                               anchor: true,
+                               anchor: false,
                                padded: true,
                                align: 'backwards',
                                horizontalPosition: 'end',
index 8c021d0..3b5e7d9 100644 (file)
@@ -51,7 +51,7 @@
                        popup: {
                                width: 300,
                                anchor: false,
-                               align: 'forwards',
+                               align: 'backwards',
                                $autoCloseIgnore: this.$overlay,
                                $content: this.menu.$element
                        }
index da8bdcd..bf26f50 100644 (file)
                                        nooptional: true
                                } );
                                button = new OO.ui.ButtonWidget( {
-                                       icon: 'remove',
+                                       icon: 'trash',
                                        flags: 'destructive'
                                } );
                                layout = new OO.ui.ActionFieldLayout(
index 3e4c5e2..e42ab25 100644 (file)
                        this.clearButton = new OO.ui.ButtonWidget( {
                                classes: [ 'mw-widgets-datetime-dateTimeInputWidget-field', 'mw-widgets-datetime-dateTimeInputWidget-clearButton' ],
                                framed: false,
-                               icon: 'remove',
+                               icon: 'trash',
                                disabled: disabled
                        } ).connect( this, {
                                click: 'onClearClick'
index 9c7064f..c0788a4 100644 (file)
 .hlist li ol > li:first-child:before {
        content: '(' counter( list-item ) ' ';
 }
+
+/* Support hlist styles inside *boxes */
+.errorbox .hlist,
+.successbox .hlist,
+.warningbox .hlist {
+       margin-left: 0;
+}
+
+.errorbox .hlist li:after,
+.successbox .hlist li:after,
+.warningbox .hlist li:after {
+       margin-right: 3px;
+}