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?
pgr
12 January 2022 12:52
2
Thanks @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.
pgr
12 January 2022 19:43
4
I think I know what the problem is: try Admin / Rebuild language files, and Rebuild JS stuff.
Thx @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.
pgr
14 January 2022 17:29
6
Check if the QR&R is picking up your changes and including them somewhere under
custom/modules/Opportunities/Ext/Language/
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'
./language/en_us.lang.php
./install/demoData.en_us.php
./modules/Home/language/en_us.lang.php
./modules/Charts/language/en_us.lang.php
./modules/Activities/language/en_us.lang.php
./modules/Calls/language/en_us.lang.php
./modules/Leads/language/en_us.lang.php
./modules/Users/language/en_us.lang.php
./modules/Prospects/language/en_us.lang.php
./modules/Tasks/Task.php
./modules/Calendar/language/en_us.lang.php
./modules/History/language/en_us.lang.php
./modules/Contacts/language/en_us.lang.php
./modules/DynamicFields/language/en_us.lang.php
./modules/Meetings/language/en_us.lang.php
./modules/Help/language/en_us.lang.php
./modules/Emails/language/en_us.lang.php
./include/language/en_us.lang.php
./cache/modules/Home/language/en_us.lang.php
./cache/modules/Calls/language/en_us.lang.php
./cache/modules/Leads/language/en_us.lang.php
./cache/modules/Users/language/en_us.lang.php
./cache/modules/Prospects/language/en_us.lang.php
./cache/modules/Calendar/language/en_us.lang.php
./cache/modules/Contacts/language/en_us.lang.php
./cache/modules/DynamicFields/language/en_us.lang.php
./cache/modules/Meetings/language/en_us.lang.php
./cache/modules/Emails/language/en_us.lang.php
./cache/jsLanguage/Home/en_us.js
./cache/jsLanguage/Calls/en_us.js
./cache/jsLanguage/Leads/en_us.js
./cache/jsLanguage/Users/en_us.js
./cache/jsLanguage/en_us.js
./cache/jsLanguage/Contacts/en_us.js
./cache/jsLanguage/Emails/en_us.js
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:
/custom/Extension/modules/Meetings/Ext/Language/en_us_lang_ext.php
The correct label is:
$mod_strings[āLNK_NEW_MEETINGā] = āLog/Schedule Meetingā;
Oh⦠and Quick Repair and Rebuild is Necessary.
1 Like