Merge "Implement listing for tracking categories"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sun, 30 Mar 2014 22:44:08 +0000 (22:44 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 30 Mar 2014 22:44:08 +0000 (22:44 +0000)
1  2 
includes/AutoLoader.php
includes/DefaultSettings.php
languages/messages/MessagesEn.php
languages/messages/MessagesQqq.php

diff --combined includes/AutoLoader.php
@@@ -1023,6 -1023,7 +1023,7 @@@ $wgAutoloadLocalClasses = array
        'SpecialSpecialpages' => 'includes/specials/SpecialSpecialpages.php',
        'SpecialStatistics' => 'includes/specials/SpecialStatistics.php',
        'SpecialTags' => 'includes/specials/SpecialTags.php',
+       'SpecialTrackingCategories' => 'includes/specials/SpecialTrackingCategories.php',
        'SpecialUnblock' => 'includes/specials/SpecialUnblock.php',
        'SpecialUndelete' => 'includes/specials/SpecialUndelete.php',
        'SpecialUnlockdb' => 'includes/specials/SpecialUnlockdb.php',
        'UserloginTemplate' => 'includes/templates/Userlogin.php',
        'UsercreateTemplate' => 'includes/templates/Usercreate.php',
  
 +      # includes/title
 +      'PageLinkRenderer' => 'includes/title/PageLinkRenderer.php',
 +      'TitleFormatter' => 'includes/title/TitleFormatter.php',
 +      'TitleParser' => 'includes/title/TitleParser.php',
 +      'TitleValue' => 'includes/title/TitleValue.php',
 +      'MalformedTitleException' => 'includes/title/MalformedTitleException.php',
 +      'MediaWikiPageLinkRenderer' => 'includes/title/MediaWikiPageLinkRenderer.php',
 +      'MediaWikiTitleCodec' => 'includes/title/MediaWikiTitleCodec.php',
 +
        # includes/upload
        'UploadBase' => 'includes/upload/UploadBase.php',
        'UploadFromFile' => 'includes/upload/UploadFromFile.php',
@@@ -3607,6 -3607,25 +3607,25 @@@ $wgNamespacesWithSubpages = array
        NS_CATEGORY_TALK => true
  );
  
