Last modified: 2011-03-13 18:04:47 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 7980 - Use natural sort order on Special:Allmessages
Use natural sort order on Special:Allmessages
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-11-19 14:59 UTC by AlefZet
Modified: 2011-03-13 18:04 UTC (History)
0 users

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


Attachments

Description AlefZet 2006-11-19 14:59:06 UTC
SpecialAllmessages forced messages to be sorted alphabetically (currently from key '1movedto2' 
to 'yourvariant' key) but isn't naturally. 
But for translator purpouse is needed sorting naturally as order in default MessagesEn file for 
comparing necessary strings (as from 'sidebar' to 'autoredircomment'). 
Additional benefit of it is separating extensions messages from MediaWiki messages. It decrease 
redundant works for extensions messages translations for translations for a new languages. 
Please remove from SpecialAllmessages.php the statement ksort( $sortedArray ); Or implement (if for 
somebody need) sorting switch "Alphabetically <-> Naturally"
Comment 1 Niklas Laxström 2006-11-19 15:14:02 UTC
I would suggest not to use Special:Allmessages for translation at all in normal
circumstances. Using it in active wiki will result in translation that is mixed
translation and site customizations and probably using the wrong license too.
There is better tools and methods available.
Comment 2 Rob Church 2006-11-19 15:24:00 UTC
The page needs to be gutted and rewritten. :)
Comment 3 AlefZet 2006-11-19 15:28:39 UTC
Natural sort order on PHP page generated from Allmessages is enaugh at all.
Comment 4 Rotem Liss 2006-11-19 16:06:22 UTC
I support a natural order on Special:Allmessages, because it makes sense even if
not used for translation: related messages are close (well, should be), and
though it may be so also when sorted if they have the same prefix, it's not
consistent.

(In reply to comment #2)
> The page needs to be gutted and rewritten. :)

Right.

(In reply to comment #3)
> Natural sort order on PHP page generated from Allmessages is enaugh at all.

Note that if you use this for pasting in messages files, you can just use
maintenance/language/rebuildLanguage.php to sort the file right (this script
should be finally used in the PHP view of Allmessages, but I think it should be
optimized first).
Comment 5 AlefZet 2006-11-19 16:16:08 UTC
(In reply to comment #4)
> Note that if you use this for pasting in messages files, you can just use 
maintenance/language/rebuildLanguage.php to sort the file right (this scriptshould be finally used 
in the PHP view of Allmessages, but I think it should beoptimized first).

The order of keys generated with maintenance/language/rebuildLanguage.php is not conform to order in 
MessagesEn.php. Actually rebuildLanguage make natural sort in keys blocks, not in whole file, blocks 
still are unordered.

Comment 6 Rotem Liss 2006-11-19 16:23:54 UTC
(In reply to comment #5)
> The order of keys generated with maintenance/language/rebuildLanguage.php is
not conform to order in 
> MessagesEn.php. Actually rebuildLanguage make natural sort in keys blocks, not
in whole file, blocks 
> still are unordered.

Really? The whole files (well, inside $messages) should be organised like
MessagesEn.php, including keys, blocks, comments, and everything else. That's
the whole point of the script. Please open a bug for that, and attach a
generated file for example.
Comment 7 AlefZet 2006-11-19 16:50:16 UTC
Ok. See Bug 7983
Comment 8 AlefZet 2007-03-27 11:43:23 UTC
Seems the bug should be closed, because not necessary now.

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


Navigation
Links