From: Prateek Saxena Date: Mon, 22 Sep 2014 22:00:06 +0000 (-0700) Subject: Special:BookSources: Use appropriate mediawiki.ui classes and update strings X-Git-Tag: 1.31.0-rc.0~13860^2 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=138239f6b0419731a50f3c57b20fe0f23e9a2be2;p=lhc%2Fweb%2Fwiklou.git Special:BookSources: Use appropriate mediawiki.ui classes and update strings Bug: 71145 Change-Id: I00c4a00d4a2aeb7f6b39ede6fca1725991b68d7c --- diff --git a/includes/specials/SpecialBooksources.php b/includes/specials/SpecialBooksources.php index 72f4e466e1..8b4462ac8a 100644 --- a/includes/specials/SpecialBooksources.php +++ b/includes/specials/SpecialBooksources.php @@ -131,9 +131,20 @@ class SpecialBookSources extends SpecialPage { 'isbn', 20, $this->isbn, - array( 'autofocus' => true ) + array( 'autofocus' => true, 'class' => 'mw-ui-input-inline' ) ); - $form .= ' ' . Xml::submitButton( $this->msg( 'booksources-go' )->text() ) . "

\n"; + + if ( $wgUseMediaWikiUIEverywhere ) { + $form .= ' ' . Xml::submitButton( + $this->msg( 'booksources-search' )->text(), + array( 'class' => 'mw-ui-button mw-ui-progressive' ) + ) . "

\n"; + } else { + $form .= ' ' . Xml::submitButton( + $this->msg( 'booksources-search' )->text() + ) . "

\n"; + } + $form .= Html::closeElement( 'form' ) . "\n"; $form .= Html::closeElement( 'fieldset' ) . "\n"; diff --git a/languages/i18n/en.json b/languages/i18n/en.json index 8b6e66be03..c448fe5cfd 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -1683,7 +1683,7 @@ "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", diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index 941bb91779..54d2395a73 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -1845,7 +1845,7 @@ "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}}",