Language settings: Difference between revisions
m (added link to spanish translation of page) |
(copied text from 2.9 page) |
||
(7 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{Language}} | {{Language}}==User profile settings== | ||
==Language autodetect== | A user can set their preferred language for the site in ''Administration > My profile settings > Edit profile''. | ||
==Course administration settings== | |||
A teacher can force the language of their course in ''Administration > Course administration > Edit settings''. | |||
{{New features}} | |||
The capability [[Capabilities/moodle/site:forcelanguage|moodle/site:forcelanguage]] may be allowed by the admin for users who need to override this language (for example, when testing problems in a course in a language they do not know.) | |||
==Site administration settings== | |||
There are a number of language settings for administrators in ''Administration > Site administration > Language > Language settings''. | |||
===Language autodetect=== | |||
By default, Moodle detects a user's language from their browser setting. However, language auto-detection may be disabled so that the default site language is used instead. | By default, Moodle detects a user's language from their browser setting. However, language auto-detection may be disabled so that the default site language is used instead. | ||
==Default language== | ===Default language=== | ||
This sets the default language for the site. This setting can be overridden by users using the language menu or the setting in their | This sets the default language for the site. This setting can be overridden by users using the language menu or the setting in their user profile. | ||
Note: If a preferred language is set in your browser then this will override the default site language (unless language auto-detection is disabled). | Note: If a preferred language is set in your browser then this will override the default site language (unless language auto-detection is disabled). | ||
Line 16: | Line 27: | ||
$CFG->lang="yourlangcode"; | $CFG->lang="yourlangcode"; | ||
==Display language menu== | ===Display language menu=== | ||
This sets whether the language menu is displayed on the login page and the home page. If this is turned off, the only places where a user can change the language setting is in their user profile or in the course settings if they are a teacher. | This sets whether the language menu is displayed on the login page and the home page. If this is turned off, the only places where a user can change the language setting is in their user profile or in the course settings if they are a teacher. | ||
==Languages on the language menu== | ===Languages on the language menu=== | ||
If you want to limit the number of languages students and teachers can select from, enter a reduced list here. | If you want to limit the number of languages students and teachers can select from, enter a reduced list here. | ||
==Sitewide locale== | If your site uses a [[Language_packs#Parent_language_packs_and_child_language_packs|child language that relies in a parent language]], you can edit 'Languages on language menu' in Site Administration > Language > Language settings, and remove the parent language; eg, if you are in Canada and you want your users to use Canadian French but not the original French language. | ||
===Language selection priority=== | |||
This figure shows Moodle priority when selecting languages: | |||
[[File:mdl_lang_selection_priority.png|640px|Moodle language selection priority]] | |||
===Sitewide locale=== | |||
It's generally best to leave this setting empty, as it's set through each language pack. | It's generally best to leave this setting empty, as it's set through each language pack. | ||
==Excel encoding== | ===Excel encoding=== | ||
Leave as default (Unicode) unless you have a particular reason for wanting Latin encoding. | Leave as default (Unicode) unless you have a particular reason for wanting Latin encoding. | ||
==See also== | |||
*[http://youtu.be/0v72GKn2Wuk Moodle 2 Language Administration settings] MoodleBites video on YouTube | |||
[[fr:Réglages langue]] | [[fr:Réglages langue]] | ||
[[de:Spracheinstellungen]] | [[de:Spracheinstellungen]] | ||
[[es:Configuraciones del idioma]] | [[es:Configuraciones del idioma]] |
Latest revision as of 15:34, 15 October 2015
User profile settings
A user can set their preferred language for the site in Administration > My profile settings > Edit profile.
Course administration settings
A teacher can force the language of their course in Administration > Course administration > Edit settings.
New feature
in Moodle 2.7!
The capability moodle/site:forcelanguage may be allowed by the admin for users who need to override this language (for example, when testing problems in a course in a language they do not know.)
Site administration settings
There are a number of language settings for administrators in Administration > Site administration > Language > Language settings.
Language autodetect
By default, Moodle detects a user's language from their browser setting. However, language auto-detection may be disabled so that the default site language is used instead.
Default language
This sets the default language for the site. This setting can be overridden by users using the language menu or the setting in their user profile.
Note: If a preferred language is set in your browser then this will override the default site language (unless language auto-detection is disabled).
You can enable localised error messages for database connection problems by add the following line to your config.php file:
$CFG->lang="yourlangcode";
This sets whether the language menu is displayed on the login page and the home page. If this is turned off, the only places where a user can change the language setting is in their user profile or in the course settings if they are a teacher.
If you want to limit the number of languages students and teachers can select from, enter a reduced list here.
If your site uses a child language that relies in a parent language, you can edit 'Languages on language menu' in Site Administration > Language > Language settings, and remove the parent language; eg, if you are in Canada and you want your users to use Canadian French but not the original French language.
Language selection priority
This figure shows Moodle priority when selecting languages:
Sitewide locale
It's generally best to leave this setting empty, as it's set through each language pack.
Excel encoding
Leave as default (Unicode) unless you have a particular reason for wanting Latin encoding.
See also
- Moodle 2 Language Administration settings MoodleBites video on YouTube