Last modified: 2007-06-04 17:31:38 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 T12137, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10137 - Support of IF in MagicWords
Support of IF in MagicWords
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: parser
Depends on:
Blocks:
  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: ---


Attachments

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.


Navigation
Links