Last modified: 2008-04-03 14:53:51 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 13431 - Show true message source in Special:Allmessages&ot=php / xml
Show true message source in Special:Allmessages&ot=php / xml
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.11.x
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://ksh.wikipedia.org/w/index.php?...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-19 14:16 UTC by Purodha Blissenbach
Modified: 2008-04-03 14:53 UTC (History)
2 users (show)

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


Attachments

Description Purodha Blissenbach 2008-03-19 14:16:52 UTC
Constants, like {{SITENAME}}, most functions, like {{plural|...}}, some transclusions, and all templates are expanded, and html comments removed, before 

Special:Allmessages&ot=php
Special:Allmessages&ot=xml

output is generated. Rather than including these expanded, users would usually expect to receive a souce format truly suited for further processing, i.e. with unaltered original message texts.

While there may be uses for the current behaviour, likely more often one rather wants not to have it.

I suggest to:

* in any case provide php code which can be copied to a server and used without loss of information, i.e. all of the above unexpanded.

* maybe add an option "expand constants, functions, transclusions, templates, remove html comments" (or have them checkboxed individually, whatever);
best to all of the php, html, and xml output formats.

* I for one would not mind having standardized comments included in the php output, as are in the output of the rebuildLanguage.php maintenance script.

* if that can be easily had, I'd suggest to allow a selection of source file order, and alphabetic order, at least for the php, preferrably everywhere.
Comment 1 Brion Vibber 2008-03-19 19:48:03 UTC
Looks to me like transforms should be disabled for all message loads on Special:Allmessages, no matter which output mode is being used.
Comment 2 Alexandre Emsenhuber [IAlex] 2008-04-02 11:52:09 UTC
Fixed message transform in r32700.
(I don't close this bug because of the other requests.)
Comment 3 Brion Vibber 2008-04-02 21:05:15 UTC
Going ahead and resolving as FIXED. I'm a bit leery of the extra suggestions up top.
Comment 4 Purodha Blissenbach 2008-04-03 14:53:51 UTC
Just for the records:
These were meant as suggestions or ideas, better to be passed to a programmer than being lost.
Had I meant them as requests or requirements, I would have choosen diffferent wording, or opened an extra bug for them.

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


Navigation
Links