If you’d like to translate your Moodle site from English to another language, follow the steps below to install and configure language settings.
Go to:
Site administration > Language > Language settings
Here, you can configure:
💡 Changing the default language will only apply to new users. Existing users will retain their previously selected language unless manually changed.
Moodle follows a priority order when deciding which language to display:
For a visual representation, refer to the Moodle documentation:
🔗 Language selection priority
To localize error messages (such as database connection errors), add this line to your config.php
file:
$CFG->lang = 'yourlangcode';
Replace 'yourlangcode'
with the code of the language you installed (e.g., 'fr'
for French).
You can control whether the language switcher menu is shown:
🧩 Note: The appearance and location of the language menu may vary based on your theme. For example, in the Boost theme, it appears in the top bar on the left, near the custom menu items.
Once the site language is switched, you can start translating all visible content—such as course pages, blocks, and custom text—by editing them manually in the selected language.