Pmlineditor has uploaded a new change for review.
https://gerrit.wikimedia.org/r/264079
Change subject: Add namespace to action=info page
......................................................................
Add namespace to action=info page
Added namespace text to action=info page using
Title::getNsText().
Bug: T123228
Change-Id: Ib00326ff82794e38abd504233057c3011f61a657
---
M includes/actions/InfoAction.php
M languages/i18n/en.json
M languages/i18n/qqq.json
3 files changed, 6 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/79/264079/1
diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php
index 7389ae2..0ea0b37 100644
--- a/includes/actions/InfoAction.php
+++ b/includes/actions/InfoAction.php
@@ -259,7 +259,10 @@
$pageInfo['header-basic'][] = array(
$this->msg( 'pageinfo-length' ), $lang->formatNum(
$title->getLength() )
);
-
+
+ //Page namespace
+ $pageInfo['header-basic'][] = array( $this->msg(
'pageinfo-namespace' ), $title->getNsText() );
+
// Page ID (number not localised, as it's a database ID)
$pageInfo['header-basic'][] = array( $this->msg(
'pageinfo-article-id' ), $id );
diff --git a/languages/i18n/en.json b/languages/i18n/en.json
index ed97a36..946619f 100644
--- a/languages/i18n/en.json
+++ b/languages/i18n/en.json
@@ -2744,6 +2744,7 @@
"pageinfo-display-title": "Display title",
"pageinfo-default-sort": "Default sort key",
"pageinfo-length": "Page length (in bytes)",
+ "pageinfo-namespace": "Namespace",
"pageinfo-article-id": "Page ID",
"pageinfo-language": "Page content language",
"pageinfo-content-model": "Page content model",
diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json
index 39873c5..f79b911 100644
--- a/languages/i18n/qqq.json
+++ b/languages/i18n/qqq.json
@@ -2919,6 +2919,7 @@
"pageinfo-display-title": "The title that is displayed when the page is
viewed.",
"pageinfo-default-sort": "The key by which the page is sorted in
categories by default.",
"pageinfo-length": "The length of the page, in bytes.",
+ "pageinfo-namespace": "The name of the namespace of the page.",
"pageinfo-article-id": "The numeric identifier of the
page.\n{{Identical|Page ID}}",
"pageinfo-language": "Language in which the page content is written.",
"pageinfo-content-model": "The model in which the page content is
written.\n\nUsed as label at [{{fullurl:Main Page|action=info}} action=info].
Followed by one of the following messages:\n*
{{msg-mw|Content-model-wikitext}}\n* {{msg-mw|Content-model-javascript}}\n*
{{msg-mw|Content-model-css}}\n* {{msg-mw|Content-model-text}}",
--
To view, visit https://gerrit.wikimedia.org/r/264079
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib00326ff82794e38abd504233057c3011f61a657
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Pmlineditor <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits