https://bugzilla.wikimedia.org/show_bug.cgi?id=54839

--- Comment #10 from Philippe Verdy <[email protected]> ---
Ideally also, MediaWiki should support natural expansion of transcluded pages
that are alrady resolved by "Special:MyLanguage/", which should already use the
user's language.

So instead of using

  {{TNT|Template:template name|uselang={{uselang}}| ... extra params}}

which is asumed to transclude and expand the content of the template in the
specified language, we could directly use:

  {{Special/MyLanguage/Template:template name| ... extra params}}

without needing any Lua module for doing that. It would transclude and expand
exactly the same page as the one linked to by:

  [[Special/MyLanguage/Template:template name]]

However for now, MediaWiki cannot transclude any page that is not in a content
or talk namespace of the local wiki. It rejects the transclusion of all Special
pages. This limitation could be lifted by implementing a white list on allowed
special pages, notably for:

   Special:MyLanguage/*

but not for:

   Special:Preference


{{uselang}} used above in the call to the TNT utility template is; on Meta; a
template which is, more or less, what you have from {{int:lang}} except that
this {{int:lang}} is not working everywhere and requires importing resources in
the target wiki to match ''some'' user language, but not necesarily the
effective user language because "Mediawiki:lang/code" may not always return the
specified "code" but the code set in another "Mediawiki:lang/*" resource using
fallbacks.

The intent of {{uselang}} is to be able to return exactly the prefered user
language (set in his user preferences, if that language is supported in
MediaWiki, or the preferred used language defined in his browser, xhich could
be "de_LI", but that MEdiaWiki could normalize to BCP47, after resolcinv
replaced codes from the IANA registry, and forcing it to lowercase using only
hyphens and no underscores as "de-li"). Iteally we should not need any template
to do that, and Meta wiki should expose {{USELANG}} drectly (it will match the
user language, or the language requested in the "?uselang=*" URL query string
to view a page.

Mediawiki should accept "?setlang=*" as well by normalizing the specified code
to lowercase BCP47, and store it in user's preference, even if that language is
not supported in the UI and not proposed in the list of supported languages:
MediaWiki will use the normal fallback mechanisms where appropriate to find a
supported language for its interface.

But more generally for translations (which hould be more liberal on
multilingual sites like Commons, Meta or Incubator), every valid BCP47 code
should be accepted, even if MEdiaWiki is not supporting it for now in its
interface, or if there's no dedicated linguistic edition of Wikipedia or
Wiktionary (or other project localized with specific editions, separate
subdomains, and separate databases).

-- 
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

Reply via email to