Moodle is widely known and used in many countries around the globe. You can run moodle in over a 70 languages (English - of course ;-), German, French, but also Japanese or Hindi.). You can find full list of languages here
We call these language packages language packs (or langpacks in short). They are consisting of php files with lines:
define['somedefinition'] = "What the definition means, in selected language"
You can change the right sides of these lines to change literal meanings of definitions on the left sides.
Language variables are separated into different files for better navigation, mostly with names of modules/blocks they belong to. General strings are found in moodle.php file
Let say, we want to change label Course categories that is on the Front page to something different. Like Lesson categories for example.
Here is step by step approach.
- Login as administrator
- Go to Site Administration block
- Choose Language link
- Choose Language editing
- Select language pack you want to edit (if you have more than one installed)
- Choose Edit words or phrases
- Select file to edit (moodle.php in our case)
- Find there a "Course categories" string (with CTRL+F)
- Change the meaning of the definition to "Lesson categories"
- You will find Save changes button at the bottom on the page
Problems you may run into:
Definition meanings are not writable
You can find button needed for creating local directory on Edit words or phrases page.
I don't know what file to edit
Solution: Use some IDE that can search through directories and files in. I am using free PSPad It's very helpful for programming and creating Moodle customs and it's is really user friendly.
And as usually you can find small video (1:07, 1.4MB) with higher mentioned process HERE
No comments:
Post a Comment