Last modified: 2011-07-24 11:34:46 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 T17802, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15802 - An easy way for admins to look up messages
An easy way for admins to look up messages
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
unspecified
All All
: High enhancement with 2 votes (vote)
: ---
Assigned To: Happy-melon
http://rafb.net/p/AEYVcA33.html
: patch
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-01 22:18 UTC by Conrad Irwin
Modified: 2011-07-24 11:34 UTC (History)
11 users (show)

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


Attachments
The php class (123 bytes, application/x-php)
2009-01-31 23:27 UTC, Conrad Irwin
Details
updated patch (788 bytes, patch)
2009-12-28 12:44 UTC, Conrad Irwin
Details
use Qqx (785 bytes, patch)
2009-12-28 21:46 UTC, Conrad Irwin
Details

Description Conrad Irwin 2008-10-01 22:18:36 UTC
When looking at a page it's often impossible to tell which bit of text is coming from where. Special:AllMessages solves this problem to some extent, but it is still hard to tell which message you are looking for and the number of messages there is ever-increasing. 

I've linked to the contents of a new language to be put in 'languages/classes/LanguageNone.php', this will allow admins to append ?uselang=none to the url, and then see instantly which messages are responsible for what.
Comment 1 Niklas Laxström 2009-01-31 22:07:11 UTC
Messages are used for much more than... plain messages. Having a messages file that doesn't automatically stay in sync is not the way.
Comment 2 Conrad Irwin 2009-01-31 22:15:05 UTC
Sorry, I should have included the file here. This does automatically stay in sync - as it just echo's the name of the requested message. It leads to a little bit of ugliness in places - but I've found it very useful even so.

LanguageNone.php=<<<EOF
<?php

class LanguageNone extends Language {
    function getMessage($key){
        return "|Mediawiki:$key|";
    }
}

?>
EOF
Comment 3 Roan Kattouw 2009-01-31 23:08:15 UTC
You should really attach the patch to this bug, as the pastebin URL you provided has long since expired.
Comment 4 Conrad Irwin 2009-01-31 23:27:24 UTC
Created attachment 5763 [details]
The php class

Hehe, I know. I was looking for the add attachment button an hour ago, but couldn't see it....

Voici!
Comment 5 Conrad Irwin 2009-09-17 19:49:25 UTC
This would be particularly nice now that you can't just grep Special:AllMessages. 
Comment 6 Conrad Irwin 2009-12-28 12:44:56 UTC
Created attachment 6903 [details]
updated patch

Update patch to add comments, and correct style, and to return a valid page name.
Comment 7 Happy-melon 2009-12-28 13:16:52 UTC
this should be a valid ISO language code, in the "reserved" section /qq[a-z]/.  Our message descriptions are at "qqq"; maybe "qqx" would be appropriate for this.

Also, there should be some way to find out what parameters are being passed to the message.
Comment 8 Niklas Laxström 2009-12-28 17:50:50 UTC
(In reply to comment #7)
> this should be a valid ISO language code, in the "reserved" section /qq[a-z]/. 
> Our message descriptions are at "qqq"; maybe "qqx" would be appropriate for
> this.

Or x-something. I think Tim would have preferred x-doc instead of qqq.

And it's just not some extensions, the core dies too if it gets invalid title, notably on Special:Preferences.
Comment 9 Happy-melon 2009-12-28 20:50:55 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > this should be a valid ISO language code, in the "reserved" section /qq[a-z]/. 
> > Our message descriptions are at "qqq"; maybe "qqx" would be appropriate for
> > this.
> 
> Or x-something. I think Tim would have preferred x-doc instead of qqq.

Maybe that's what we'd have done with hindsight, but given that the chances of qqq ever being moved to x-doc are essentially zero, creating inconsistency purely for the sake of having one at a more convenient title is not worth it.  It's not *wrong* for them to be in the "qq-" range, but it *would* be wrong for them to be needlessly inconsistent.  Plus that range has been *explicitly* reserved, so we're covered for the future.

> And it's just not some extensions, the core dies too if it gets invalid title,
> notably on Special:Preferences.

I think watching what falls apart when bad assumptions are made about input integrity, and then fixing them, would be a valuable exercise in its own right.
Comment 10 Conrad Irwin 2009-12-28 21:46:20 UTC
Created attachment 6904 [details]
use Qqx

Use qqx instead of none.

Fixing it to display the value of the parameters would require special treatment in wfMsgReplaceArgs. The partial solution I use on en.wiktionary is to transclude {{int:{{PAGENAME}}/qqq}] in http://en.wiktionary.org/wiki/MediaWiki:Editinginterface - though this will only work for English sites (unless we have to translate all the documentation too).
Comment 11 p858snake 2011-04-30 00:09:33 UTC
*Bulk BZ Change: +Patch to open bugs with patches attached that are missing the keyword*
Comment 12 Robin Pepermans (SPQRobin) 2011-07-13 17:47:26 UTC
Patch applied in r92068. Slightly modified to return [message-name] instead of (MediaWiki:message-name).

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


Navigation
Links