Catrope has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/273968

Change subject: Bidi-embed user names and page names in secondary links
......................................................................

Bidi-embed user names and page names in secondary links

Bug: T127407
Change-Id: I50c0363aee2e1f985c5920f869f11675992ecb10
---
M includes/formatters/EventPresentationModel.php
1 file changed, 5 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Echo 
refs/changes/68/273968/1

diff --git a/includes/formatters/EventPresentationModel.php 
b/includes/formatters/EventPresentationModel.php
index 9a00920..f047a27 100644
--- a/includes/formatters/EventPresentationModel.php
+++ b/includes/formatters/EventPresentationModel.php
@@ -406,7 +406,7 @@
 
                return array(
                        'url' => $url,
-                       'label' => $truncatedLabel,
+                       'label' => $this->language->embedBidi( $truncatedLabel 
),
                        'tooltip' => $isTruncated ? $label : '',
                        'description' => '',
                        'icon' => 'userAvatar',
@@ -429,9 +429,12 @@
                } else {
                        $icon = 'article';
                }
+
                return array(
                        'url' => $title->getFullURL( $query ),
-                       'label' => $this->language->truncate( 
$title->getText(), self::PAGE_NAME_AS_LABEL_RECOMMENDED_LENGTH ),
+                       'label' => $this->language->embedBidi(
+                               $this->language->truncate( $label, 
self::PAGE_NAME_AS_LABEL_RECOMMENDED_LENGTH )
+                       ),
                        'tooltip' => $title->getPrefixedText(),
                        'description' => $description,
                        'icon' => $icon,

-- 
To view, visit https://gerrit.wikimedia.org/r/273968
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I50c0363aee2e1f985c5920f869f11675992ecb10
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Catrope <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to