VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Three_d on March 06, 2014, 10:08:46 AM

Title: Dropdown values in Custom fields aren't translated - with solution
Post by: Three_d on March 06, 2014, 10:08:46 AM
I found the following bug.
When you make a Custom Field with values in a dropdown list the values aren't translated although you have made custom language overrides.
I use Joomla 2.5.18 and VirtueMart 2.0.26D.

The solution is to edit the following file: administrator\components\com_virtuemart\models\customfields.php

Change on line 1000

$value = $customfield->custom_value;

to

$value = Jtext::_($customfield->custom_value);

I hope its solved in the next bug release of VirtueMart.

Jeroen
Title: Re: Dropdown values in Custom fields aren't translated - with solution
Post by: Milbo on March 07, 2014, 02:26:14 AM
I think this is already solved in the latest vm2.5, and in case, you should use vmText, not JText! JText is not robust anylonger.
Title: Re: Dropdown values in Custom fields aren't translated - with solution
Post by: Milbo on March 07, 2014, 21:30:45 PM
Please test http://dev.virtuemart.net/attachments/download/689/com_virtuemart.2.5.2_extract_first.zip