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

Talk:Language editing

From MoodleDocs
Revision as of 13:00, 12 May 2008 by chris collman (talk | contribs) (→‎Instructions are not 1.9 friendly: reformat added screenshot comment)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Instructions are not 1.9 friendly

I want to change this file to reflect 1.9 but do not want to eliminate information that might be useful for 1.8 users.

I would propose to replace the instructions with those below and copy the old instructions to a new subheading called 1.8 instructions or something.

Here is how the instructions should read for 1.9:

To edit a word or phrase:

  1. Go to the site administration block > Language > Language editing.
  2. Select the installed language pack you wish to edit from the pulldown menu.
  3. Click the "Edit words or phrases" link in the middle of the page. A local folder will 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.
  4. Choose a file to edit from the pulldown menu. 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.
  5. Change the word or phrase in the box provided to the right of the default phrase.
  6. Click the "Save changes" button. The changed phrase will be highlighted in a different color.

More comments

  • I don't understand the black arrows that point up and down which seem to be associated with every edit box.
    • Also when dealing with a sublanguage pack, such as en_us, the screens look very different from the primary language en. I suspect my lack of understanding of the interaction of these two files (perhaps 4 if I also altered the en and include the locals) has caused me problems.
  • And the screen shot for 1.9 is not what I see in demo.moodle--Chris collman 07:57, 12 May 2008 (CDT)

Double brackets

It seems to me there should be a mention somewhere of why sometimes you might see double brackets [[like this]], but I'm not quite sure what the most appropriate place might be.--N Hansen 10:48, 9 February 2006 (WST)

Yes, you're right. The information could also be added to Administration FAQ. --Helen Foster 17:10, 6 July 2006 (WST)

Ability to edit language files in non-standard locations

TODO: Ability to edit language files in non-standard locations... Yes, that would be nice, since more and more 3rd-party modules carry their own language files in their folders, and the translation system does not yet apply to them.

Joseph Rézeau

Correct paths?

"# 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.

  1. 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/)."

I've just tried this out on a test 1.9 install. Should the reference to "moodledata/lang" be "moodle/lang"?

Ray Lawrence

No Ray. It's correct. Since 1.6, all languages except en_utf8, moved to the moodledata folder. This makes it possible to edit them and and download new versions through Moodle without running into problems with security settings.

--Koen roggemans 09:04, 19 August 2007 (CDT)

Language editing in 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.

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.

--Helen Foster 09:01, 20 January 2008 (CST)