Skip to content

vtiger 6.5.0 translation bug in Inventory_RelationListView_Model

In the function getAddRelationLinks() in the above model, the module name after the "Add " on the button is not translated.

Instead of:

'linklabel' => vtranslate('LBL_ADD')." ".vtranslate($relatedModel->get('label')),

it should be:

'linklabel' => vtranslate('LBL_ADD')." ".vtranslate('SINGLE_' . $relatedModel->getName(), $relatedModel->getName()),

as it is in the Vtiger_RelationListView_Model.