From: Robin Pepermans Date: Sat, 27 Aug 2011 21:46:39 +0000 (+0000) Subject: Properly mark the language and direction of the readonly textarea X-Git-Tag: 1.31.0-rc.0~28040 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=8a7dfb81647a6e14b07030558adfd991d5cbc1cf;p=lhc%2Fweb%2Fwiklou.git Properly mark the language and direction of the readonly textarea --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 504db295d6..e4336a1d3a 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -2087,12 +2087,15 @@ class OutputPage extends ContextSource { if( is_string( $source ) ) { $this->addWikiMsg( 'viewsourcetext' ); + $pageLang = $this->getTitle()->getPageLanguage(); $params = array( 'id' => 'wpTextbox1', 'name' => 'wpTextbox1', 'cols' => $this->getUser()->getOption( 'cols' ), 'rows' => $this->getUser()->getOption( 'rows' ), - 'readonly' => 'readonly' + 'readonly' => 'readonly', + 'lang' => $pageLang->getCode(), + 'dir' => $pageLang->getDir(), ); $this->addHTML( Html::element( 'textarea', $params, $source ) );