Topic on Talk:Universal Language Selector

Jump to navigation Jump to search

Is their a way to change the logo link dependent on your chosen language?

3
Summary by 178.7.208.231

Translate the Mainpage with Extension:Translate then on Mediawiki:Mainpage simply put Special:MyLanguage/Mainpage

178.7.208.121 (talkcontribs)

I have a german wiki and am currently working on an english translation. You can track wich language someone is using by implementing some code like this:

{{#ifeq: {{int:edit}} | Edit | English | Not English }}

it returns "English" if someone is using english and "Not English" if someone is using a different language. With this I reworked the whole sidebar to link on their english equivalents if using the english wiki. Now I'm trying to change the link of the logo in the top left corner. I know you can change it by editing the "Mediawiki:Mainpage" page. I tried using this

{{#ifeq: {{int:edit}} | Edit | EnglishMainpage | GermanMainpage}}

but it will always link to the "GermanMainpage". Is their a way to redirect someone on the english/german Maipage by clicking on the logo dependent on wich langauge they have selected?

PerfektesChaos (talkcontribs)

Ungetestet, aber als Idee:

  • Wenn du deine Mainpage als Special:MyLanguage/Mainpage verlinkst und die Versionen davon als Mainpage/de und Mainpage/en anbietest; genauer gesagt: du dich für eine dieser beiden Sprachvarianten als Stammseite entscheidest und die andere als eine von mehreren Übersetzungen dieser Basisversion, dann könnte das vielleicht klappen.

Ansonsten werden dafür gern JavaScript-Gadgets verwendet.

178.0.150.167 (talkcontribs)
Reply to "Is their a way to change the logo link dependent on your chosen language?"