Note: You are currently viewing documentation for Moodle 2.5. Up-to-date documentation for the latest stable version of Moodle may be available here: Language FAQ.

Language FAQ: Difference between revisions

From MoodleDocs
(I've set a default site language but when I log in it switches to English. Why?)
(translation questions moved to Translation FAQ)
Line 11: Line 11:
#Change the word or phrase.
#Change the word or phrase.
#Click the "Save changes" button. The changed phrase will be highlighted in a different colour.
#Click the "Save changes" button. The changed phrase will be highlighted in a different colour.
==I'd like to help improve an existing language pack. Where do I start?==
You can contact the maintainer of the language pack and ask where you can help. See [[Translation credits]] for a list of translators. The top name of each language pack is the current language pack maintainer. If you don't get any response, you can email [mailto:translation@moodle.org translation@moodle.org].
Another option is to check whether your language has a community discussion course - see http://moodle.org/course/category.php?id=3 - and if so, post in a forum.
==I've found an error in a language pack. Who do I contact?==
Please contact the language pack maintainer. See [[Translation credits]] for contact details.
Another option is to check whether your language has a community discussion course - see http://moodle.org/course/category.php?id=3 - and if so, post in a forum.


==Why are my changes not saved if I edit a language pack with the Moodle language pack editor?==
==Why are my changes not saved if I edit a language pack with the Moodle language pack editor?==


This could be caused by a PHP accelerator. Try switching it of (usually in php.ini).
This could be caused by a PHP accelerator. Try switching it of (usually in php.ini).
==The month names and days are displayed in English. How can I translate them?==
Names of days and months are pulled out of your operating system. The system is configured for Moodle in langconfig.php where you have the strings ''locale'' (for -nix type operating systems) and ''localewin'' (for Windows operating systems) that should point to the right locale on your server. Your server operating system should support the language (= locale should be installed) - see also [http://moodle.org/mod/forum/discuss.php?d=79792 Month-name translation problem] for an alternative solution.


==I've set a default site language but when I log in it switches to English. Why?==
==I've set a default site language but when I log in it switches to English. Why?==
Line 36: Line 22:
== See also ==
== See also ==


* [[Translation FAQ]]
* [[Language editing]]
* Using Moodle [http://moodle.org/mod/forum/view.php?f=26 Languages forum]
* Using Moodle [http://moodle.org/mod/forum/view.php?f=26 Languages forum]
* [[Language editing]]
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=131927#p604462 Edited Strings Not Visible] forum discussion
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=131927#p604462 Edited Strings Not Visible] forum discussion



Revision as of 08:36, 20 September 2010

Where can I set the default language for the site?

Site Administration > Language > Language settings

How can I change a word or phrase used in Moodle?

  1. Access Administration > Language > Language editing.
  2. Click the "Edit words or phrases" link in the middle of the page.
  3. On the edit words or phrases page click the "Switch lang directory" button and a local language folder, parentlanguage_local, will automatically be created in moodledata/lang. Files of edited strings will then be saved in this folder. This is necessary to prevent changes that you make being overwritten by a newer language pack when updating your Moodle site.
  4. Choose a file to edit. You may need to search through a few files before finding the file containing the word you wish to change. The file moodle.php contains all common site-wide phrases.
  5. Change the word or phrase.
  6. Click the "Save changes" button. The changed phrase will be highlighted in a different colour.

Why are my changes not saved if I edit a language pack with the Moodle language pack editor?

This could be caused by a PHP accelerator. Try switching it of (usually in php.ini).

I've set a default site language but when I log in it switches to English. Why?

By default, Moodle detects a user's language from their browser setting. This language auto-detection may be disabled so that the default site language is used instead in Administration > Language > Language settings.

See also