* (bug 2324) image for redirects should be without text and oriented according to...
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Wed, 26 Oct 2005 15:45:30 +0000 (15:45 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Wed, 26 Oct 2005 15:45:30 +0000 (15:45 +0000)
RELEASE-NOTES
includes/Article.php
languages/Language.php
skins/common/images/redirect.png [deleted file]
skins/common/images/redirectltr.png [new file with mode: 0644]
skins/common/images/redirectrtl.png [new file with mode: 0644]

index 2cc8e16..3f3b241 100644 (file)
@@ -173,6 +173,7 @@ fully support the editing toolbar, but was found to be too confusing.
 * Sanitizer CSS comment processing order fix
 * Edit box now remembers scrollbar position on preview
 * (bug 3798) DoubleRedirects no longer has hard coded arrows
+* (bug 2324) image for redirects should be without text and oriented according to content language
 
 
 === Caveats ===
index 51c2c99..35fb57b 100644 (file)
@@ -671,7 +671,7 @@ class Article {
         * the given title.
        */
        function view() {
-               global $wgUser, $wgOut, $wgRequest, $wgOnlySysopsCanPatrol, $wgLang;
+               global $wgUser, $wgOut, $wgRequest, $wgOnlySysopsCanPatrol, $wgLang, $wgContLang;
                global $wgLinkCache, $IP, $wgEnableParserCache, $wgStylePath, $wgUseRCPatrol;
                global $wgEnotif, $wgParser, $wgParserCache, $wgUseTrackbacks;
                $sk = $wgUser->getSkin();
@@ -778,7 +778,9 @@ class Article {
                                $wgOut->addHTML( '<pre>'.htmlspecialchars($this->mContent)."\n</pre>" );
                        } else if ( $rt = Title::newFromRedirect( $text ) ) {
                                # Display redirect
-                               $imageUrl = $wgStylePath.'/common/images/redirect.png';
+                               $imageDir = $wgContLang->isRTL() ? 'rtl' : 'ltr';
+                               $imageUrl = $wgStylePath.'/common/images/redirect' . $imageDir . '.png';
+                               $wgOut->setSubtitle( wfMsgHtml( 'redirectpagesub' ) );
                                $targetUrl = $rt->escapeLocalURL();
                                $titleText = htmlspecialchars( $rt->getPrefixedText() );
                                $link = $sk->makeLinkObj( $rt );
index efeba09..2ce4513 100644 (file)
@@ -442,6 +442,7 @@ parent class in order maintain consistency across languages.
 'viewtalkpage' => 'View discussion',
 'otherlanguages' => 'In other languages',
 'redirectedfrom' => '(Redirected from $1)',
+'redirectpagesub' => 'Redirect page',
 'lastmodified' => 'This page was last modified $1.',
 'viewcount'            => 'This page has been accessed $1 times.',
 'copyright'    => 'Content is available under $1.',
diff --git a/skins/common/images/redirect.png b/skins/common/images/redirect.png
deleted file mode 100644 (file)
index 7b2b071..0000000
Binary files a/skins/common/images/redirect.png and /dev/null differ
diff --git a/skins/common/images/redirectltr.png b/skins/common/images/redirectltr.png
new file mode 100644 (file)
index 0000000..8d228c9
Binary files /dev/null and b/skins/common/images/redirectltr.png differ
diff --git a/skins/common/images/redirectrtl.png b/skins/common/images/redirectrtl.png
new file mode 100644 (file)
index 0000000..0122eef
Binary files /dev/null and b/skins/common/images/redirectrtl.png differ