Last modified: 2013-08-10 20:38:40 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T32246, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30246 - MediaWiki:Lqt-sign-not-necessary renders "<nowiki>" tags verbatim
MediaWiki:Lqt-sign-not-necessary renders "<nowiki>" tags verbatim
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
LiquidThreads (Other open bugs)
unspecified
All All
: Low enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://translatewiki.net/wiki/Special...
:
Depends on: 45173
Blocks: messages
  Show dependency treegraph
 
Reported: 2011-08-05 12:51 UTC by Purodha Blissenbach
Modified: 2013-08-10 20:38 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Purodha Blissenbach 2011-08-05 12:51:21 UTC
the message MediaWiki:Lqt-sign-not-necessary warns against
using four tildes, or "~~~~". If you want to be clear about that,
you may include the string "~~~~" in your local version of the
message. So as to enter the string and have it not replaced
automatically, it has to be included in <nowiki>s.

That works fine, when amending the message text.

However, when the message is being used, "<nowiki>" is
rendered to the user.
Comment 1 sheac 2012-05-13 19:41:39 UTC
This bug has not been touched in at least six months. With this in mind, I've been asked by the bugmeister to bump this bug's priority down from "High". Concerns can be addressed to mah@everybody.org.
Comment 2 Alex Monk 2012-07-24 14:05:24 UTC
Since this message is added by JS I'm not sure what the best way to fix this problem would be. Strip <nowiki> and </nowiki> from the resulting string maybe?
Comment 3 Alex Monk 2013-02-19 20:04:21 UTC
I've got this:

- var msg = mw.msg('lqt-sign-not-necessary');
+ var msg = mw.jqueryMsg.getMessageFunction( { format: 'text' } )( 'lqt-sign-not-necessary' );

Which seems to fix the issue. But there must be some simpler way.
Comment 4 Matthew Flaschen 2013-02-19 20:39:04 UTC
I think this workaround will only work temporarily due to https://gerrit.wikimedia.org/r/#/c/49350/ .  

<nowiki> is being treated as an HTML tag, then the text is being extracted.

That will break when support for arbitrary HTML is removed again.  The right way to fix this is to add <nowiki> support to jqueryMsg.  I've added bug 45173 for this.
Comment 5 Alex Monk 2013-07-19 20:13:48 UTC
Unassigning myself from this then.
Comment 6 Nemo 2013-08-10 20:38:30 UTC
(In reply to comment #0)
> the message MediaWiki:Lqt-sign-not-necessary warns against
> using four tildes, or "~~~~". If you want to be clear about that,
> you may include the string "~~~~" in your local version of the
> message.

Just don't. Doesn't seem a compelling enough use case.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links