Le 17/04/2019 à 07:13, Federico Leva (Nemo) a écrit :
Sylvain Chiron, 17/04/19 00:33:
I’d say it would be cool
however if changing the language at the top would also try to go to
localized version of the current page.
That's already the case in
MediaWiki.org because
$wgTranslatePageTranslationULS is true.
<https://www.mediawiki.org/wiki/Help:Extension:Translate/Configuration#Configuration_variables>
The problem is that [[Main page]] is not a translatable page,
[[Template:Main page]] is. The easy solution is to move the template and
avoid transclusion.
We could also make the main page translatable itself: the {{Main
page|en}} transclusion would be translatable.
Or we could have a single ‘Main page’ page, with no subpages for
translation, and use a code that includes the correct template e.g.
{{Main page|{{CURRENTLANGUAGE}}}} or {{Special:MyLanguage/Template:Main
page}}.
Please don’t be so poor when giving technical solutions — :).
--
Sylvain