Language editing: Difference between revisions
Helen Foster (talk | contribs) m (→Changes in 1.9: formatting) |
David Mudrak (talk | contribs) |
||
Line 12: | Line 12: | ||
{{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/''). It is prevented from all roles by default. It is expected that only language maintainers will manually allow this to themselves. | {{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/''). It is prevented from all roles by default. It is expected that only language maintainers will manually allow this to themselves. | ||
* 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. | * 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. | ||
* 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.) | * TODO: 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.) | ||
* Several GUI improvements including tabs | * Several GUI improvements including tabs | ||
Revision as of 13:03, 29 July 2007
Location: Administration > Language > Language editing
Edit strings
- 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.
Changes in 1.9
Template:Moodle 1.9* From Moodle 1.9 onwards, only users with the capability moodle/site:langeditmaster may modify the master language packages (i.e. those being saved in moodledata/lang/). It is prevented from all roles by default. It is expected that only language maintainers will manually allow this to themselves.
- From Moodle 1.9 onwards, only users with the capability 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.
- TODO: 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.)
- Several GUI improvements including tabs
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
- Translation
- Using Moodle Languages forum
- Using Moodle Local language forum discussion