Setting a name of the activity module

Setting a name of the activity module

by Heniek Wisniewski -
Number of replies: 2
Hi,

I am wondering how to set the name of the module.

I have prepared my custom activity module based on the NEWMODULE.zip (from http://download.moodle.org/plugins/mod/) and named it kasa. As it is said in the README.txt I have changed all newmodule instances to "kasa".

I would like to have my module listed in Modules->Activities->Manage Activities as "Kasa ABC" (with capital letters) - just like the standard "SCORM/AICC" or "Hot Potatoes Quiz" listed there.

Is there a possibility to do it? I am using moodle 1.9.5.

Regards,
Pawel


Average of ratings: -
In reply to Heniek Wisniewski

Re: Setting a name of the activity module

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
Sure. In your case, you will have your module in mod/kasa/ directory. Then you just define the module name in the mod/kasa/lang/en_utf8/kasa.php as
$string['modulename'] = 'Kasa ABC';

--mudrd8mz
In reply to David Mudrák

Re: Setting a name of the activity module

by Heniek Wisniewski -
Thank you very much David!

That's exactly what I was looking for.

Best Regards,
Pawel