Note: You are currently viewing documentation for Moodle 2.2. Up-to-date documentation for the latest stable version is available here: Language FAQ.

Language FAQ: Difference between revisions

From MoodleDocs
(How can I provide course headings in more than one language?)
 
(17 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Language}}
==Where can I set the default language for the site?==
==Where can I set the default language for the site?==


Line 5: Line 6:
==How can I change a word or phrase used in Moodle?==
==How can I change a word or phrase used in Moodle?==


#Access ''Administration > Language > [[Language editing]]''.
In ''Settings > Site Administration > Language > Language customization''.
#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.


==I'd like to help improve an existing language pack. Where do I start?==
See [[Language customization]] for details.
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.
==How can I find where a language string is located?==


==I've found an error in a language pack. Who do I contact?==
Tick the 'Show origin of languages strings' checkbox in ''Settings > Site administration > Development > Debugging'' then visit the page containing the string you want to customize.


Please contact the language pack maintainer. See [[Translation credits]] for contact details.
==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 off (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 ''Site administration > Language > [[Language settings]]''.
 
==How can I provide course content in more than one language?==
 
Labels, web pages, activity descriptions etc. may be provided in more than one language using the [[Multi language content|Multi language content filter]].
 
==How can I provide course headings in more than one language?==
 
Set the multi language content filter to apply to content AND headings in ''Settings > Site administration > Plugins > Filters > Manage filters''.
 
==How can I disable (hide) the language dropdown menu on the site front page?==
 
Go to ''Settings > Site administration > Language > Language settings'' and un-tick the 'Display language menu' checkbox.


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.
==Are there any short cuts for editing a language?==
Yes, but be careful.  You can make use of the customize language process.  Basically copy the php files that contain the strings you want to change to the moodledata/lang/local folder.   For example, copy the /lang/en/moodle.php file to someplace.  Edit the file with a search and replace with whole word and case sensitive turned on, change Teacher to Instructor and Teachers to Instructors, do the same for teacher and teachers.  Now copy that saved copy of the moodle.php file to the  moodledata/lang/en_local folder.  Be careful not to change the String name.  


==Why are my changes not saved if I edit a language pack with the Moodle language pack editor?==
Because it is a customization, Moodle will not erase the xx_local language files in Moodledata with an upgrade.  Moodle will upgrade any language folders it finds in the moodle/lang folder.


This could be caused by a PHP accelerator. Try switching it of (usually in php.ini).
==How can I make a new language pack?==


==The month names and days are displayed in English. How can I translate them?==
Look at https://docs.moodle.org/22/en/Translation. Even though your new language pack might be in a version of English (such as "Pirate talk!") it is still classed as a translation.
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 sollution.


== See also ==
== See also ==


* [[Translation FAQ]]
* 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


[[Category:Language]]
Using Moodle forum discussions
* [http://moodle.org/mod/forum/discuss.php?d=131927#p604462 Edited Strings Not Visible]
* [http://moodle.org/mod/forum/discuss.php?d=163375 Language customization in 2.0]
 
[[Category:FAQ]]
[[Category:FAQ]]


[[fr:FAQ de langue]]
[[fr:FAQ de langue]]
[[de:Sprache FAQ]]

Latest revision as of 12:44, 9 July 2012

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?

In Settings > Site Administration > Language > Language customization.

See Language customization for details.

How can I find where a language string is located?

Tick the 'Show origin of languages strings' checkbox in Settings > Site administration > Development > Debugging then visit the page containing the string you want to customize.

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 off (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 Site administration > Language > Language settings.

How can I provide course content in more than one language?

Labels, web pages, activity descriptions etc. may be provided in more than one language using the Multi language content filter.

How can I provide course headings in more than one language?

Set the multi language content filter to apply to content AND headings in Settings > Site administration > Plugins > Filters > Manage filters.

How can I disable (hide) the language dropdown menu on the site front page?

Go to Settings > Site administration > Language > Language settings and un-tick the 'Display language menu' checkbox.

Are there any short cuts for editing a language?

Yes, but be careful. You can make use of the customize language process. Basically copy the php files that contain the strings you want to change to the moodledata/lang/local folder. For example, copy the /lang/en/moodle.php file to someplace. Edit the file with a search and replace with whole word and case sensitive turned on, change Teacher to Instructor and Teachers to Instructors, do the same for teacher and teachers. Now copy that saved copy of the moodle.php file to the moodledata/lang/en_local folder. Be careful not to change the String name.

Because it is a customization, Moodle will not erase the xx_local language files in Moodledata with an upgrade. Moodle will upgrade any language folders it finds in the moodle/lang folder.

How can I make a new language pack?

Look at https://docs.moodle.org/22/en/Translation. Even though your new language pack might be in a version of English (such as "Pirate talk!") it is still classed as a translation.

See also

Using Moodle forum discussions