Page MenuHomePhabricator

<translate> in front of section header confuses section editing
Closed, ResolvedPublic

Description

In https://www.mediawiki.org/wiki/Help:Extension:Translate/Page_translation_administration#Markup_examples
we see the following markup example as a correct example:

<translate>== Culture ==</translate>

However this markup will confuse the section editing feature.

For example, if an article contains the following wikitext

First section

text

<translate>==Second section==</translate>
text2

Third section

text3

and we click on the "edit source" link next to "Second section", we will get an edit box containing the third section.


Version: unspecified
Severity: normal

Details

Reference
bz58946

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:25 AM
bzimport set Reference to bz58946.
bzimport added a subscriber: Unknown Object (MLST).

It might be because adding tags next to section headers causes MediaWiki to think these are no longer editable sections. For example at https://test.wikipedia.org/wiki/G87172 if you click "edit source" next to section header "Hi" you will receive an error message.

I guess the documentation should be updated to remote the "correct" section for that part.

@Niklas: I hope this bug will be fixed :)?

I have updated the documentation to discourage <translate>== Header ==</translate>. While it would be nice to support that as well, I do not see that happening until we do major changes with page translation (to support Visual Editor for example).