https://bugzilla.wikimedia.org/show_bug.cgi?id=20613
Summary: The coll-n_pages message is not formatted properly
Product: MediaWiki extensions
Version: any
Platform: All
URL: http://prototype.wikimedia.org/en.wikipedia.org/Special:
Book/add_article/?arttitle=Main+Page&oldid=0
OS/Version: All
Status: NEW
Keywords: i18n
Severity: trivial
Priority: Normal
Component: Collection
AssignedTo: [email protected]
ReportedBy: [email protected]
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.”)
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l