In Moodle we had declared some new strings in lang file of a plugin like this:
$string[‘LIBRARY_NAME’] = 'E-Lab’; $string[‘BOOK_READ_SUCCESS’]=’Congratulations on reading the book’;
We wanted to use it in view.php file of the plugin like this:
$result=Get_String(‘BOOK_READ_SUCCESS’, ‘plugin name’);
But the output was :
[[string]]
Solution : To access the string defined in lang file, we just need to update the version number in version.php file of the plugin.
Webner Solutions is a Software Development company focused on developing CRM apps (Salesforce, Zoho), LMS Apps (Moodle/Totara), Websites and Mobile apps. If you need LMS app development or any other software development assistance please contact us at lms@webners.com