I am setting up a Sugar CE (v6.2.1) in Canada and the address label used in Canada is Province instead of State.
I created a package called Event_Manager built initially in Module Builder with custom coding as required. It has 5 custom modules and relates to 2 existing modules : Contacts and Accounts. I want to change the State label to Province in all the modules, including the existing ones.
I have not been able to figure out how to use $app_strings to change the State field label globally (I know the code would be
but I cannot find any directory in the custom directories that makes any difference and I have tried many.Code:<?php $app_strings['LBL_PRIMARY_ADDRESS_STATE'] = 'Province'; ?>
Is the $app_strings functionality deprecated/disabled?
so I put, the following code
into a file calledCode:<?php $mod_strings['LBL_PRIMARY_ADDRESS_STATE'] = 'Province'; ?>
en_us.state_to_province.php
in the language directory of my custom modules at
<sugar_root>/custom/Extension/modules/EvMgr_Fac/Ext/Language
(Module EvMgr_EV used as an example; the same file put into the same directories in the other custom modules)
I also added the required directory path for the existing modules into the custom directory and put the file in there as well.
After a Repair & Rebuild, the code does get consolidated into the en_us.lang.ext.php vardef file in each module, but it did not result in the label changing.
I then added the code
to the Module Builder package directly inCode:'LBL_PRIMARY_ADDRESS_STATE' = 'Province';
<sugar_root>/custom/modulebuilder/packages/Event_Manager/modules/EvMgr_Ev/language
and the State label did change in that module
I can use the Module Builder solution for the new custom modules but not for the existing modules so I do not have a working solution yet.
Can anyone tell me why the code added to the custom module directory is not working?
Ramblin


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks