Local language pack on Moodle 1.8
I have been keeping my moodle notes in tiddlywiki, only it sometimes strips the code. So I might be duplicating some information here as I sometimes need it to answer questions on moodle.org!
Here are my notes for creating and using a local language pack. This is a great option in moodle, because it lets you create customized language files for your institution that are not overwritten when you install updated moodle code.
June 20, 2007 1.8.1 instance
Following these excellent directions from Tim Allen:
http://moodle.org/mod/forum/discuss.php?d=49150#p225224
In particular:
“The local pack en_utf8_local will not appear in the language menus for selection and your users do not need to change their settings.” So the reason you are not seeing the customized language pack in the menu is because you are not supposed to! wink The local pack en_utf8_local and the main pack en_utf8 are checked together (local one first, then the main one) and the language menu only shows one entry for both of them.
So, I did as suggested. First, copy the en_utf8 language pack, rename it, and go through with text editor and change all the desired strings. Things like “instructor” not teacher; “enroll” not “enrol”, “expiration” not “expiry”, and “course prefix and number” not “shortname”. Also, include all the extra language files from the blocks I have installed (quickmail, course menu plus, mycourses, gradebook enhancements). (Well, I have never been quite straight on where those need to go, so I put them in local anyway. I wanted to keep all my changes together).
Important things to note:
- The file must be named en_utf8_local. The first time around, I named it something else and of course it didn’t work properly!
- The file must be placed in the moodle/lang folder.
- Default site language is en_utf8.
- Do not include more than the necessary files. If strings are changed in main moodle language files, having the same file here will pre-empt loading of altered strings and help files
Leave a Reply