jenkins-bot has submitted this change and it was merged.

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(-)

Approvals:
  Mooeypoo: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/formatters/EventPresentationModel.php 
b/includes/formatters/EventPresentationModel.php
index 9a00920..2e92bdd 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( $title->getText(), 
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: merged
Gerrit-Change-Id: I50c0363aee2e1f985c5920f869f11675992ecb10
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Catrope <[email protected]>
Gerrit-Reviewer: Mooeypoo <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to