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?