I am trying to develop a new plugin to add an item to the main menu more items. My problem is that the plugin name is showing as: "plugin.local_parentagenda.Agenda" in the main menu more items, however, I want to display it as "Agenda" as highlighted in the below image.
- Moodle site version: 3.3.1
- Moodle Mobile version: 3.5.2
you should return the string in the "lang" property. If you look at the example in this step, you'll see it has a "lang" property. This allows you to localise the strings, and it is required for the title of the plugin (what is displayed in the menu). So if your string is named "agenda", you should add this in the list of langs:
And the title should be 'agenda'.
Hi Dani thanks for replying,
The problem was solved, but it took some time to realize what was causing this problem.
Following what you said about changing the string in the "lang" property in the mobile.php file to:
The title was being displayed as "agenda", so after doing some trial and error it turns out that I had to replace 'parentagenda' with 'local_parentagenda' since the plugin was a "local plugin" and the one provided in the documentation is under "mod" (mod_certificate).
So that's about it, now it's being displayed as "Agenda" in the menu and it's working perfectly.
Thanks for the help Dani