Change Lesson default description and name

Scott
Forums
Hi Opigno! I would like to change the name "Lesson" to be "Module" and also edit the text that says "Lessons allow teachers to assess students and provide slideshows with course content and/or questions.". Could you please advise how this can be achieved? Many thanks Scott
Profile picture for user James Aparicio
James Aparicio

Hi Scott,

Hi Scott,

You can change the content type name from lesson to title. 

To change that text look inside profiles/opigno_lms/modules/opigno/opigno/modules/simple_ui/opigno_simple_ui.module.

 

Best regards

 

Scott

great thanks James

great thanks James
picode

An alternative when changing text

FWIW, we used another way to change text in Opigno without changing Opigno files. I assumed you were referring to the Tools tab.
  • Edit sites/default/settings.php
  • Look for String overrides
  • Change or enable $conf['locale_custom_strings_en'][''] -- assuming default English locale
Example:$conf['locale_custom_strings_en'][''] = array( "Lessons allow teachers to assess students and provide slideshows with course content and/or questions." => "New text describing the Lessons tool.", "Lessons" => "Modules", );Do let me know if the above approach is not ideal with Opigno sites. Thanks! References:https://www.drupal.org/node/522036https://www.opigno.org/es.po
Profile picture for user James Aparicio
James Aparicio

Hi picodo,

Hi picodo,

You can do it that way as well, not sure if it works well in conjunction with more than one language.

Best regards

 

picode

Thanks, James!

Thanks, James! We're using only English, so seems to work fine. And, yes, one of the points against this approach is that it is "English only". For better string overrides, there is a project that could help:https://www.drupal.org/project/stringoverrides