Hello, although the default language is Turkish on my Moodle website, the administrator and student pages always open in English, I have to change it to Turkish from the language bar at the top. Why is the language selection not fixed, why does it always default to english?
Moodle does not apply even though I changed the default language setting...
Re: Moodle does not apply even though I changed the default language setting...
What version of Moodle is this?
By default Moodle will use the language specified by the user's browser, so check the language selected in your browser preferences. If you want Moodle to ignore the browser's settings you can turn Language autodetect off and set Default language to Turkish.
Re: Moodle does not apply even though I changed the default language setting...
My default language preference in the browser and operating system is Turkish, but it still returns English, is this a mistake?
Re: Moodle does not apply even though I changed the default language setting...
What is Language autodetect and Default language set to in Moodle?
Is the site the one linked to in your profile (https://…/lms)? If I change my browser to use Turkish then that site loads in Turkish as expected. If you use your browser's developer tools (for example Network Monitor in Firefox) you can see that browser requests include its languages in order of preference. With Turkish selected my browser sends the request with header:
Accept-Language: tr-TR,tr;q=0.8,en-US;q=0.5,en;q=0.3
Since tr-TR,tr is the highest priority in the browser's languages and your site has the Turkish language pack then Moodle uses that language for the page:
Can you see what Accept-Language header is being sent by your browser when you get the page in English?
Re: Moodle does not apply even though I changed the default language setting...
Re: Moodle does not apply even though I changed the default language setting...
Picture 1
English is selected here. So as I want, but after logging into the site, the language automatically changes to English.
Picture 2
Re: Moodle does not apply even though I changed the default language setting...
Before logging in Moodle uses your browser's language: the site is in Turkish.
After logging in Moodle uses your user's preferences: the site is in English because your Moodle user has English selected.
Change your user's language:
The site should now appear in Turkish for your user.
For new users ensure Default language is Turkish:
Re: Moodle does not apply even though I changed the default language setting...
However, it still appears in English for my trainees, I checked the default language section, Turkish, but it did not work for these users.
Re: Moodle does not apply even though I changed the default language setting...
For your trainees you must also change their language.
- If there are few users: log into Moodle as a site admin and edit the preferences for each user. From Browse list of users click on the user's name then click Preferences.
- Or if there are many users: use Upload users to change the language, for example:
username,firstname,lastname,email,lang
fred,Fred,Flintstone,fred@example.com,tr
barney,Barney,Rubble,barney@example.com,tr