Last modified: 2013-03-13 16:42:22 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 T48071, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46071 - Strings which contain "<translate>" can not be translated
Strings which contain "<translate>" can not be translated
Status: RESOLVED WONTFIX
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-03-13 16:24 UTC by Lockal
Modified: 2013-03-13 16:42 UTC (History)
5 users (show)

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


Attachments

Description Lockal 2013-03-13 16:24:25 UTC
This string is used in one of our projects:
    Use <translate>, <rotate>, <scale> to specify transformations

<translate>, <rotate> and <scale> are XML tags from COLLADA specification, but MediaWiki treats <translate> as parser extension tag and fails to save translations with this text:
    The modification you tried to make was aborted by an extension hook (hookaborted)
Comment 1 Niklas Laxström 2013-03-13 16:42:22 UTC
It is a custom to escape html tags when referring to the in wikitext with <nowiki> or &lt; unless you actually want to use those tags in wikitext, which doesn't seem to be the case.

I don't see any way how I could fix this in Translate extension itself.

As a workaround I you could try to use the content handler to force them to be text:

$wgHooks['ContentHandlerDefaultModelFor'][] = function( $title, &$model ) {
	if ( $title->getNamespace() == NS_YOURNAMESPACE ) {
		$model = CONTENT_MODEL_TEXT;
	}
	return true;
};

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


Navigation
Links