Last modified: 2013-01-08 13:02:37 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T45695, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43695 - Redundant interface messages
Redundant interface messages
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Commentbox (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-07 11:34 UTC by Siddhartha Ghai
Modified: 2013-01-08 13:02 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Siddhartha Ghai 2013-01-07 11:34:08 UTC
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
Comment 1 Thomas Bleher 2013-01-08 05:58:01 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links