Localisation updates from https://translatewiki.net.
[mediawiki.git] / includes / htmlform / HTMLEditTools.php
blob77924ef24e1477288ba363b706ea91c3b3ecccf7
1 <?php
3 class HTMLEditTools extends HTMLFormField {
4 public function getInputHTML( $value ) {
5 return '';
8 public function getTableRow( $value ) {
9 $msg = $this->formatMsg();
11 return
12 '<tr><td></td><td class="mw-input">' .
13 '<div class="mw-editTools">' .
14 $msg->parseAsBlock() .
15 "</div></td></tr>\n";
18 /**
19 * @param string $value
20 * @return string
21 * @since 1.20
23 public function getDiv( $value ) {
24 $msg = $this->formatMsg();
26 return '<div class="mw-editTools">' . $msg->parseAsBlock() . '</div>';
29 /**
30 * @param string $value
31 * @return string
32 * @since 1.20
34 public function getRaw( $value ) {
35 return $this->getDiv( $value );
38 protected function formatMsg() {
39 if ( empty( $this->mParams['message'] ) ) {
40 $msg = $this->msg( 'edittools' );
41 } else {
42 $msg = $this->msg( $this->mParams['message'] );
43 if ( $msg->isDisabled() ) {
44 $msg = $this->msg( 'edittools' );
47 $msg->inContentLanguage();
49 return $msg;