[Vtigercrm-developers] Translations always
Aïssa
webmaster at vtigerfacile.com
Mon Aug 14 06:16:54 PDT 2006
Hi team,
what do you think about add this kind of things on
/includes/Utils/ListViewUtils.php at the end of getValue function, this
allow to have the "dropdown values" (like Call/Meeting/Created...)
translated if exists on lang file.
I have not really tested (specially with relatedlists).
Now the same thing with Detailview, email notice (if your customers are
from different country!) to keep the system work with full multilang
environnement.
//Added for listviews "dropdown values" translations
if(($module=="Contacts") && ($colname=="title")){
if($app_strings[$value]){
$value = $app_strings[$value];
}
else{
$value=$value;
}
}
if(($module=="Potentials") && ($colname=='sales_stage') or
($colname=='leadsource')){
if($app_strings[$value]){
$value = $app_strings[$value];
}
else{
$value=$value;
}
}
if(($colname=='quotestage') OR ($colname=="invoicestatus") OR
($colname=="campaigntype") OR ($colname=="campaignstatus") OR
($colname=='activitytype') or ($colname=='activitystatus')){
if($app_strings[$value]){
$value = $app_strings[$value];
}
else{
$value=$value;
}
}
if(($module=='HelpDesk') && ($colname=="status") or
($colname=="priority")){
if($app_strings[$value]){
$value = $app_strings[$value];
}
else{
$value=$value;
}
}
if(($module=="Faq") && ($colname=='category')){
if($app_strings[$value]){
$value = $app_strings[$value];
}
else{
$value=$value;
}
}
//End lisview "dropdown values" translations
Best regards,
Aïssa
More information about the vtigercrm-developers
mailing list