[Vtigercrm-commits] [vtiger development] #5397: Some picklist values don't get translated
vtiger development
vtiger-tickets at trac.vtiger.com
Wed Nov 12 10:12:13 EST 2008
#5397: Some picklist values don't get translated
-----------------------+----------------------------------------------------
Reporter: elmue.gmx | Owner: developer
Type: defect | Status: new
Priority: minor | Milestone: 5.1.0
Component: vtigercrm | Version: 5.0.4
Keywords: |
-----------------------+----------------------------------------------------
There is a bug in the code which results that the picklist value
"Foods & Beverage" is not translated to other languages.
The reason is that the translation function receives as input:
"Foods & Beverage"
The order of translation and conversion to HTML has to be reverse:
File: DetailViewUtils.php
Line: 163
'''Wrong code:'''
$pickListValue = to_html($pickListValue);
$options[] =
array(getTranslatedString($pickListValue),$pickListValue,$chk_val );
'''Corrected code:'''
$translatedValue = getTranslatedString($pickListValue);
$options[] = array(to_html($translatedValue), to_html($pickListValue),
$chk_val);
Elmü
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/5397>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list