Ebrahim has uploaded a new change for review.
https://gerrit.wikimedia.org/r/102677
Change subject: i18n: Make LogEventsList user language direction aware
......................................................................
i18n: Make LogEventsList user language direction aware
Bug: 58685
Change-Id: I9627689febb296dfeed588a52bfd30d8a9a46cda
---
M includes/logging/LogEventsList.php
1 file changed, 9 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/77/102677/1
diff --git a/includes/logging/LogEventsList.php
b/includes/logging/LogEventsList.php
index c069fdb..0522209 100644
--- a/includes/logging/LogEventsList.php
+++ b/includes/logging/LogEventsList.php
@@ -561,7 +561,15 @@
if ( $logBody ) {
if ( $msgKey[0] ) {
- $s = '<div class="mw-warning-with-logexcerpt">';
+ global $wgLang;
+ $dir = $wgLang->getDir();
+ $lang = $wgLang->getCode();
+
+ $s = Xml::openElement( 'div', array(
+ 'class' => "mw-warning-with-logexcerpt
mw-content-$dir",
+ 'dir' => $dir,
+ 'lang' => $lang,
+ ) );
if ( count( $msgKey ) == 1 ) {
$s .= $context->msg( $msgKey[0]
)->parseAsBlock();
--
To view, visit https://gerrit.wikimedia.org/r/102677
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9627689febb296dfeed588a52bfd30d8a9a46cda
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Ebrahim <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits