Language FAQ: Difference between revisions
From MoodleDocs
Helen Foster (talk | contribs) (I've set a default site language but when I log in it switches to English. Why?) |
Helen Foster (talk | contribs) (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. | ||
==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). | ||
==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] | ||
* 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?
- Access Administration > Language > Language editing.
- Click the "Edit words or phrases" link in the middle of the page.
- 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.
- 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.
- Change the word or phrase.
- 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
- Translation FAQ
- Language editing
- Using Moodle Languages forum
- Using Moodle Edited Strings Not Visible forum discussion