Merge "Add new core tags"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 30 Nov 2017 18:43:28 +0000 (18:43 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 30 Nov 2017 18:43:28 +0000 (18:43 +0000)
1  2 
includes/DefaultSettings.php
languages/i18n/en.json
languages/i18n/qqq.json

@@@ -2554,8 -2554,6 +2554,8 @@@ $wgGitInfoCacheDirectory = false
   * It should be appended in the query string of static CSS and JS includes,
   * to ensure that client-side caches do not keep obsolete copies of global
   * styles.
 + *
 + * @deprecated since 1.31
   */
  $wgStyleVersion = '303';
  
@@@ -4852,7 -4850,6 +4852,7 @@@ $wgReservedUsernames = 
        'msg:double-redirect-fixer', // Automatic double redirect fix
        'msg:usermessage-editor', // Default user for leaving user messages
        'msg:proxyblocker', // For $wgProxyList and Special:Blockme (removed in 1.22)
 +      'msg:sorbs', // For $wgEnableDnsBlacklist etc.
        'msg:spambot_username', // Used by cleanupSpam.php
        'msg:autochange-username', // Used by anon category RC entries (parser functions, Lua & purges)
  ];
@@@ -4884,6 -4881,7 +4884,6 @@@ $wgDefaultUserOptions = 
        'hidepatrolled' => 0,
        'hidecategorization' => 1,
        'imagesize' => 2,
 -      'math' => 1,
        'minordefault' => 0,
        'newpageshidepatrolled' => 0,
        'nickname' => '',
@@@ -6963,6 -6961,29 +6963,29 @@@ $wgAllowCategorizedRecentChanges = fals
   */
  $wgUseTagFilter = true;
  
