Wrap langauge list in span dir=LTR for RTL local languages to avoid munging of punctu...
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 13 Jul 2003 22:45:09 +0000 (22:45 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 13 Jul 2003 22:45:09 +0000 (22:45 +0000)
includes/Skin.php

index 7938a57..fc52a2e 100644 (file)
@@ -948,6 +948,7 @@ class Skin {
                        }
 
                $first = true;
+               if($wgLang->isRTL()) $s .= "<span dir='LTR'>";
                foreach( $a as $l ) {
                        if ( ! $first ) { $s .= " | "; }
                        $first = false;
@@ -960,6 +961,7 @@ class Skin {
                        $style = $this->getExternalLinkAttributes( $l, $text );
                        $s .= "<a href=\"{$url}\"{$style}>{$text}</a>";
                }
+               if($wgLang->isRTL()) $s .= "</span>";
                return $s;
        }