Last modified: 2014-01-07 11:21:42 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 T60918, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58918 - Some messages use HTML code, not wikicode and result in formatting errors
Some messages use HTML code, not wikicode and result in formatting errors
Status: UNCONFIRMED
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
unspecified
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-23 22:06 UTC by Monomium
Modified: 2014-01-07 11:21 UTC (History)
7 users (show)

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


Attachments

Description Monomium 2013-12-23 22:06:08 UTC
MediaWiki:Tpt-discouraged-language-force and MediaWiki:Tpt-discouraged-language  both use <strong></strong> tags by default. These do not render text as bold in the actual extension. They should be changed to bold tags like '''this'''.
Comment 1 Niklas Laxström 2014-01-02 11:57:01 UTC
I don't understand the bug report. Unless the message accepts raw html (which it should not, if it does it is a bug), either <strong> and ''' work at the same time, or neither of them works.
Comment 2 Niklas Laxström 2014-01-02 12:01:00 UTC
The code is:
241-                    new mw.Api().parse(
242-                            mw.message( group.priorityforce ?
243:                                    'tpt-discouraged-language-force' :
244-                                    'tpt-discouraged-language',
245-                                    '',
246-                                    $.uls.data.getAutonym( targetLanguage ),
247-                                    preferredLanguages.join( ', ' )
248-                            ).parse()
249-                    ).done( function ( parsedWarning ) {
250-                            $groupWarning.html( parsedWarning );
251-                    } );

So it is in JavaScript but it is parsed via the API. I'm confused though why the input to the API call is parsed first, as that would lead to double escaping if there were links and stuff.
Comment 3 Siebrand Mazeland 2014-01-07 11:21:34 UTC
This needs steps to reproduce.

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


Navigation
Links