Last modified: 2007-06-04 17:31:38 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 10137 - Support of IF in MagicWords
Support of IF in MagicWords
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: parser
Depends on:
  Show dependency treegraph
Reported: 2007-06-04 17:06 UTC by Huji
Modified: 2007-06-04 17:31 UTC (History)
1 user (show)

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


Description Huji 2007-06-04 17:06:34 UTC
Several wikicode commands (like "thumb", "left", etc) can be translated to another language using MagicWords arrays. This is specialy useful to Right-to-Left languages (like Farsi, Hebrew, Arabic) because a Left-to-Right word (like "left") in the middle of a row of right to left text results in troubles in editing the content of the page, using different browsers, while a Right-to-Left translation would not.

One of the mostly used and most important wikicode commands which cannot be translated (correct me if I'm wrong) is the IF command. It would be a very useful update if the code would be revised so the MagicWords extension could also support translation of {{#if: and {{#ifeq: commands. Same for {{#switch: and other commands of this family.

Hope you find it easy to solve.
Comment 1 Rob Church 2007-06-04 17:31:38 UTC
Parser functions can be translated; at the moment, all we have are the default English and Hebrew translations.

Translations should be supplied as patches against ParserFunctions.php; see the bottom of the file.

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