Special:BookSources: Use appropriate mediawiki.ui classes and update strings
authorPrateek Saxena <prtksxna@gmail.com>
Mon, 22 Sep 2014 22:00:06 +0000 (15:00 -0700)
committerPrateek Saxena <prtksxna@gmail.com>
Tue, 23 Sep 2014 21:28:14 +0000 (14:28 -0700)
Bug: 71145
Change-Id: I00c4a00d4a2aeb7f6b39ede6fca1725991b68d7c

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

index 72f4e46..8b4462a 100644 (file)
@@ -131,9 +131,20 @@ class SpecialBookSources extends SpecialPage {
                        'isbn',
                        20,
                        $this->isbn,
-                       array( 'autofocus' => true )
+                       array( 'autofocus' => true, 'class' => 'mw-ui-input-inline' )
                );
-               $form .= '&#160;' . Xml::submitButton( $this->msg( 'booksources-go' )->text() ) . "</p>\n";
+
+               if ( $wgUseMediaWikiUIEverywhere ) {
+                       $form .= '&#160;' . Xml::submitButton(
+                               $this->msg( 'booksources-search' )->text(),
+                               array( 'class' => 'mw-ui-button mw-ui-progressive' )
+                       ) . "</p>\n";
+               } else {
+                       $form .= '&#160;' . Xml::submitButton(
+                               $this->msg( 'booksources-search' )->text()
+                       ) . "</p>\n";
+               }
+
                $form .= Html::closeElement( 'form' ) . "\n";
                $form .= Html::closeElement( 'fieldset' ) . "\n";
 
index 8b6e66b..c448fe5 100644 (file)
        "booksources-summary": "",
        "booksources-search-legend": "Search for book sources",
        "booksources-isbn": "ISBN:",
-       "booksources-go": "Go",
+       "booksources-search": "Search",
        "booksources-text": "Below is a list of links to other sites that sell new and used books, and may also have further information about books you are looking for:",
        "booksources-invalid-isbn": "The given ISBN does not appear to be valid; check for errors copying from the original source.",
        "rfcurl": "//tools.ietf.org/html/rfc$1",
index 941bb91..54d2395 100644 (file)
        "booksources-summary": "{{doc-specialpagesummary|booksources}}",
        "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}}\nThis is a label that appears before a text input field on the Special:BookSources page.\n{{Identical|ISBN}}",
-       "booksources-go": "Name of button in [[Special:BookSources]]\n\n{{Identical|Go}}",
+       "booksources-search": "Search button in [[Special:BookSources]]\n\n{{Identical|Go}}",
        "booksources-text": "Used in [[Special:BookSources/1]].\n\nThis message is followed by a list of links to other sites.\n\nSee also:\n* {{msg-mw|Booksources|title}}\n* {{msg-mw|Booksources-text|text}}",
        "booksources-invalid-isbn": "This message is displayed after an invalid ISBN is entered on [[Special:Booksources]].",
        "rfcurl": "{{notranslate}}\nParameters:\n* $1 - RFC number\nSee also:\n* {{msg-mw|Pubmedurl}}",