+ /**
+   * Array holding default tracking category names.
+   *
+   * Array contains the system messages for each tracking category.
+   * Tracking categories allow pages with certain characteristics to be tracked.
+   * It works by adding any such page to a category automatically.
+   *
+   * @since 1.23
+   */
+ $wgTrackingCategories = array(
+       'index-category',
+       'noindex-category',
+       'expensive-parserfunction-category',
+       'post-expand-template-argument-category',
+       'post-expand-template-inclusion-category',
+       'hidden-category-category',
+       'broken-file-category',
+ );
  /**
   * Array of namespaces which can be deemed to contain valid "content", as far
   * as the site statistics are concerned. Useful if additional namespaces also
@@@ -5846,6 -5865,11 +5865,6 @@@ $wgRightsText = null
   */
  $wgRightsIcon = null;
  
 -/**
 - * Set to an array of metadata terms. Else they will be loaded based on $wgRightsUrl
 - */
 -$wgLicenseTerms = false;
 -
  /**
   * Set this to some HTML to override the rights icon with an arbitrary logo
   * @deprecated since 1.18 Use $wgFooterIcons['copyright']['copyright']
@@@ -467,6 -467,7 +467,7 @@@ $specialPageAliases = array
        'Specialpages'              => array( 'SpecialPages' ),
        'Statistics'                => array( 'Statistics' ),
        'Tags'                      => array( 'Tags' ),
+       'TrackingCategories'        => array( 'TrackingCategories' ),
        'Unblock'                   => array( 'Unblock' ),
        'Uncategorizedcategories'   => array( 'UncategorizedCategories' ),
        'Uncategorizedimages'       => array( 'UncategorizedFiles', 'UncategorizedImages' ),
@@@ -1464,7 -1465,7 +1465,7 @@@ or [{{fullurl:{{FULLPAGENAME}}|action=e
  'noarticletext-nopermission'               => 'There is currently no text in this page.
  You can [[Special:Search/{{PAGENAME}}|search for this page title]] in other pages, or <span class="plainlinks">[{{fullurl:{{#Special:Log}}|page={{FULLPAGENAMEE}}}} search the related logs]</span>, but you do not have permission to create this page.',
  'noarticletextanon'                        => '{{int:noarticletext}}', # do not translate or duplicate this message to other languages
 -'missing-revision'                         => 'The revision #$1 of the page named "{{PAGENAME}}" does not exist.
 +'missing-revision'                         => 'The revision #$1 of the page named "{{FULLPAGENAME}}" does not exist.
  
  This is usually caused by following an outdated history link to a page that has been deleted.
  Details can be found in the [{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} deletion log].',
@@@ -2947,6 -2948,22 +2948,22 @@@ There may be [[{{MediaWiki:Listgrouprig
  'listgrouprights-addgroup-self-all'    => 'Add all groups to own account',
  'listgrouprights-removegroup-self-all' => 'Remove all groups from own account',
  
+ # Tracking categories page
+ 'trackingcategories'                           => 'Tracking categories',
+ 'trackingcategories-summary'                   => 'This page lists tracking categories which are automatically populated by the MediaWiki software. Their names can be changed by altering the relevant system messages in the {{ns:8}} namespace.',
+ 'trackingcategories-msg'                       => 'Tracking Category',
+ 'trackingcategories-name'                      => 'Message name',
+ 'trackingcategories-desc'                      => 'Category inclusion criteria',
+ 'noindex-category-desc'                        => 'The page has a <nowiki>__NOINDEX__</nowiki> magic word on it (and is in a namespace where that flag is allowed), and hence is not indexed by robots.',
+ 'index-category-desc'                          => 'The page has a <nowiki>__INDEX__</nowiki> on it (and is in a namespace where that flag is allowed), and hence is indexed by robots where it normally wouldn\'t be.',
+ 'post-expand-template-inclusion-category-desc' => 'After expanding all the templates, the page size is bigger than $wgMaxArticleSize, so some templates weren\'t expanded.',
+ 'post-expand-template-argument-category-desc'  => 'After expanding a template argument (something in triple braces, like {{{Foo}}}), the page is bigger than $wgMaxArticleSize.',
+ 'expensive-parserfunction-category-desc'       => 'Too many expensive parser functions (like #ifexists) included on a page. See [https://www.mediawiki.org/wiki/Manual:$wgExpensiveParserFunctionLimit Manual:$wgExpensiveParserFunctionLimit].',
+ 'broken-file-category-desc'                    => 'Category added if the page contains a broken file link (a link to embed a file when the file does not exist).',
+ 'hidden-category-category-desc'                => 'This is a category with <nowiki>__HIDDENCAT__</nowiki> on it, which prevents it from showing up in the category links box on pages, by default.',
+ 'trackingcategories-nodesc'                    => 'Description not available',
+ 'trackingcategories-disabled'                     => 'Category is disabled',
  # Email user
  'mailnologin'              => 'No send address',
  'mailnologintext'          => 'You must be [[Special:UserLogin|logged in]] and have a valid email address in your [[Special:Preferences|preferences]] to send email to other users.',
@@@ -78,7 -78,6 +78,7 @@@
   * @author Liuxinyu970226
   * @author Lloffiwr
   * @author MF-Warburg
 + * @author MIKHEIL
   * @author Malafaya
   * @author MarkvA
   * @author Matma Rex
@@@ -363,15 -362,13 +363,15 @@@ One of the set: {{msg-mw|Jan}}, {{msg-m
  'february-date' => 'A date in the Gregorian month of February. $1 is the numerical date, for example "23".',
  'march-date' => 'A date in the Gregorian month of March. $1 is the numerical date, for example "23".',
  'april-date' => 'A date in the Gregorian month of April. $1 is the numerical date, for example "23".',
 -'may-date' => 'A date in the Gregorian month of May. $1 is the numerical date, for example "23". The month name is not abbreviated.',
 +'may-date' => 'A date in the Gregorian month of May. $1 is the numerical date, for example "23". The month name is not abbreviated.
 +{{Identical|May}}',
  'june-date' => 'A date in the Gregorian month of June. $1 is the numerical date, for example "23".',
  'july-date' => 'A date in the Gregorian month of July. $1 is the numerical date, for example "23".',
  'august-date' => 'A date in the Gregorian month of August. $1 is the numerical date, for example "23".',
  'september-date' => 'A date in the Gregorian month of September. $1 is the numerical date, for example "23".',
  'october-date' => 'A date in the Gregorian month of October. $1 is the numerical date, for example "23".',
 -'november-date' => 'A date in the Gregorian month of November. $1 is the numerical date, for example "23".',
 +'november-date' => 'A date in the Gregorian month of November. $1 is the numerical date, for example "23".
 +{{Identical|November}}',
  'december-date' => 'A date in the Gregorian month of December. $1 is the numerical date, for example "23".',
  
  # Categories related messages
@@@ -2482,13 -2479,11 +2482,13 @@@ Parameters
  'revdelete-show-file-submit' => 'Reply to {{msg-mw|Revdelete-show-file-confirm}}.
  
  {{Identical|Yes}}',
 +'revdelete-selected-text' => '{{Related|Revdelete-selected}}',
 +'revdelete-selected-file' => '{{Related|Revdelete-selected}}',
  'logdelete-selected' => '{{RevisionDelete}}
  Parameters:
  * $1 - number of log events
 -See also:
 -* {{msg-mw|Revdelete-selected}}',
 +* $2 - (Unused) localized name of Special:Log, maybe with type as subpage
 +{{Related|Revdelete-selected}}',
  'revdelete-text-text' => '{{RevisionDelete}}
  This is the introduction explaining the feature.
  
@@@ -2539,20 -2534,14 +2539,20 @@@ See also
  * {{msg-mw|Revdelete-otherreason|label for input box}}
  * {{msg-mw|Revdelete-submit|submit button}}',
  'revdelete-hide-text' => 'Option for oversight. This message is a part of the [[mw:RevisionDelete|RevisionDelete]] feature.
 -[[File:RevDelete Special-RevisionDelete (r60428).png|frame|center|Screenshot of the interface]]',
 -'revdelete-hide-image' => 'Option for <del>oversight</del> [[:mw:RevisionDelete|RevisionDelete]] feature.',
 -'revdelete-hide-name' => 'Option for oversight',
 +[[File:RevDelete Special-RevisionDelete (r60428).png|frame|center|Screenshot of the interface]]
 +{{Related|Revdelete-hide}}',
 +'revdelete-hide-image' => 'Option for <del>oversight</del> [[:mw:RevisionDelete|RevisionDelete]] feature.
 +{{Related|Revdelete-hide}}',
 +'revdelete-hide-name' => 'Option for oversight.
 +{{Related|Revdelete-hide}}',
  'revdelete-hide-comment' => 'Option for oversight. {{RevisionDelete}}
 -[[File:RevDelete Special-RevisionDelete (r60428).png|frame|center|Screenshot of the interface]]',
 +[[File:RevDelete Special-RevisionDelete (r60428).png|frame|center|Screenshot of the interface]]
 +{{Related|Revdelete-hide}}',
  'revdelete-hide-user' => 'Option for oversight. {{RevisionDelete}}
 -[[File:RevDelete Special-RevisionDelete (r60428).png|frame|center|Screenshot of the interface]]',
 -'revdelete-hide-restricted' => 'Option for oversight.',
 +[[File:RevDelete Special-RevisionDelete (r60428).png|frame|center|Screenshot of the interface]]
 +{{Related|Revdelete-hide}}',
 +'revdelete-hide-restricted' => 'Option for oversight.
 +{{Related|Revdelete-hide}}',
  'revdelete-radio-same' => 'This message is a part of the [[mw:RevisionDelete|RevisionDelete]] feature. The message is a caption for a column of radioboxes inside a box with {{msg-mw|Revdelete-legend}} as a title.
  [[File:RevDelete Special-RevisionDelete (r60428).png|frame|center|Screenshot of the interface]]
  There are three radio buttons in each row, and the captions above each column read:
@@@ -5238,7 -5227,6 +5238,7 @@@ See also
  * {{msg-mw|Booksources-text|text}}",
  'booksources-search-legend' => 'Box heading on [[Special:BookSources|book sources]] special page. The box is for searching for places where a particular book can be bought or viewed.',
  'booksources-isbn' => '{{optional}}
 +This is a label that appears before a text input field on the Special:BookSources page.
  {{Identical|ISBN}}',
  'booksources-go' => 'Name of button in [[Special:BookSources]]
  
@@@ -8305,7 -8293,7 +8305,7 @@@ See example: [{{canonicalurl:Main page|
  * $3 - the number of subpages of the page that are not redirects',
  'pageinfo-firstuser' => 'The user who created the page.',
  'pageinfo-firsttime' => 'The date and time the page was created.',
 -'pageinfo-lastuser' => 'The last user who edited the page.',
 +'pageinfo-lastuser' => 'ბოლო მომხმარებელი, რომელმაც ეს გვერდი დაარედაქტირა.',
  'pageinfo-lasttime' => 'The date and time the page was last edited.',
  'pageinfo-edits' => 'Used as label in info page. See [{{canonicalurl:Support|action=info}} example].
  
@@@ -9829,7 -9817,9 +9829,7 @@@ Most languages use a space, but some As
  'percent' => '{{optional}}',
  'parentheses' => '{{optional}}',
  'brackets' => '{{Optional}}',
 -'quotation-marks' => '{{optional}}
 -
 -Quotation marks, for quoting, sometimes titles etc., depending on the language.
 +'quotation-marks' => 'Quotation marks, for quoting, sometimes titles etc., depending on the language.
  
  See: [[w:Non-English usage of quotation marks|Non-English usage of quotation marks on Wikipedia]].
  
  'expand_templates_generate_rawhtml' => 'Used as checkbox label.',
  'expand_templates_preview' => '{{Identical|Preview}}',
  
+ # Tracking categories special page
+ 'trackingcategories' => 'Special:TrackingCategories page implementing list of Tracking categories [[mw:Help:Tracking categories|tracking category]]',
+ 'trackingcategories-summary' => 'Description for [[Special:TrackingCategories]] page [[mw:Help:Tracking categories|tracking category]]',
+ 'trackingcategories-msg' => 'Header for the message column of the table on [[Special:TrackingCategories]]. This column lists the mediawiki message that controls the tracking category in question.',
+ 'trackingcategories-name' => 'Header for the message column of the table on [[Special:TrackingCategories]]. This column lists the name of the tracking category in the content language.',
+ 'trackingcategories-desc' => 'Header for the message column of the table on [[Special:TrackingCategories]]. This column lists the inclusion criteria for the category.',
+ 'noindex-category-desc' => 'No-index category-description. Shown on [[Special:TrackingCategories]]',
+ 'index-category-desc' => 'Index category-description. Shown on [[Special:TrackingCategories]]',
+ 'post-expand-template-inclusion-category-desc' => 'Post expand template inclusion category description. Shown on [[Special:TrackingCategories]]',
+ 'post-expand-template-argument-category-desc' => 'Post expand template argument category description. Shown on [[Special:TrackingCategories]]',
+ 'expensive-parserfunction-category-desc' => 'Expensive parserfunction category description. Shown on [[Special:TrackingCategories]]',
+ 'broken-file-category-desc' => 'Broken file category description. Shown on [[Special:TrackingCategories]]',
+ 'hidden-category-category-desc' => 'Hidden-category category description. Shown on [[Special:TrackingCategories]]',
+ 'trackingcategories-nodesc' => 'Tracking category description not available message',
+ 'trackcategories-disabled' => 'Tracking category disabled message',
  );