Last modified: 2009-09-14 02:25:52 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 T22613, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 20613 - The coll-n_pages message is not formatted properly
The coll-n_pages message is not formatted properly
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Collection (Other open bugs)
unspecified
All All
: Normal trivial with 2 votes (vote)
: ---
Assigned To: PediaPress Development Team
http://prototype.wikimedia.org/en.wik...
: i18n
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-09-12 10:13 UTC by Mormegil
Modified: 2009-09-14 02:25 UTC (History)
2 users (show)

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


Attachments

Description Mormegil 2009-09-12 10:13:04 UTC
The current number of pages in the book is shown using the [[MediaWiki:coll-n_pages]] message. The message uses the {{PLURAL:}} magic word to properly distinguish between “1 page” and “2 pages”. However, the support for this magic word has been (unintentionally, I guess…) removed in r54273 where the message processing was changed from

wfMsgExt( 'coll-n_pages', array( 'parsemag' ), $wgLang->formatNum( $numArticles ) )

to

wfMsg( 'coll-n_pages', $numArticles )

which cannot work correctly (and this wfMsg has been changed to wfMsgHtml since). So that currently, the message always reads “pages”, even for only 1 page in the book (see the linked URL).

(And Siebrand also noted at <http://translatewiki.net/wiki/Support#coll-n_pages_needs_PLURAL_support> that “wfMsgHtml sucks and its use is discouraged.”)
Comment 1 Purodha Blissenbach 2009-09-12 14:37:30 UTC
Her is a permalink to the above URL:
http://translatewiki.net/w/i.php?title=Support&oldid=1485095#coll-n_pages_needs_PLURAL_support
Comment 2 Chad H. 2009-09-14 02:25:52 UTC
Fixed in r56290.

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


Navigation
Links