From: Rob Church Date: Tue, 11 Apr 2006 20:46:09 +0000 (+0000) Subject: (bug 5544) Fix redirect arrow in Special:Listredirects for right-to-left languages X-Git-Tag: 1.31.0-rc.0~57523 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=87f7c7845c1670bb5d36331c2be26cf37408771f;p=lhc%2Fweb%2Fwiklou.git (bug 5544) Fix redirect arrow in Special:Listredirects for right-to-left languages --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 2857c841ff..172a0a114b 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -47,7 +47,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN Deactivated by default, set "$wgAllowDisplayTitle = true" in LocalSettings.php to activate * Cleaned SpecialContributions a bit * Added a table to track interlanguage links -* Even further additions to Hebrew localisation +* (bug 5544) Fix redirect arrow in Special:Listredirects for right-to-left languages == Compatibility == diff --git a/includes/SpecialListredirects.php b/includes/SpecialListredirects.php index 804df551cf..729de43edf 100644 --- a/includes/SpecialListredirects.php +++ b/includes/SpecialListredirects.php @@ -31,6 +31,8 @@ class ListredirectsPage extends QueryPage { } function formatResult( $skin, $result ) { + global $wgContLang; + # Make a link to the redirect itself $rd_title = Title::makeTitle( $result->namespace, $result->title ); $rd_link = $skin->makeKnownLinkObj( $rd_title, '', 'redirect=no' ); @@ -51,8 +53,11 @@ class ListredirectsPage extends QueryPage { $targetLink = '*'; } + # Check the language; RTL wikis need a ← + $arr = $wgContLang->isRTL() ? ' ← ' : ' → '; + # Format the whole thing and return it - return( $rd_link . ' → ' . $targetLink ); + return( $rd_link . $arr . $targetLink ); }