Last modified: 2009-06-15 23:45:40 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 T21217, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19217 - New magic words: {{USERLANGUAGE}} and {{USERVARIANT}}
New magic words: {{USERLANGUAGE}} and {{USERVARIANT}}
Status: RESOLVED DUPLICATE of bug 10964
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-15 15:51 UTC by Philip Tzou
Modified: 2009-06-15 23:45 UTC (History)
7 users (show)

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


Attachments

Description Philip Tzou 2009-06-15 15:51:41 UTC
I suggest to add two new magic words for retrieving user's interface language and variant language(if has one).

Some wikis, such as Commons and zhwiki, works with muti-language or muti-variant, could use these magic words. In fact, there is a similar way to retrieve interface language now. In Commons, they used {{int:Lang}}; in zhwiki, they used {{int:Conversionname}}. They two are basically same but represent as different title.

There are some issues concerned about these magic words.

the first one is the link tables. "A link to [[SomePage/{{USERLANGUAGE}}]] will always differ, and the link table will be incorrect."(Siebrand) But I thouth we could add all links (under different {{USERLANGUAGE}}) into link table to solve this problem.

the second one could be parser cache. Tim explained "the parser cache works by using the current user language (which includes the variant) as part of the cache key, it's invalidated by the database so there's no need to clear all variants when the article changes."

What's your suggestion?
Comment 1 Chad H. 2009-06-15 15:54:03 UTC
Suggest WONTFIX per all the previous per-user keyword suggestions. {{CURRENTUSER}} et al.
Comment 2 Niklas Laxström 2009-06-15 15:57:28 UTC
The use case is not clearly stated. As this cannot be implemented as is, a use
case is needed to determine whether this is the best solution for the problem
at all.
Comment 3 Philip Tzou 2009-06-15 15:58:37 UTC
to demon: {{CURRENTUSER}} couldn't be count, but {{USERLANGUAGE}} and {{USERVARIANT}} are
limited by the amount of languages supported by MediaWiki.
Comment 4 Philip Tzou 2009-06-15 16:02:55 UTC
Niklas Laxström:

Commons used {{int:lang}} to convert content between different language now. And {{int:lang}} were similar to {{USERLANGUAGE}}.

For example: http://commons.wikimedia.org/wiki/File:Old-friend.jpg

You can check the different of contents by indicating different "uselang=".
Comment 5 Philip Tzou 2009-06-15 16:04:22 UTC
Oh I forget to use replay..
Comment 6 Splarka 2009-06-15 23:45:40 UTC
{{USERVARIANT}} is a dupe of bug 10964, duping bug to that.

{{USERLANGUAGE}} is a dupe of bug 2085, this is fakeable with {{int:}} but that bug is also still open.



*** This bug has been marked as a duplicate of bug 10964 ***

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


Navigation
Links