Page MenuHomePhabricator

Redundant interface messages
Open, LowPublic

Description

The interface messages MediaWiki:Commentbox-first-comment-heading[1] and MediaWiki:Commentbox-regex[2] are redundant to each-other since both contain basically the same text.

There should be basically one message with the text

Comments

The extension should then wrap this message with the required stuff to create both the regex and the heading by itself. Having this translated twice is just a waste of time, with possibility of disaster with bad regexes.

[1]:http://translatewiki.net/w/i.php?title=MediaWiki:Commentbox-first-comment-heading/en
[2]:http://translatewiki.net/w/i.php?title=MediaWiki:Commentbox-regex/en


Version: unspecified
Severity: normal

Details

Reference
bz43695

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:25 AM
bzimport set Reference to bz43695.
bzimport added a subscriber: Unknown Object (MLST).

The two messages serve two distinct purposes:

MediaWiki:Commentbox-first-comment-heading is the current heading, that should be added to the page, when no comment heading is present on the page.

MediaWiki:Commentbox-regex is a regular expression matching the current heading *and any historic heading*. That way, if Commentbox-first-comment-heading is changed, the regex should match both the old header and the new header.

This feature is actually in use on the wiki I first developed this extension for (I later added an image to the comment heading), so removing the second message would break this site and would therefore be a regression.

That being said, I understand that it would be easier to only have one message to translate. I don't currently have time to work on the extension, but I would accept a patch that changes MediaWiki:Commentbox-regex from a MediaWiki message to a config variable. It could be set in LocalSettings.php. If it was not set there, the extension would generate the regex itself.