Switch Special:FileDuplicateSearch to OOUI
authorYogesh K S <csyogech@gmail.com>
Sun, 28 Feb 2016 11:19:03 +0000 (16:49 +0530)
committerBartosz Dziewoński <matma.rex@gmail.com>
Mon, 4 Apr 2016 14:23:26 +0000 (14:23 +0000)
Bug: T117745
Change-Id: I7541244cd06b6ea5c71e7f1e540474e8ae3740b5

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

index 20c0762..bb82d03 100644 (file)
@@ -118,19 +118,17 @@ class FileDuplicateSearchPage extends QueryPage {
                                'id' => 'filename',
                                'size' => 50,
                                'value' => $this->filename,
-                               'cssclass' => 'mw-ui-input-inline'
                        ],
                ];
                $hiddenFields = [
                        'title' => $this->getPageTitle()->getPrefixedDBkey(),
                ];
-               $htmlForm = HTMLForm::factory( 'inline', $formFields, $this->getContext() );
+               $htmlForm = HTMLForm::factory( 'ooui', $formFields, $this->getContext() );
                $htmlForm->addHiddenFields( $hiddenFields );
                $htmlForm->setAction( wfScript() );
                $htmlForm->setMethod( 'get' );
                $htmlForm->setSubmitProgressive();
                $htmlForm->setSubmitTextMsg( $this->msg( 'fileduplicatesearch-submit' ) );
-               $htmlForm->setWrapperLegendMsg( 'fileduplicatesearch-legend' );
 
                // The form should be visible always, even if it was submitted (e.g. to perform another action).
                // To bypass the callback validation of HTMLForm, use prepareForm() and displayForm().
index cbf2462..7b10ec8 100644 (file)
        "redirect-not-exists": "Value not found",
        "fileduplicatesearch": "Search for duplicate files",
        "fileduplicatesearch-summary": "Search for duplicate files based on hash values.",
-       "fileduplicatesearch-legend": "Search for a duplicate",
        "fileduplicatesearch-filename": "Filename:",
        "fileduplicatesearch-submit": "Search",
        "fileduplicatesearch-info": "$1 × $2 pixel<br />File size: $3<br />MIME type: $4",
index a2e803e..cc12e8b 100644 (file)
        "redirect-not-exists": "Used as error message in [[Special:Redirect]]",
        "fileduplicatesearch": "Name of special page [[Special:FileDuplicateSearch]].",
        "fileduplicatesearch-summary": "Summary of [[Special:FileDuplicateSearch]]",
-       "fileduplicatesearch-legend": "Legend of the fieldset around the input form of [[Special:FileDuplicateSearch]]",
        "fileduplicatesearch-filename": "Input form of [[Special:FileDuplicateSearch]]:\n\n{{Identical|Filename}}",
        "fileduplicatesearch-submit": "Button label on [[Special:FileDuplicateSearch]].\n\n{{Identical|Search}}",
        "fileduplicatesearch-info": "Information beneath the thumbnail on the right side shown after a successful search via [[Special:FileDuplicateSearch]].\n\nParameters:\n* $1 - width of the file\n* $2 - height of the file\n* $3 - File size\n* $4 - MIME type",