0

i had been having a bug, where my system messages are shown in the wrong language. I have got one simple question: How do i set the system message to always be e.g. english or german without adding &uselang=de to the URL. Is there a way to permanently change it in the local settings?

Veve
  • 6,643
  • 5
  • 39
  • 58
Divide by Zero
  • 1,343
  • 1
  • 14
  • 37

1 Answers1

2

Yes, you need to change it in your file LocalSettings.php. For example, if you want to use Brazilian Portugese change it to:

$wgLanguageCode = 'pt-br';

For more info, see the manual: Manual:$wgLanguageCode

Nemo
  • 2,441
  • 2
  • 29
  • 63
Ainali
  • 1,613
  • 13
  • 23
  • This is not the solution sadly. My `$wgLanguageCode` is always the correct one. I have tested this. The System messages may be in the wrong language anyway. See my other question: http://stackoverflow.com/questions/34917625/mediawiki-language-bug-still-persists/34954425?noredirect=1#comment57755349_34954425 – Divide by Zero Jan 27 '16 at 08:40
  • 1
    Hm, I guess then that your solution is [reporting the bug](https://phabricator.wikimedia.org) and wait until it get fixed properly. – Ainali Jan 28 '16 at 09:21
  • I am using a custom skin and have added lots of custom elements to my wiki. It is possible, that the error stems from my alterations. Should i still report the bug? – Divide by Zero Jan 28 '16 at 09:52
  • Yes, report it. If it is due to your alterations the bug will be closed as invalid, but if not you have helped the Mediawiki community too. – Ainali Feb 02 '16 at 07:34