Improve page display title handling for category pages
authorNiklas Laxström <niklas.laxstrom@gmail.com>
Wed, 9 Nov 2016 06:24:57 +0000 (07:24 +0100)
committerNiklas Laxström <niklas.laxstrom@gmail.com>
Mon, 10 Sep 2018 06:29:48 +0000 (08:29 +0200)
commitd89704bc4cef71af0a4fcebab2c828caf9186c7b
treebbf0f5b340a00fc6f517df121c58f434cfabd89c
parentf7ed5675ef6cc8efe6c525f993121e84fde5bf4a
Improve page display title handling for category pages

One use case of display title is to localise page names with Translate
extension or without. While the page title changes, the subheadings still
say something like "Pages in category Foo/de".

Also converted one raw HTML message to be a parsed message.

First version of this patch caused an issue when previewing
because page title in h1 is not the same as page display title.

This issue is fixed by promoting page display title as it's own member
in OutputPage. Also added getUnprefixedDisplayTitle that attempts to
strip away the namespace prefix to mimic Title::getText() but which
works with display title instead.

Bug: T43720
Bug: T46197
Change-Id: I6097a873297eb57759252fc56ad6d02c44e4c366
RELEASE-NOTES-1.32
includes/CategoryViewer.php
includes/EditPage.php
includes/OutputPage.php
includes/page/Article.php