lang? How to

lang? How to

Mario Lopes -
回帖数:0

Hi

In my form I write this code:

$mform->addElement('editor', 'fieldname', get_string('labeltext', 'langfile'));
$mform->setType('fieldname', PARAM_RAW);

First problem I don't get richText but only plain text

Second: I get labeltext as a title of the control. I think this problem is related with lang file. In lang I have:

$string['pluginname'] = 'Simple html block';
$string['simplehtml'] = 'Simple html';
$string['pagetitle']='Titulo';
$string ['labeltext']='Descrição dos artigos';

Why it doesn't replace labeltext with 'Descrição dos artigos' ?

Regards