Change searchInput placeholder (i18n message example)

Also fix a $this->msg reference I missed before.

Change-Id: I2082cec190fbbb923cde9bed47cfbf5fd4225613
isekai
Isarra 9 years ago
parent 7a5954cfd3
commit 9e93a9ca9a

@ -203,12 +203,17 @@ class TimelessTemplate extends BaseTemplate {
?> ?>
<div class="mw-portlet" id="p-search"> <div class="mw-portlet" id="p-search">
<h3<?php $this->html( 'userlangattributes' ) ?>> <h3<?php $this->html( 'userlangattributes' ) ?>>
<label for="searchInput"><?php $this->msg( 'search' ) ?></label> <label for="searchInput"><?php echo $this->getMsg( 'search' )->parse() ?></label>
</h3> </h3>
<form action="<?php $this->text( 'wgScript' ) ?>" id="searchform"> <form action="<?php $this->text( 'wgScript' ) ?>" id="searchform">
<div id="simpleSearch"> <div id="simpleSearch">
<div id="searchInput-container"> <div id="searchInput-container">
<?php echo $this->makeSearchInput( array( 'id' => 'searchInput' ) ); ?> <?php
echo $this->makeSearchInput( array(
'id' => 'searchInput',
'placeholder' => $this->getMsg( 'timeless-search-placeholder' )->escaped(),
) );
?>
</div> </div>
<?php <?php
echo Html::hidden( 'title', $this->get( 'searchtitle' ) ); echo Html::hidden( 'title', $this->get( 'searchtitle' ) );

@ -3,5 +3,6 @@
"authors": [ "Isarra" ] "authors": [ "Isarra" ]
}, },
"skinname-timeless": "Timeless", "skinname-timeless": "Timeless",
"timeless-desc": "A timeless skin designed after the Winter prototype by Brandon Harris." "timeless-desc": "A timeless skin designed after the Winter prototype by Brandon Harris.",
"timeless-search-placeholder": "Search approximately {{NUMBEROFPAGES}} pages"
} }

@ -3,5 +3,6 @@
"authors": [ "..." ] "authors": [ "..." ]
}, },
"skinname-timeless": "{{optional}}", "skinname-timeless": "{{optional}}",
"timeless-desc": "{{desc|what=skin|name=Timeless|url=https://www.mediawiki.org/wiki/Skin:Timeless}}" "timeless-desc": "{{desc|what=skin|name=Timeless|url=https://www.mediawiki.org/wiki/Skin:Timeless}}",
"timeless-search-placeholder": "Main search input placeholder text"
} }

Loading…
Cancel
Save