Page MenuHomePhabricator

The coll-n_pages message is not formatted properly
Closed, ResolvedPublic

Description

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.”)


Version: unspecified
Severity: trivial
URL: http://prototype.wikimedia.org/en.wikipedia.org/Special:Book/add_article/?arttitle=Main+Page&oldid=0

Details

Reference
bz20613