Table of Contents Previous Next

Sugar Developer Guide

Version 5.1


Chapter 4 Customizing Sugar : The Custom Directory : Languages

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)
Production Directories
Files in these directories are auto-generated by the system.
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:
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.

Table of Contents Previous Next

Copyright 2004-2008 SugarCRM Inc.
Product License