Last modified: 2014-11-20 09:29:37 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 T60946, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58946 - <translate> in front of section header confuses section editing
<translate> in front of section header confuses section editing
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-24 19:25 UTC by Axel Boldt
Modified: 2014-11-20 09:29 UTC (History)
12 users (show)

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


Attachments

Description Axel Boldt 2013-12-24 19:25:27 UTC
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.
Comment 1 TeleComNasSprVen 2014-03-12 13:30:15 UTC
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.
Comment 2 Niklas Laxström 2014-03-14 07:27:22 UTC
I guess the documentation should be updated to remote the "correct" section for that part.
Comment 3 Steinsplitter 2014-03-28 19:10:18 UTC
@Niklas: I hope this bug will be fixed :)?
Comment 4 Niklas Laxström 2014-11-20 09:29:37 UTC
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).

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


Navigation
Links