Hi, I discovered a bug in the file edit_vmshopper.php. If you use virtuemart in a multilanguage scenario, the string of the shoppergroups is not translated in the "Account Maintenance" frontend page.
I fixed it by replacing the line 68:
<?php echo $this->lists['shoppergroups']; ?>
with this code:
<?php
$sgArray = explode(", ", $this->lists['shoppergroups']);
$shoppergroups = "";
foreach ($sgArray as $sg)
{
$shoppergroups .= vmText::_($sg) . ", ";
}
$shoppergroups = substr($shoppergroups, 0, -2);
echo $shoppergroups;
?>
Now all the shoppergroups strings are correctly translated and displayed. ;)
Thank you for the advice, but what you did is quickndirty fix not useable for the core. Furthermore you do not write your version. In the current version the problem is imho fixed.
Sorry, I'm using Virtuemart version 3.0.9.4 and Joomla 3.4.3.
The problem is that if you use a string like COM_VIRTUEMART_SHOPPERGROUP_DEFAULT for the Shopper Group Name field of a shopper group, then, in the user profile that a normal user (not admin or superadmin... A simple registered user) could see from a normal page of the site, without my fix the user see the untranslated string COM_VIRTUEMART_SHOPPERGROUP_DEFAULT, instead of "Default Shopper Group" or similar.
Maybe you already fixed the bug in a beta in development?
public static function genericlist($data, $name, $attribs = null, $optKey = 'value', $optText = 'text', $selected = null, $idtag = false,
$translate = false)
We use as last parameter "true", so it should be translated. The shoppergroups are translated for me. Just tested, works on j2.5.28, j3.4.1 and j3.4.3.
Hi, I just tried a new clean installation of joomla 3.4.1, updated to 3.4.3, installed virtuemart 3.0.9, activated multilanguage plugins, and I have always the problem I mentioned in the previous post, as you can see from the attached image...
Are you sure you activated the multi-language plugins in joomla ("System - Language Filter" and "System - Language Code") ?
Thank you, found.
It was not translated for non admins.
Perfect, thanks! :)
Where can I download the fixed version?