Last modified: 2013-06-25 12:48:17 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 T52164, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50164 - Magic word "int:" should accept ISO 639 language code to translate interface messages into user define language
Magic word "int:" should accept ISO 639 language code to translate interface ...
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
unspecified
All All
: Unprioritized enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-25 10:01 UTC by Eduard Braun
Modified: 2013-06-25 12:48 UTC (History)
6 users (show)

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


Attachments

Description Eduard Braun 2013-06-25 10:01:58 UTC
As the description says it would be helpful sometimes if the magic word {{int:}} would allow for an additional parameter which accepts an ISO 639 language code and translates the interface message to this user supplied language instead of the currently set user language.

Something analogous to
  {{#language:language code|target language code}}

Sadly
  {{int:interface message|target language code}}

isn't possible though, since {{int:}} already accepts parameters to be inserted into the interface message. Some thought has to be put in how to best specify the language code therefore.
Comment 1 Niklas Laxström 2013-06-25 10:07:37 UTC
Given that there is no sane way to extend {{int:}} syntax and that no compelling use case has been provided, I don't think that this will be implemented.

There are already other ways to do this, either with Lua or parser functions using {{MediaWiki:interface message/code}}.
Comment 2 Eduard Braun 2013-06-25 11:17:10 UTC
OK, thanks, {{MediaWiki:interface message/code}} seems reasonable. Did not think or read about this possibility before.

Does this work for all messages accessible by {{int:}}?
Comment 3 Niklas Laxström 2013-06-25 12:48:17 UTC
There might be some differences between the two but in general I think they work for the same messages.

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


Navigation
Links