Languages It is possible to override display string values for a given language and create entirely new strings used by new custom fields. Master Directories Files in these directories can be edited and new files can be added to these directories. • /custom/include/language/ (for $app_strings or $app_list_strings) • /custom/Extension/application/Ext/Include/ • /custom/Extension/modules/<MODULE_NAME>/Ext/Language/ (for $mod_strings only) Production Directories Files in these directories are auto-generated by the system. • /custom/include/language/<LANGUAGE_TAG>.lang.ext.php • /custom/modules/<MODULE_NAME>/Ext/Languages/<LANGUAGE_TAG>.lang.ext.php Description Language files either replace entirely or add to the translated language items available to a module. In the Master Directories you can have many files like: • /custom/Extension/modules/Leads/Ext/Language/en_us.Custom_strings.php • /custom/Extension/modules/Leads/Ext/Language/en_us.Custom_Languages.php During the repair function (Admin->Repair->Quick Repair and Rebuild), all of these files will be merged together into the production directory and they become the file: /custom/modules/Leads/Ext/Language/en_us.lang.ext.php For example, a language extension file for the Calls module could contain the following: /custom/Extension/modules/Calls/ext/Languages/en_us.Import_Menu.php <?php // adding Import field changes $mod_strings['LNK_IMPORT_CALLS'] = 'Import Calls'; $mod_strings['LBL_MODIFIED_NAME'] = 'Modified By'; $mod_strings['LBL_PARENT_TYPE'] = 'Parent Type'; $mod_strings['LBL_PARENT_ID'] = 'Parent ID'; ?> This would add four new display strings to the Calls module.
Copyright 2004-2008 SugarCRM Inc. Product License