Bartosz Dziewoński has uploaded a new change for review.

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

Change subject: Article: Localize alt text of redirect icon
......................................................................

Article: Localize alt text of redirect icon

Change-Id: If0632c51d878d4a18a881eb0b58e8c1857f6d020
---
M includes/page/Article.php
M languages/i18n/en.json
M languages/i18n/qqq.json
3 files changed, 5 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/22/158622/1

diff --git a/includes/page/Article.php b/includes/page/Article.php
index dab075e..71350ac 100644
--- a/includes/page/Article.php
+++ b/includes/page/Article.php
@@ -1531,9 +1531,11 @@
                        }
                }
 
+               $redirectToText = wfMessage( 'redirectto' )->inLanguage( $lang 
)->text();
+
                $imageUrl = $wgStylePath . '/common/images/redirect' . 
$imageDir . '.png';
                return '<div class="redirectMsg">' .
-                       Html::element( 'img', array( 'src' => $imageUrl, 'alt' 
=> '#REDIRECT' ) ) .
+                       Html::element( 'img', array( 'src' => $imageUrl, 'alt' 
=> $redirectToText ) ) .
                        '<span class="redirectText">' . $link . '</span></div>';
        }
 
diff --git a/languages/i18n/en.json b/languages/i18n/en.json
index db1325c..af19287 100644
--- a/languages/i18n/en.json
+++ b/languages/i18n/en.json
@@ -208,6 +208,7 @@
        "otherlanguages": "In other languages",
        "redirectedfrom": "(Redirected from $1)",
        "redirectpagesub": "Redirect page",
+       "redirectto": "Redirect to",
        "talkpageheader": "-",
        "lastmodifiedat": "This page was last modified on $1, at $2.",
        "viewcount": "This page has been accessed {{PLURAL:$1|once|$1 times}}.",
diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json
index bef8ee0..590fee4 100644
--- a/languages/i18n/qqq.json
+++ b/languages/i18n/qqq.json
@@ -370,6 +370,7 @@
        "otherlanguages": "This message is shown under the toolbox. It is used 
if there are interwiki links added to the page, like 
<code><nowiki>[[</nowiki>en:Interwiki 
article]]</code>.\n{{Identical|Otherlanguages}}",
        "redirectedfrom": "The text displayed when a certain page is redirected 
to another page. Parameters:\n* $1 - the name of the page user came from",
        "redirectpagesub": "Displayed under the page title of a page which is a 
redirect to another page, see [{{fullurl:Project:Translators|redirect=no}} 
Project:Translators] for example.\n\n{{Identical|Redirect page}}",
+       "redirectto": "Alt text of the arrow icon shown on redirect pages 
([[commons:File:Sample redirect page.jpg]]).\n\n{{Identical|Redirect page}}",
        "talkpageheader": "{{notranslate}}",
        "lastmodifiedat": "This message is shown below each page, in the footer 
with the logos and links.\n\nParameters:\n* $1 - date\n* $2 - time\nSee 
also:\n* {{msg-mw|Lastmodifiedatby}}",
        "viewcount": "Used as page-view counter. Parameters:\n* $1 - number of 
pageviews",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If0632c51d878d4a18a881eb0b58e8c1857f6d020
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <[email protected]>

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

Reply via email to