# Mediawiki - wgLanguageCode

**URL:** <https://discuss.freedombox.org/t/mediawiki-wglanguagecode/1764>\
**Category:** Support\
**Created:** [October 12, 2021, 12:28pm UTC](https://discuss.freedombox.org/t/mediawiki-wglanguagecode/1764 "2021-10-12T12:28:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dietmar](https://discuss.freedombox.org/letter_avatar_proxy/v4/letter/d/c5a1d2/32.png) [@Dietmar](https://discuss.freedombox.org/u/Dietmar)\
**Post date:** [October 12, 2021, 12:28pm UTC](https://discuss.freedombox.org/t/mediawiki-wglanguagecode/1764/1 "2021-10-12T12:28:42Z")

</div>

The interface of mediawiki is by default english. It can be adjusted by changing $wgLanguageCode in file LocalSettings.php or probably the 2 other Freedombox\*.php files in /etc/mediawiki:

a) which file do I best use for changing in my case to “de” to avoid config questions at upgrades?  
b) I suggest to include the change of this field in the user interface Plinth

---

<div class="post-metadata">

**Author:** ![Sunil](https://discuss.freedombox.org/user_avatar/discuss.freedombox.org/sunil/32/8_2.png) [@Sunil](https://discuss.freedombox.org/u/Sunil)\
**Post date:** [October 12, 2021, 2:02pm UTC](https://discuss.freedombox.org/t/mediawiki-wglanguagecode/1764/2 "2021-10-12T14:02:26Z")

</div>

You should edit `/etc/mediawiki/FreedomBoxSettings.php`. Looks like you need to run `echo 'MessageCache::singleton()->clear()' | php maintenance/eval.php` after setting the value [according to documentation](https://www.mediawiki.org/wiki/Manual:%24wgLanguageCode). I have created [an issue](https://salsa.debian.org/freedombox-team/freedombox/-/issues/2137) for FreedomBox to allow setting this value.

---

<div class="post-metadata">

**Author:** ![Dietmar](https://discuss.freedombox.org/letter_avatar_proxy/v4/letter/d/c5a1d2/32.png) [@Dietmar](https://discuss.freedombox.org/u/Dietmar)\
**Post date:** [October 12, 2021, 2:44pm UTC](https://discuss.freedombox.org/t/mediawiki-wglanguagecode/1764/3 "2021-10-12T14:44:21Z")

</div>

Thanks,  
instead of clearing as you explained above, I simple de-activated mediawiki in Plinth and re-activated it again. This also works.
