Table of Contents Previous Next

Sugar Developer Guide

Version 5.1


Chapter 4 Customizing Sugar : Adding Multiple Languages : Add a Language

Add a Language
You can directly add a new language to SugarCRM without using a Language Pack.
Here are the necessary steps:
1.
$sugar_config[`languages`] = array('en_us'=>'US English','es_es'=>'Espanol’);
 
Note: You can also set the default language in the config.php. This value is used if a user does not specify a language while logging into the application.
2.
There are two general locations where you will need to create the new language files:
o
o
Note: Some language files that ship with Sugar are not named “en_us.lang.php” but are “.html” or “.tpl” files. These files are used for the inline help system. A complete language pack will include the translated versions of these files as well.
3.
Note: In the include/language/<new>.lang.php file, you will see that there are two global arrays defined. The $app_list_strings array is actually an array of arrays. The key values in this array must not be changed. There are comments and examples in the code that should keep you on track.
 

Table of Contents Previous Next

Copyright 2004-2008 SugarCRM Inc.
Product License