Difference between revisions of "Language editing"

Jump to: navigation, search

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

m (removing 1.9 template)
m (Get rid of 1.9 stuff, leave see also links)
Line 1: Line 1:
<p class="note">'''Note:''' Language editing has been improved in Moodle 2.0 onwards. See [[Language customization]] for details.</p>
+
Location: ''Site Administration > Language"
 +
 
 
{{Language}}
 
{{Language}}
<p class="note">'''Please refer to [[Page_notes#Language|these notes]] before editing this page.'''</p>
 
  
 +
Parts of the language interface and process for changing language packs were changed starting in 2.0 onward.
  
Location: ''Administration > Language > Language editing''
+
One or more languages can be installed on a Moodle site via "language packs".  The "[[language settings]]" sub menu controls overall settings for the site. The installed language packs can be used in many different {{Contexts]], for example ''Settings > Course administration > Edit settings > Force language''. Language packs can can be added via the Language sub menu "[[Language packs]]". 
  
== Edit words or phrases ==
+
Specific language packs can be edited via "[[Language customization]]The 2.x process for editing a language pack is very different than earlier version because it adds a filter form to select strings/files and something called a "translator database".  
[[Image:Editing-language-moodle-19.gif|thumb|Edit words or phrases in Moodle 1.9.5]]The language editing interface enables you to easily change any word or phrase used on the site. For example, you may want to change the word "Course" to "Area".
+
"''Note:'' For advanced users, new language packs can be created or (not recommended) existing language files directly edited outside of Moodle interface.
  
To edit a word or phrase:
 
#Access ''Administration > Language > Language editing''.
 
#Click the "Edit words or phrases" link in the middle of the page.
 
#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 color.
 
  
Note: In versions of Moodle prior to 1.9, it is necessary to click the "Switch lang directory" button on the edit words or phrases page. A local language folder, ''parentlanguage_local'', will then be automatically 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. In Moodle 1.9 onwards, the option to switch is no longer provided as edited strings are automatically saved in the local language folder.
 
 
If you wish to make further changes later, be sure to check that files of edited strings will again be saved to the folder ''parentlanguage_local'', switching folder if necessary.
 
 
==Changes in 1.9==
 
[[Image:screenshot-admin-lang-19.png|thumb|Language pack maintaining in Moodle 1.9]]
 
* From Moodle 1.9 onwards, only users with the capability [[Capabilities/moodle/site:langeditmaster|moodle/site:langeditmaster]] may modify the master language packages (i.e. those being saved in ''moodledata/lang/''). By default, the admin role has this capability set to "''prevent''". It is expected that only language maintainers will manually allow this for themselves. Language pack maintainers have an additional "Language pack maintaining" tab.
 
* From Moodle 1.9 onwards, only users with the capability [[Capabilities/moodle/site:langeditlocal|moodle/site:langeditlocal]] may customize the site translation (i.e. files being saved in ''moodledata/lang_local/''). Admins are allowed to do this by default.
 
* Added ability to edit language files in non-standard locations, i.e. string files for various types of plugin (e.g. blocks, database presets, 3rd party modules etc.)
 
  
 
== See also ==
 
== See also ==
 
+
* [[Local language]]
 +
* [[Language customization]] for language editing in Moodle 2.0
 
* [[Language FAQ]]
 
* [[Language FAQ]]
 
* [[Translation]]
 
* [[Translation]]
* [[Local language]]
+
 
 
* [[Development:Places to search for lang strings]]
 
* [[Development:Places to search for lang strings]]
* [[Language customization]] for language editing in Moodle 2.0
+
 
 
* [http://www.moodletutorials.org/view_video.php?viewkey=4a10e0db5e4b97fc2af3 Tutorial Showing How to Change a Word or Phrase in Moodle 1.9]
 
* [http://www.moodletutorials.org/view_video.php?viewkey=4a10e0db5e4b97fc2af3 Tutorial Showing How to Change a Word or Phrase in Moodle 1.9]
 
Using Moodle forum discussions:
 
Using Moodle forum discussions:

Revision as of 17:33, 18 July 2011

Location: Site Administration > Language"


Parts of the language interface and process for changing language packs were changed starting in 2.0 onward.

One or more languages can be installed on a Moodle site via "language packs". The "language settings" sub menu controls overall settings for the site. The installed language packs can be used in many different {{Contexts]], for example Settings > Course administration > Edit settings > Force language. Language packs can can be added via the Language sub menu "Language packs".

Specific language packs can be edited via "Language customization. The 2.x process for editing a language pack is very different than earlier version because it adds a filter form to select strings/files and something called a "translator database". "Note: For advanced users, new language packs can be created or (not recommended) existing language files directly edited outside of Moodle interface.


See also

Using Moodle forum discussions: