Last modified: 2013-05-27 19:28:56 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 T50869, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48869 - Fatal exception when marking a page with parser functions
Fatal exception when marking a page with parser functions
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-27 18:57 UTC by MF-Warburg
Modified: 2013-05-27 19:28 UTC (History)
8 users (show)

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


Attachments

Description MF-Warburg 2013-05-27 18:57:43 UTC
I tried to add <translate> </translate> into <https://meta.wikimedia.org/wiki/Template:Resolution_info/AffCom> in this way:

'''[[File:{{#switch:{{{status}}}|yes|passed|accepted=Yes check.svg|rejected|no|failed|not accepted=X mark.svg|unknown|#default=Blue question mark (italic).svg}}|15px]] <translate>Resolution {{#switch:{{{status}}}|yes|passed|accepted=passed|rejected|no|failed|not accepted=failed|unknown|#default={{{status}}}}} with {{{yes}}} votes in favor{{#if:{{{no|}}}|, {{{no}}} votes against|}}{{#if:{{{abstention|}}}|, {{{abstention}}} abstentions|}}{{#if:{{{noncast|}}}|, {{{noncast}}} votes not cast|}} on {{{date}}}.<translate>'''

(I realize that that is super-ugly to translate, would have tried to refine that in following edits)

Saving is not possible:
[e3a72d3a] 2013-05-27 18:52:37: Fatal exception of type MWException
Comment 1 Nemo 2013-05-27 19:17:54 UTC
I don't know specifically about this syntax but that page translation breaks with such ugly parser functions is expected, see for instance https://www.mediawiki.org/wiki/Help:Extension:Translate/Page_translation_administration#Segmentation , "Parsing order". So I'd call this an enhancement.

It's not clear to me what you're trying to do. If you want to translate the noincluded instructions below, try placing the translate tag on its own line, and if it doesn't work use the usual manual subpage?
Comment 2 PiRSquared17 2013-05-27 19:19:54 UTC
(In reply to comment #0)
> I tried to add <translate> </translate> into
> <https://meta.wikimedia.org/wiki/Template:Resolution_info/AffCom> in this
> way:
> 
> '''[[File:{{#switch:{{{status}}}|yes|passed|accepted=Yes
> check.svg|rejected|no|failed|not accepted=X mark.svg|unknown|#default=Blue
> question mark (italic).svg}}|15px]] <translate>Resolution
> {{#switch:{{{status}}}|yes|passed|accepted=passed|rejected|no|failed|not
> accepted=failed|unknown|#default={{{status}}}}} with {{{yes}}} votes in
> favor{{#if:{{{no|}}}|, {{{no}}} votes against|}}{{#if:{{{abstention|}}}|,
> {{{abstention}}} abstentions|}}{{#if:{{{noncast|}}}|, {{{noncast}}} votes not
> cast|}} on {{{date}}}.<translate>'''
> 
> (I realize that that is super-ugly to translate, would have tried to refine
> that in following edits)
> 
> Saving is not possible:
> [e3a72d3a] 2013-05-27 18:52:37: Fatal exception of type MWException

I don't see </translate>. You ended with "<translate>'", no closing tag.
Comment 3 MF-Warburg 2013-05-27 19:28:56 UTC
> I don't see </translate>. You ended with "<translate>'", no closing tag.

Damn, I'm an idiot. Doing it properly works https://meta.wikimedia.org/w/index.php?title=Template%3AResolution_info%2FAffCom&diff=5514414&oldid=5237167
Whether it should be marked is another question of course, but I close this as resolved invalid.

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


Navigation
Links