Fix i18n issue in Special:NewImages
authorSiebrand Mazeland <siebrand@kitano.nl>
Wed, 7 May 2014 12:37:59 +0000 (14:37 +0200)
committerSiebrand <siebrand@kitano.nl>
Thu, 8 May 2014 07:48:22 +0000 (07:48 +0000)
As Rillke has reported in
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Showhidebots/en
the text for the check box was incorrect. It turned out to be a strange
re-use of messages. Replaced it with a proper message.

No re-uses in core. Remaining re-use outside of core has been taken care of
in I4458ab7f6e53

Change-Id: I48042d0e60ce213db3db123179d9658cdd013a8f

includes/specials/SpecialNewimages.php
languages/i18n/en.json
languages/i18n/qqq.json

index 1d06071..6891b16 100644 (file)
@@ -183,7 +183,7 @@ class NewFilesPager extends ReverseChronologicalPager {
                        ),
                        'showbots' => array(
                                'type' => 'check',
-                               'label' => $this->msg( 'showhidebots', $this->msg( 'show' )->plain() )->escaped(),
+                               'label-message' => 'newimages-showbots',
                                'name' => 'showbots',
                        ),
                        'limit' => array(
index 07d1913..28fd2ae 100644 (file)
        "newimages-summary": "This special page shows the last uploaded files.",
        "newimages-legend": "Filter",
        "newimages-label": "Filename (or a part of it):",
-       "showhidebots": "($1 bots)",
+       "newimages-showbots": "Show uploads by bots",
        "noimages": "Nothing to see.",
        "ilsubmit": "Search",
        "bydate": "by date",
index 6183506..adf6044 100644 (file)
        "newimages-summary": "This message is displayed at the top of [[Special:NewImages]] to explain what is shown on that special page.",
        "newimages-legend": "Caption of the fieldset for the filter on [[Special:NewImages]]\n\n{{Identical|Filter}}",
        "newimages-label": "Caption of the filter editbox on [[Special:NewImages]]",
-       "showhidebots": "This is shown on the special page [[Special:NewImages]]. The format is \"{{int:showhidebots|[[MediaWiki:Hide/{{SUBPAGENAME}}|{{int:hide}}]]}}\" or \"{{int:showhidebots|[[MediaWiki:Show/{{SUBPAGENAME}}|{{int:show}}]]}}\"\n\n{{Identical|$1 bots}}",
+       "newimages-showbots": "Used as label for a checkbox. When checked, [[Special:NewImages]] will also display uploads by users in the bots group.",
        "noimages": "This is shown on the special page [[Special:NewImages]], when there aren't any recently uploaded files.",
        "ilsubmit": "Used as label for input box in the MIMESearch form on [[Special:MIMESearch]].\n\nSee also:\n* {{msg-mw|Mimesearch|page title}}\n* {{msg-mw|Mimetype|label for input box}}\n{{Identical|Search}}",
        "bydate": "{{Identical|Date}}",