https://bugzilla.wikimedia.org/show_bug.cgi?id=44459

Matthew Flaschen <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #19 from Matthew Flaschen <[email protected]> ---
mw.msg is a shortcut for mw.message(...).plain(), and contrary to what the old
mediawiki.js comment suggested, plain is not supposed to support {{plural}}. 
See https://www.mediawiki.org/wiki/Manual:Messages_API#Format and the source
code of Message.php.

plain "returns the message text as-is; only parameters are substituted."

Code that needs {{-transformation on the client side should use 'parse' ('text'
is not currently supported in JS):

mw.message(key).parse()

There is no good way (other than format, which is designed for this) to figure
out how to parse message text like "[<b>−</b>]".

If you give the affected messages, I can help change them to use parse.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to