Last modified: 2011-09-13 03:36:47 UTC
The nifty JS wikitext parser supports the following syntax: [$1 said foo to $2] However, it breaks if you write it: [ $1 said foo to $2] Translators sometimes put spaces there, unwittingly breaking UW for their language. I removed the extraneous spaces from the messages file today as a temporary fix (r95892), but we can't expect translators to know what to do, since the PHP parser ignores the whitespace.
Also, any change here should be added to the jQueryMsg extension as well, and we should someday make UW use that extension so we have only one copy of the parser to maintain.
(In reply to comment #0) > the PHP parser ignores the whitespace. I just tried it -- that syntax doesn't seem to work in regular wikitext. See: http://www.mediawiki.org/wiki/User:NeilK/LinkTest It does, however, work with trailing spaces. Although the concept of "trailing" is somewhat fuzzy given the bidi text here. Arguably jQueryMsg is more correct because at least it tells you that there is a problem; the PHP parser will just emit the square brackets as is. Any objection to marking this wontfix?
Resolving this as invalid (see comment #2) since the parser is IMO doing the right thing. The translator used the wrong format.
While this behavior is technically correct, it's not the most robust implementation. See bug 30874 for details.
Let's just say this is a dupe of the general issues in bug 30707 *** This bug has been marked as a duplicate of bug 30707 ***