Hey All, trying to change the “Schedule Meeting” button label to “Log Meeting” in the Activities Subpanel.
I’ve created a file in /custom/Extension/modules/Opportunties/Ext/Language/en_us.customactivities_activities_1.php
Like the following:
$mod_strings[‘LBL_SCHEDULE_MEETING_BUTTON_TITLE’] = ‘Log Meeting’;
$mod_strings[‘LBL_SCHEDULE_MEETING_BUTTON_LABEL’] = ‘Log Meeting’;
When I go to studio… Opportunities… Labels… I now see…
However, the front end remains unchanged!!! I did a quick repair and rebuild and flushed my cache. Any ideas what I’m doing wrong here?
12 January 2022 12:52
@pgr ! I did try both the Activities module and the Opportunities module. Neither seemed to work. I haven’t tried the History yet. I thought that seemed unrelated, but I’ll give that a shot too and report back. Thanks again.
12 January 2022 19:43
I think I know what the problem is: try Admin / Rebuild language files, and Rebuild JS stuff.
@pgr I tried all the rebuild stuff. Still not showing on front end. Hmm. I got side tracked a bit on another project but spend some more time this weekend on it and report back. I also read your blog post on the subject and tried the methods there as well, replacing the entire language file in /custom/… that didn’t work either.
14 January 2022 17:29
Check if the QR&R is picking up your changes and including them somewhere under
Another nice way to find where it’s going is to use something weird for the string:
$mod_strings[‘LBL_SCHEDULE_MEETING_BUTTON_TITLE’] = ‘zxcvbnm’;
then run a QR&R and grep your entire SuiteCRM root folder for it:
grep -irn zxcvbnm .
BTW, some more grepping also shows all the (many) places where the string “Schedule Meeting” appears:
10.0.0.201 | root /var/www/html $ grep -irnl 'Schedule Meeting' . | grep -v 'patch\|upload'
Try changing the string in some of those (including in the caches) until you find which one appears on screen. Then you can worry about which source file puts the string there…
Thanks for all your help
@pgr ! I finally found it. It’s in the modules/meetings/language/en_us.lang.php
I should have looked there first LOL!
So I created a file:
The correct label is:
$mod_strings[‘LNK_NEW_MEETING’] = ‘Log/Schedule Meeting’;
Oh… and Quick Repair and Rebuild is Necessary.