Open iammatis opened 2 years ago
Is this just a matter of adding
global $mod_strings;
?
I have not seen global $mod_strings;
in any other language file, seems kinda wrong.
I just realised, the labels for my custom action buttons are being displayed (they weren't before), but the ones for alerts/notifications are still blank. All of these label are in the same .lang.php
file and they are all auto generated in the .ext.php
file. When I replace one of the labels in $process->setMessages(['<label>']);
with a predefined one it works, but it does not work with mine.
Any progress on this or possibly other suggestions that could help ?
Apologies for my comment 2 years ago, I wasn't seeing this issue correctly (thinking it was back-end).
Now I am! Actually, I am running into this issue myself :-(
Anybody know a way to fix?
Issue
Extension language
$mod_strings
are not being recognized. I am creating a custom simple extension, adding a button to Contacts/detail view.Overriden
detailviewdefs.php
file (located in/public/legacy/custom/modules/Contacts/metadata/
):Language file
en_us.register_via_api.php
(located inpublic/legacy/custom/Extension/modules/Contacts/Ext/Language/
):More discussion on the official SuiteCRM forum.
Expected Behavior
For button to show up in Contacts/Detail view with the given label.
Actual Behavior
Button showed up but with no label, an empty string
Your Environment