Last modified: 2013-09-27 13:00:19 UTC
Reporting this bug per an old translatewiki thread[1], the message [[:w:MediaWiki:Coll-load local book]] doesn't support plural. It needs to support plural over the %NUMPAGES% parameter. This is needed for proper hindi translation of the sentence. Its probably also needed for other languages. Hindi translation won't require support for plural over %TITLE% but I can't say if other languages may need this support. [1]: http://translatewiki.net/wiki/Thread:Support/PLURAL_support_for_Coll-load_local_book
While here, we should get rid of horrible %TITLE% handling with parens: 21 txt = txt.replace(/%TITLE%/, c.title ? '("' + c.title + '")' : ''); 22 txt = txt.replace(/%NUMPAGES%/, num_pages);