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 (Language moved to Language editing)
(location, formatting)
Line 1: Line 1:
__NOEDITSECTION__
+
Location: ''Administration > Language > Language editing''
== Manage language ==
 
{{Moodle 1.6}}
 
Moodle 1.6 includes a [[Language import utility]].
 
  
 
== Edit strings ==
 
== Edit strings ==
 
{{Moodle 1.6}}
 
{{Moodle 1.6}}
Text in Moodle may be changed by editing the language strings, either via Administration >> [[Configuration]] >> Language or directly i.e. in ''moodledata/lang/''.
+
*From Moodle 1.6 onwards, text may be changed by editing the language strings, either via ''Administration > Language > Language editing'' or directly i.e. in ''moodledata/lang/''.
 
* Click the button "switch" 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 will prevent your local changes to be overwritten by a newer language pack while updating.
 
* Click the button "switch" 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 will prevent your local changes to be overwritten by a newer language pack while updating.
 
* When returning to edit further strings, check that files of edited strings will again be saved to the folder ''parentlanguage_local'', switching folder if necessary.
 
* When returning to edit further strings, check that files of edited strings will again be saved to the folder ''parentlanguage_local'', switching folder if necessary.
  
[[Image:Edit-strings.gif]]
+
[[Image:Edit-strings.gif|frame|center|Moodle 1.6 admin/lang.php]]
  
 
==Previous admin/lang==
 
==Previous admin/lang==
{{Moodle 1.5}}
 
Text in Moodle 1.5 may be changed by editing the language strings, either via Administration >> [[Configuration]] >> Language or directly e.g. in ''lang/en''.
 
  
'''Local language pack'''
+
Text in Moodle 1.5 may be changed by editing the language strings, either via ''Administration > Configuration > Language'' or directly e.g. in ''lang/en''.
  
 
To ensure that any changes are not overwritten by a new version when upgrading, you need to create your own local language pack as follows:
 
To ensure that any changes are not overwritten by a new version when upgrading, you need to create your own local language pack as follows:
  
 
* Copy the contents of your language folder (e.g. ''lang/en'') into a new folder (e.g. ''lang/en_local'') - you will need access to the server to achieve this step, it cannot be done from within Moodle.
 
* Copy the contents of your language folder (e.g. ''lang/en'') into a new folder (e.g. ''lang/en_local'') - you will need access to the server to achieve this step, it cannot be done from within Moodle.
* Make your local language pack the default for the site via Administration >> [[Configuration]] >> [[Variables]].
+
* Make your local language pack the default for the site via ''Administration > Configuration > Variables.
  
 
== See also ==
 
== See also ==
Line 29: Line 24:
 
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=49150 Local language] forum discussion
 
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=49150 Local language] forum discussion
  
[[Category: Administrator]]
 
 
[[Category:Language]]
 
[[Category:Language]]
  

Revision as of 18:14, 31 May 2007

Location: Administration > Language > Language editing

Edit strings

Template:Moodle 1.6

  • From Moodle 1.6 onwards, text may be changed by editing the language strings, either via Administration > Language > Language editing or directly i.e. in moodledata/lang/.
  • Click the button "switch" 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 will prevent your local changes to be overwritten by a newer language pack while updating.
  • When returning to edit further strings, check that files of edited strings will again be saved to the folder parentlanguage_local, switching folder if necessary.
Moodle 1.6 admin/lang.php

Previous admin/lang

Text in Moodle 1.5 may be changed by editing the language strings, either via Administration > Configuration > Language or directly e.g. in lang/en.

To ensure that any changes are not overwritten by a new version when upgrading, you need to create your own local language pack as follows:

  • Copy the contents of your language folder (e.g. lang/en) into a new folder (e.g. lang/en_local) - you will need access to the server to achieve this step, it cannot be done from within Moodle.
  • Make your local language pack the default for the site via Administration > Configuration > Variables.

See also