From 14db06a0015aec78f9f6d21ef7caab32ff6b3d70 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Sat, 10 May 2008 11:56:02 +0000 Subject: [PATCH] * Use Xml:: and so --- includes/ImagePage.php | 36 +++++++++++++++++++------------ languages/messages/MessagesEn.php | 3 +-- 2 files changed, 23 insertions(+), 16 deletions(-) diff --git a/includes/ImagePage.php b/includes/ImagePage.php index fa063dbcfd..9b48d1b4ec 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -314,22 +314,30 @@ class ImagePage extends Article { } global $wgScript; - $select = '
' . - Xml::hidden( 'title', $this->getTitle()->getPrefixedDbKey() ); - $select .= $wgOut->parse( wfMsg( 'imgmultigotopre' ), false ) . - ' ' . $wgOut->parse( wfMsg( 'imgmultigotopost' ), false ) . - '
'; - - $wgOut->addHTML( '
' . - "$select
$thumb1\n$thumb2
" ); + $select = Xml::tags( 'select', + array( 'id' => 'pageselector', 'name' => 'page' ), + implode( "\n", $options ) ); + + $wgOut->addHTML( + '
' . + Xml::openElement( 'form', $formParams ) . + Xml::hidden( 'title', $this->getTitle()->getPrefixedDbKey() ) . + wfMsgExt( 'imgmultigoto', array( 'parseinline', 'replaceafter' ), $select ) . + Xml::submitButton( wfMsg( 'imgmultigo' ) ) . + Xml::closeElement( 'form' ) . + "
$thumb1\n$thumb2
" + ); } } else { #if direct link is allowed but it's not a renderable image, show an icon. diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index acca2e24d9..5cab668a88 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -3181,8 +3181,7 @@ $1', 'imgmultipageprev' => '← previous page', 'imgmultipagenext' => 'next page →', 'imgmultigo' => 'Go!', -'imgmultigotopre' => 'Go to page', -'imgmultigotopost' => '', # only translate this message to other languages if you have to change it +'imgmultigoto' => 'Go to page $1', # Table pager 'ascending_abbrev' => 'asc', -- 2.20.1