Index: trunk/phase3/maintenance/language/messages.inc |
— | — | @@ -1628,6 +1628,8 @@ |
1629 | 1629 | 'wantedpages-badtitle', |
1630 | 1630 | 'wantedfiles', |
1631 | 1631 | 'wantedfiles-summary', |
| 1632 | + 'wantedfiletext-cat', |
| 1633 | + 'wantedfiletext-nocat', |
1632 | 1634 | 'wantedtemplates', |
1633 | 1635 | 'wantedtemplates-summary', |
1634 | 1636 | 'mostlinked', |
Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -110,6 +110,7 @@ |
111 | 111 | * Added $wgSend404Code, true by default, which can be set to false to send a |
112 | 112 | 200 status code instead of 404 for nonexistent articles. |
113 | 113 | * (bug 23427) Introduced {{PAGEID}} variable to expose page.page_id |
| 114 | +* (bug 33447) Link to the broken image tracking category from Special:Wantedfiles |
114 | 115 | |
115 | 116 | === Bug fixes in 1.19 === |
116 | 117 | * $wgUploadNavigationUrl should be used for file redlinks if. |
Index: trunk/phase3/includes/specials/SpecialWantedfiles.php |
— | — | @@ -35,6 +35,32 @@ |
36 | 36 | parent::__construct( $name ); |
37 | 37 | } |
38 | 38 | |
| 39 | + function getPageHeader() { |
| 40 | + # Specifically setting to use "Wanted Files" (NS_MAIN) as title, so as to get what |
| 41 | + # category would be used on main namespace pages, for those tricky wikipedia |
| 42 | + # admins who like to do {{#ifeq:{{NAMESPACE}}|foo|bar|....}}. |
| 43 | + $catMessage = wfMessage( 'broken-file-category' ) |
| 44 | + ->title( Title::newFromText( "Wanted Files", NS_MAIN ) ) |
| 45 | + ->inContentLanguage(); |
| 46 | + |
| 47 | + if ( !$catMessage->isDisabled() ) { |
| 48 | + $category = Title::makeTitleSafe( NS_CATEGORY, $catMessage->text() ); |
| 49 | + } else { |
| 50 | + $category = false; |
| 51 | + } |
| 52 | + |
| 53 | + if ( $category ) { |
| 54 | + return $this |
| 55 | + ->msg( 'wantedfiletext-cat' ) |
| 56 | + ->params( $category->getFullText() ) |
| 57 | + ->parseAsBlock(); |
| 58 | + } else { |
| 59 | + return $this |
| 60 | + ->msg( 'wantedfiletext-nocat' ) |
| 61 | + ->parseAsBlock(); |
| 62 | + } |
| 63 | + } |
| 64 | + |
39 | 65 | /** |
40 | 66 | * KLUGE: The results may contain false positives for files |
41 | 67 | * that exist e.g. in a shared repo. Setting this at least |
Index: trunk/phase3/languages/messages/MessagesQqq.php |
— | — | @@ -2219,6 +2219,8 @@ |
2220 | 2220 | |
2221 | 2221 | $1 is a page title", |
2222 | 2222 | 'wantedfiles' => 'Name of special page displayed in [[Special:SpecialPages]] and title of [[Special:WantedFiles]].', |
| 2223 | +'wantedfiletext-cat' => 'Message displayed at top of [[special:WantedFiles]]. $1 contains the name of the tracking category for broken files (Including Category prefix). {{msg-mw|wantedfiletext-nocat}} is used if the tracking category is disabled.', |
| 2224 | +'wantedfiletext-nocat' => 'Message displayed at top of [[special:WantedFiles]] when broken file tracking category is disabled. See {{msg-mw|wantedfiletext-cat}}.', |
2223 | 2225 | 'wantedtemplates' => 'The page name of [[Special:WantedTemplates]].', |
2224 | 2226 | 'mostlinked' => 'Name of special page displayed in [[Special:SpecialPages]]', |
2225 | 2227 | 'mostlinkedcategories' => 'Name of special page displayed in [[Special:SpecialPages]]', |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -2529,6 +2529,8 @@ |
2530 | 2530 | 'wantedpages-badtitle' => 'Invalid title in result set: $1', |
2531 | 2531 | 'wantedfiles' => 'Wanted files', |
2532 | 2532 | 'wantedfiles-summary' => '', # do not translate or duplicate this message to other languages |
| 2533 | +'wantedfiletext-cat' => 'The following images are used but do not exist. Images from foreign repositories may be listed despite existing. Any such false positives will be <del>struck out</del>. Additionally, pages that embed images that do not exist are listed in [[:$1]].', |
| 2534 | +'wantedfiletext-nocat' => 'The following images are used but do not exist. Images from foreign repositories may be listed despite existing. Any such false positives will be <del>struck out</del>.', |
2533 | 2535 | 'wantedtemplates' => 'Wanted templates', |
2534 | 2536 | 'wantedtemplates-summary' => '', # do not translate or duplicate this message to other languages |
2535 | 2537 | 'mostlinked' => 'Most linked-to pages', |