Last modified: 2009-05-11 19:15:02 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 T20631, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18631 - English doesn't show number of categories
English doesn't show number of categories
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.15.x
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/wiki/Hobart,_...
: patch
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-04-30 10:51 UTC by Dan Jacobson
Modified: 2009-05-11 19:15 UTC (History)
3 users (show)

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


Attachments

Description Dan Jacobson 2009-04-30 10:51:55 UTC
Gentlemen, there I was scratching my head as to why English users are
deprived of knowing just how many categories there are, vs. Chinese
users.

$ cat script
for i in '' ?uselang=zh-tw
do w3m -dump http://en.wikipedia.org/wiki/Hobart,_Tasmania$i
done|grep 'Settlements established in 1803'
$ sh script
Categories: Settlements established in 1803 | Australian capital cities |
6個分類: Settlements established in 1803 | Australian capital cities | Coastal

Note how the 6 is gone in English.
That's because you need to do:
--- MessagesEn.php	(revision 50070)
+++ MessagesEn.php	(working copy)
-'pagecategories'                 => '{{PLURAL:$1|Category|Categories}}',
+'pagecategories'                 => '$1 {{PLURAL:$1|Category|Categories}}',

Probably you blew it for many other strings and languages too.
Or maybe it was on purpose, "too much clutter"?

P.S. Consider adding a space after the number for all Chinese varieties,
not just MessagesYue.php.
Comment 1 Niklas Laxström 2009-04-30 19:45:18 UTC
The question is why Chinese is showing this mostly non-useful information compared to English translations. Translations should be translations, not customisations. If this information would be deemed useful (I don't think it is[1]), one language departing from the source leaves the other three hundred languages without the improvement.

Also the number must be passed trough $wgLang->formatNum() if it were to be used like this, but it is currently not:
> $msg = wfMsgExt( 'pagecategories', array( 'parsemag', 'escapenoentities' ), count( $allCats['normal'] ) );

[1] If people can't count the few categories there is, there is probably too many, imho.
Comment 2 Chad H. 2009-04-30 21:51:10 UTC
Az, Gan, Gan_hans, Gan_hant, Hak, Lzh, Yue, Zh_hans, Zh_hant all seem to be using $1 outside of the {{PLURAL:}} and need fixing per comment #1
Comment 3 Dan Jacobson 2009-04-30 22:24:54 UTC
Geez. Next time I'll keep my big mouth shut. "Over here, we need a
doctor." never thinking the perpetrators were just around the corner
with their machine guns, returning to wipe out any remaining
survivors...
Comment 4 Niklas Laxström 2009-05-01 07:26:28 UTC
(In reply to comment #3)
Didn't meant to sound nasty, but just to state that these kinds of changes should be discussed for the benefit of all languages.
Comment 5 Shinjiman 2009-05-01 12:30:00 UTC
FYI, The Chinese languages does not have the plural word on there so that word usage would be the same for both singular and plural.
Comment 6 Siebrand Mazeland 2009-05-11 19:15:02 UTC
Not a bug. See comments.

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


Navigation
Links