https://bugzilla.wikimedia.org/show_bug.cgi?id=19217
Web browser: ---
Summary: New magic words: {{USERLANGUAGE}} and {{USERVARIANT}}
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Normal
Component: Page rendering
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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?
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l