Right now I am sitting with a PHP-programmer. We are trying to implement a new resource type (searching for content in a Dutch IEEE LOM repository using the defined metadata).
I have never done any Moodle development before and I am wondering where I would best put the language strings (they will be in English and in Dutch). I seem to remember that it is now possible to put a lang directory inside your module directory, but I am not sure that this is also the case for resource types.
Currently we have created a new directory "edurep" in /mod/resource/type/.
Where do I put the strings?
I can think of the following options:
/mod/resource/lang/en_utf8/resource.php
/mod/resource/lang/en_utf8/edurep.php
/mod/resource/type/edurep/lang/en_utf8/resource.php
/mod/resource/type/edurep/lang/en_utf8/edurep.php
Some of these will or will not work. Which one would be the correct one?
Any help would be much appreciated.
In reply to Hans de Zwart
Re: A new resource type: where do I put the language strings?
by Hans de Zwart -
I have just gotten some help on this issue. The answer is as follows:
Martin D. just updated CVS with resource paths so you will need to update to the very latest 1.6, 1.7 or 1.8, then use this:
/mod/resource/type/edurep/lang/en_utf8/resource_edurep.php
That way the module stays all in one directory, easier to install.
The file resource_edurep.php can also be in the main language packs and Moodle will find it there as well.
Martin D. just updated CVS with resource paths so you will need to update to the very latest 1.6, 1.7 or 1.8, then use this:
/mod/resource/type/edurep/lang/en_utf8/resource_edurep.php
That way the module stays all in one directory, easier to install.
The file resource_edurep.php can also be in the main language packs and Moodle will find it there as well.