From: madman Date: Mon, 20 Aug 2012 17:47:35 +0000 (+0000) Subject: Bug 39495 - action=info contains hard coded English text "Marked as X-Git-Tag: 1.31.0-rc.0~22665 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=db95fab28c98ef40b7e3f2b8d8479c1faf044123;p=lhc%2Fweb%2Fwiklou.git Bug 39495 - action=info contains hard coded English text "Marked as '$1'" * Added messages for two valid values of robot indexing policy Change-Id: If1dc1de6b2607fcaf546ffce74e039e5f9d170fa --- diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php index 60941c87f1..26a6e47a9c 100644 --- a/includes/actions/InfoAction.php +++ b/includes/actions/InfoAction.php @@ -121,9 +121,9 @@ class InfoAction extends FormlessAction { // Use robot policy logic $policy = $this->page->getRobotPolicy( 'view', $pOutput ); - // @todo FIXME: Hard coded English text. $table = $this->addRow( $table, - $this->msg( 'pageinfo-robot-policy' )->escaped(), "Marked as '" . $policy['index'] . "'" + $this->msg( 'pageinfo-robot-policy' )->escaped(), + $this->msg( "pageinfo-robot-${policy['index']}" )->escaped() ); if ( !$wgDisableCounters ) { diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 9fba52f94c..e290a4c976 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -3742,6 +3742,8 @@ This is probably caused by a link to a blacklisted external site.', 'pageinfo-length' => 'Page length (in bytes)', 'pageinfo-article-id' => 'Page ID', 'pageinfo-robot-policy' => 'Search engine status', +'pageinfo-robot-index' => 'Indexable', +'pageinfo-robot-noindex' => 'Not indexable', 'pageinfo-views' => 'Number of views', 'pageinfo-watchers' => 'Number of page watchers', 'pageinfo-redirects-name' => 'Redirects to this page', diff --git a/languages/messages/MessagesQqq.php b/languages/messages/MessagesQqq.php index 1e158973a5..4e31fce809 100644 --- a/languages/messages/MessagesQqq.php +++ b/languages/messages/MessagesQqq.php @@ -3462,6 +3462,8 @@ See also {{msg-mw|Anonuser}} and {{msg-mw|Siteusers}}.', 'pageinfo-length' => 'The length of the page, in bytes.', 'pageinfo-article-id' => 'The numeric identifier of the page.', 'pageinfo-robot-policy' => 'The search engine status of the page.', +'pageinfo-robot-index' => 'An indication that the page is indexable.', +'pageinfo-robot-noindex' => 'An indication that the page is not indexable.', 'pageinfo-views' => 'The number of times the page has been viewed.', 'pageinfo-watchers' => 'The number of users watching the page.', 'pageinfo-redirects-name' => 'The number of redirects to the page.', diff --git a/maintenance/language/messages.inc b/maintenance/language/messages.inc index 79c6ec7ae9..f6be3475d7 100644 --- a/maintenance/language/messages.inc +++ b/maintenance/language/messages.inc @@ -2672,6 +2672,8 @@ $wgMessageStructure = array( 'pageinfo-length', 'pageinfo-article-id', 'pageinfo-robot-policy', + 'pageinfo-robot-index', + 'pageinfo-robot-noindex', 'pageinfo-views', 'pageinfo-watchers', 'pageinfo-redirects-name',