+ /**
+  * List of core tags to enable. Available tags are:
+  * - 'mw-contentmodelchange': Edit changes content model of a page
+  * - 'mw-new-redirect': Edit makes new redirect page (new page or by changing content page)
+  * - 'mw-removed-redirect': Edit changes an existing redirect into a non-redirect
+  * - 'mw-changed-redirect-target': Edit changes redirect target
+  * - 'mw-blank': Edit completely blanks the page
+  * - 'mw-replace': Edit removes more than 90% of the content
+  * - 'mw-rollback': Edit is a rollback, made through the rollback link or rollback API
+  *
+  * @var array
+  * @since 1.31
+  */
+ $wgSoftwareTags = [
+       'mw-contentmodelchange' => true,
+       'mw-new-redirect' => true,
+       'mw-removed-redirect' => true,
+       'mw-changed-redirect-target' => true,
+       'mw-blank' => true,
+       'mw-replace' => true,
+       'mw-rollback' => true
+ ];
  /**
   * If set to an integer, pages that are watched by this many users or more
   * will not require the unwatchedpages permission to view the number of
@@@ -7430,7 -7451,6 +7453,7 @@@ $wgJobClasses = 
        'refreshLinksDynamic' => 'RefreshLinksJob',
        'activityUpdateJob' => 'ActivityUpdateJob',
        'categoryMembershipChange' => 'CategoryMembershipChangeJob',
 +      'clearUserWatchlist' => 'ClearUserWatchlistJob',
        'cdnPurge' => 'CdnPurgeJob',
        'enqueue' => 'EnqueueJob', // local queue for multi-DC setups
        'null' => 'NullJob'
@@@ -8273,22 -8293,6 +8296,22 @@@ $wgPhpCli = '/usr/bin/php'
   */
  $wgShellLocale = 'C.UTF-8';
  
 +/**
 + * Method to use to restrict shell commands
 + *
 + * Supported options:
 + * - 'autodetect': Autodetect if any restriction methods are available
 + * - 'firejail': Use firejail <https://firejail.wordpress.com/>
 + * - false: Don't use any restrictions
 + *
 + * @note If using firejail with MediaWiki running in a home directory different
 + *  from the webserver user, firejail 0.9.44+ is required.
 + *
 + * @since 1.31
 + * @var string|bool
 + */
 +$wgShellRestrictionMethod = false;
 +
  /** @} */ # End shell }
  
  /************************************************************************//**
diff --combined languages/i18n/en.json
        "prefs-watchlist-edits": "Maximum number of changes to show in watchlist:",
        "prefs-watchlist-edits-max": "Maximum number: 1000",
        "prefs-watchlist-token": "Watchlist token:",
 +      "prefs-watchlist-managetokens": "Manage tokens",
        "prefs-misc": "Misc",
        "prefs-resetpass": "Change password",
        "prefs-changeemail": "Change or remove email address",
        "recentchangesdays-max": "Maximum $1 {{PLURAL:$1|day|days}}",
        "recentchangescount": "Number of edits to show by default:",
        "prefs-help-recentchangescount": "This includes recent changes, page histories, and logs.",
 -      "prefs-help-watchlist-token2": "This is the secret key to the web feed of your watchlist.\nAnyone who knows it will be able to read your watchlist, so do not share it.\nIf you need to, [[Special:ResetTokens|you can reset it]].",
 +      "prefs-help-tokenmanagement": "You can see and reset the secret key for your account that can access the Web feed of your watchlist. Anyone who knows the key will be able to read your watchlist, so do not share it.",
        "savedprefs": "Your preferences have been saved.",
        "savedrights": "The user groups of {{GENDER:$1|$1}} have been saved.",
        "timezonelegend": "Time zone:",
        "import-mapping-namespace": "Import to a namespace:",
        "import-mapping-subpage": "Import as subpages of the following page:",
        "import-upload-filename": "Filename:",
 +      "import-upload-username-prefix": "Interwiki prefix:",
 +      "import-assign-known-users": "Assign edits to local users where the named user exists locally",
        "import-comment": "Comment:",
        "importtext": "Please export the file from the source wiki using the [[Special:Export|export utility]].\nSave it to your computer and upload it here.",
        "importstart": "Importing pages...",
        "imported-log-entries": "Imported $1 {{PLURAL:$1|log entry|log entries}}.",
        "importfailed": "Import failed: <nowiki>$1</nowiki>",
        "importunknownsource": "Unknown import source type",
 +      "importnoprefix": "No interwiki prefix was supplied",
        "importcantopen": "Could not open import file",
        "importbadinterwiki": "Bad interwiki link",
        "importsuccess": "Import finished!",
        "autosumm-blank": "Blanked the page",
        "autosumm-replace": "Replaced content with \"$1\"",
        "autoredircomment": "Redirected page to [[$1]]",
+       "autosumm-removed-redirect": "Removed redirect to [[$1]]",
+       "autosumm-changed-redirect-target": "Changed redirect target from [[$1]] to [[$2]]",
        "autosumm-new": "Created page with \"$1\"",
        "autosumm-newblank": "Created blank page",
        "autoblock_whitelist": "",
        "tag-list-wrapper": "([[Special:Tags|{{PLURAL:$1|Tag|Tags}}]]: $2)",
        "tag-mw-contentmodelchange": "content model change",
        "tag-mw-contentmodelchange-description": "Edits that [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:ChangeContentModel change the content model] of a page",
+       "tag-mw-new-redirect": "New redirect",
+       "tag-mw-new-redirect-description": "Edits that create a new redirect or change a page to a redirect",
+       "tag-mw-removed-redirect": "Removed redirect",
+       "tag-mw-removed-redirect-description": "Edits that change an existing redirect to a non-redirect",
+       "tag-mw-changed-redirect-target": "Redirect target changed",
+       "tag-mw-changed-redirect-target-description": "Edits that change the target of a redirect",
+       "tag-mw-blank": "Blanking",
+       "tag-mw-blank-description": "Edits that blank a page",
+       "tag-mw-replace": "Replaced",
+       "tag-mw-replace-description": "Edits that remove more than 90% of the content of a page",
+       "tag-mw-rollback": "Rollback",
+       "tag-mw-rollback-description": "Edits that roll back previous edits using the rollback link",
        "tags-title": "Tags",
        "tags-intro": "This page lists the tags that the software may mark an edit with, and their meaning.",
        "tags-tag": "Tag name",
diff --combined languages/i18n/qqq.json
                        "Mainframe98",
                        "Pginer",
                        "Wladek92",
 -                      "Gombang"
 +                      "Gombang",
 +                      "Trizek (WMF)"
                ]
        },
        "sidebar": "{{notranslate}}",
        "prefs-watchlist-edits": "Used in [[Special:Preferences]], tab \"Watchlist\".",
        "prefs-watchlist-edits-max": "Shown as hint in [[Special:Preferences]], tab \"Watchlist\"",
        "prefs-watchlist-token": "Used in [[Special:Preferences]], tab Watchlist.",
 +      "prefs-watchlist-managetokens": "Label for the button to see and reset the user's private tokens",
        "prefs-misc": "Tab used on the [[Special:Preferences|user preferences]] special page.",
        "prefs-resetpass": "Button on user data tab in user preferences. When you click the button you go to the special page [[Special:ResetPass]].\n\n{{Identical|Change password}}",
        "prefs-changeemail": "Link on [[Special:Preferences]] to [[Special:ChangeEmail]]. [[Special:ChangeEmail]] also allows removing email address. \n\nSee also:\n* {{msg-mw|prefs-help-email-required|help}}\n* {{msg-mw|prefs-help-email|help}}\n* {{msg-mw|prefs-help-email-others|help}}\n* {{msg-mw|prefs-setemail|link title}}",
        "recentchangesdays-max": "Shown as hint in [[Special:Preferences]], tab \"Recent changes\". Parameters:\n* $1 - number of days\nSee also:\n* {{msg-mw|Prefs-watchlist-days-max}}",
        "recentchangescount": "Used in [[Special:Preferences]], tab \"Recent changes\".",
        "prefs-help-recentchangescount": "Used in [[Special:Preferences]], tab \"Recent changes\".",
 -      "prefs-help-watchlist-token2": "Used in [[Special:Preferences]], tab Watchlist. (Formerly in {{msg-mw|prefs-help-watchlist-token}}.)",
 +      "prefs-help-tokenmanagement": "Used in [[Special:Preferences]], Watchlist tab.",
        "savedprefs": "This message appears after saving changes to your user preferences.",
        "savedrights": "This message appears after saving the user groups on [[Special:UserRights]].\n* $1 - The user name of the user which groups was saved.",
        "timezonelegend": "{{Identical|Time zone}}",
        "rcfilters-filter-user-experience-level-unregistered-label": "Label for the filter for showing edits made by anonymous editors.",
        "rcfilters-filter-user-experience-level-unregistered-description": "Description for the filter for showing edits made by anonymous editors.",
        "rcfilters-filter-user-experience-level-newcomer-label": "Label for the filter for showing edits made by new editors.",
 -      "rcfilters-filter-user-experience-level-newcomer-description": "Description for the filter for showing edits made by new editors.",
 +      "rcfilters-filter-user-experience-level-newcomer-description": "Description for the filter for showing edits made by new editors. The user has created the account less than 4 days ago (4th day included) ''or'' has made less than 10 edits (10 included).",
        "rcfilters-filter-user-experience-level-learner-label": "Label for the filter for showing edits made by learning editors.",
        "rcfilters-filter-user-experience-level-learner-description": "Description for the filter for showing edits made by learning editors.",
        "rcfilters-filter-user-experience-level-experienced-label": "Label for the filter for showing edits made by experienced editors.",
        "import-mapping-namespace": "Used as label for the second of three radio buttons in Import form on [[Special:Import]]. The radio button is followed by a drop-down list from which the user can select a namespace.\n\nSee also:\n* {{msg-mw|Import-mapping-default}}\n* {{msg-mw|Import-mapping-subpage}}",
        "import-mapping-subpage": "Used as label for the third of three radio buttons in Import form on [[Special:Import]]. The radio button is followed by a text box in which the user can type a page name. The imported pages will be created as subpages of the entered page name.\n\nSee also:\n* {{msg-mw|Import-mapping-default}}\n* {{msg-mw|Import-mapping-namespace}}",
        "import-upload-filename": "Used on [[Special:Import]] as label for upload of an XML file containing the pages to import.\n{{Identical|Filename}}",
 +      "import-upload-username-prefix": "Used as label for input box in [[Special:Import]].",
 +      "import-assign-known-users": "Use as label for checkbox in [[Special:Import]].",
        "import-comment": "Used as label for input box in [[Special:Import]].\n\nSee also:\n* {{msg-mw|Import-interwiki-history}}\n* {{msg-mw|Import-interwiki-templates}}\n* {{msg-mw|Import-interwiki-namespace}}\n* {{msg-mw|Import-interwiki-rootpage}}\n* {{msg-mw|Import-interwiki-submit}}\n{{Identical|Comment}}",
        "importtext": "Used in the Import form on [[Special:Import]].",
        "importstart": "Used in [[Special:Import]].\n\nSee also:\n* {{msg-mw|Importsuccess}}\n* {{msg-mw|Importfailed}}",
        "imported-log-entries": "Used as success message. Parameters:\n* $1 - number of log items\nSee also:\n* {{msg-mw|Importnopages}} - fatal error message",
        "importfailed": "Used as error message in [[Special:Import]]. Parameters:\n* $1 - import source\nSee also:\n* {{msg-mw|Importstart}}\n* {{msg-mw|Importsuccess}}",
        "importunknownsource": "Used as error message in [[Special:Import]].\n\nSee also:\n* {{msg-mw|import-token-mismatch}}\n* {{msg-mw|import-invalid-interwiki}}\n* {{msg-mw|Importunknownsource}}",
 +      "importnoprefix": "Used as error message in [[Special:Import]]. Usually this error means that import via upload was attempted and the {{msg-mw|import-upload-username-prefix}} field was left empty.",
        "importcantopen": "Used as error message when importing from file or from URL.",
        "importbadinterwiki": "Used as error message when importing from interwiki.\n\nSee also:\n* {{msg-mw|Import-noarticle}}\n* {{msg-mw|Importbadinterwiki}}",
        "importsuccess": "Used in [[Special:Import]].\n\nSee also:\n* {{msg-mw|Importstart}}\n* {{msg-mw|Importfailed}}",
        "variantname-kk-latn": "{{optional}}\nVariant Option for wikis with variants conversion enabled.",
        "variantname-kk-arab": "{{optional}}\nVariant Option for wikis with variants conversion enabled.",
        "variantname-kk": "{{optional}}\nVariant Option for wikis with variants conversion enabled.",
 -      "variantname-crh-cyrl": "{{optional}}\nVariant Option for wikis with variants conversion enabled.",
 -      "variantname-crh-latn": "{{optional}}\nVariant Option for wikis with variants conversion enabled.",
 -      "variantname-crh": "{{optional}}\nVariant Option for wikis with variants conversion enabled.",
        "variantname-ku-arab": "{{optional}}\nVariant Option for wikis with variants conversion enabled.",
        "variantname-ku-latn": "{{optional}}\nVariant Option for wikis with variants conversion enabled.",
        "variantname-ku": "{{optional}}\nVariant Option for wikis with variants conversion enabled.",
        "variantname-uz": "{{optional}}",
        "variantname-uz-latn": "{{optional}}",
        "variantname-uz-cyrl": "{{optional}}",
 +      "variantname-crh": "{{optional}}\nVariant Option for wikis with variants conversion enabled.",
 +      "variantname-crh-latn": "{{optional}}\nVariant Option for wikis with variants conversion enabled.",
 +      "variantname-crh-cyrl": "{{optional}}\nVariant Option for wikis with variants conversion enabled.",
        "metadata": "The title of a section on an image description page, with information and data about the image. For example of message in use see [[commons:File:Titan-crystal_bar.JPG|Commons]].\n{{Identical|Metadata}}",
        "metadata-help": "This message is followed by a table with metadata.",
        "metadata-expand": "On an image description page, there is mostly a table containing data (metadata) about the image. The most important data are shown, but if you click on this link, you can see more data and information. For the link to hide back the less important data, see {{msg-mw|Metadata-collapse}}.",
        "autosumm-blank": "The auto summary when blanking the whole page. This is not the same as deleting the page.",
        "autosumm-replace": "The auto summary when a user removes a lot of characters in the page.\n\nParameters:\n* $1 - truncated text",
        "autoredircomment": "The auto summary when making a redirect. Parameters:\n* $1 - the page where it redirects to\n* $2 - (Optional) the first X number of characters of the redirect ($2 is usually only used when end users customize the message)\n{{Identical|Redirect}}",
+       "autosumm-removed-redirect": "The auto summary when making a redirect. Parameters:\n* $1 - the page where it redirects to\n* $2 - (Optional) the first X number of characters of the redirect ($2 is usually only used when end users customize the message)\n{{Identical|Redirect}}",
+       "autosumm-changed-redirect-target": "The auto summary when making a redirect. Parameters:\n* $1 - the page where it redirects to\n* $2 - (Optional) the first X number of characters of the redirect ($2 is usually only used when end users customize the message)\n{{Identical|Redirect}}",
        "autosumm-new": "The auto summary when creating a new page. $1 are the first X number of characters of the new page.",
        "autosumm-newblank": "The automatic edit summary when creating a blank page. This is not the same as blanking a page.",
        "autoblock_whitelist": "{{notranslate}}",
        "tag-list-wrapper": "Wrapper for the list of tags shown on recent changes, watchlists, history pages and diffs.\n\nParameters:\n* $1 - number of distinct tags for given edit\n* $2 - comma-separated list of tags for given edit",
        "tag-mw-contentmodelchange": "Change tag for edits that change the content model of a page",
        "tag-mw-contentmodelchange-description": "Description for \"content model change\" change tag",
+       "tag-mw-new-redirect": "Change tag for edits that make the page a redirect (either redirect creation or editing an existing page)",
+       "tag-mw-new-redirect-description": "Description for \"New redirect\" change tag",
+       "tag-mw-removed-redirect": "Change tag for edits that change an existing redirect into a non-redirect",
+       "tag-mw-removed-redirect-description": "Description for \"Removed redirect\" change tag",
+       "tag-mw-changed-redirect-target": "Change tag for edits that change the target of a redirect",
+       "tag-mw-changed-redirect-target-description": "Description for \"Redirect target changed\" change tag",
+       "tag-mw-blank": "Change tag for edits that blank a page with existing content",
+       "tag-mw-blank-description": "Description for \"blank\" change tag",
+       "tag-mw-replace": "Change tag for edits removing more than 90% of the content of a page",
+       "tag-mw-replace-description": "Description for \"replace\" change tag",
+       "tag-mw-rollback": "Change tag for rolling back an edit",
+       "tag-mw-rollback-description": "Description for \"rollback\" change tag",
        "tags-title": "The title of [[Special:Tags]].\n{{Identical|Tag}}",
        "tags-intro": "Explanation on top of [[Special:Tags]]. For more information on tags see [[mw:Manual:Tags|MediaWiki]].",
        "tags-tag": "Caption of a column in [[Special:Tags]]. For more information on tags see [[mw:Manual:Tags|MediaWiki]].",