Installing default language in /moodle/lang instead of /moodledata/lang

Installing default language in /moodle/lang instead of /moodledata/lang

by Adrien Guillo -
Number of replies: 2
Hello, I'm working on a project which aims to install automatically new Moodle platforms. So far, I've managed to install a platform with another defaut language doing this: - copying the language pack to /moodledata/lang/ - setting the language as default in the database modifying "lang" in the table "mdl_config" It's not working copying the language to /moodle/lang/: it doesn't appear in the installed packs. Is there any way I could do that because it would really make my process more simple.
Average of ratings: -
In reply to Adrien Guillo

Re: Installing default language in /moodle/lang instead of /moodledata/lang

by David Mudrák -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators
IIRC in Moodle 2.0, you can specify alternative path to the root of language packs. Maybe you could point it to a location shared by all your installations. See core_string_manager implementation for details.

d.
In reply to David Mudrák

Re: Installing default language in /moodle/lang instead of /moodledata/lang

by Adrien Guillo -
I got it. Thanks a lot!