Hi all,
I want to use a template override on the com_virtuemart user login.php file to add the register a new account link (I recommend the register a new account link be included by default in the future). I need to change the code to:
<div class="width30 floatleft">
<a href="<?php echo JRoute::_('index.php?option='.$comUserOption.'&view=remind'); ?>">
<?php echo JText::_('COM_VIRTUEMART_ORDER_FORGOT_YOUR_USERNAME'); ?></a>
</div>
<div class="width30 floatleft">
<a href="<?php echo JRoute::_('index.php?option='.$comUserOption.'&view=reset'); ?>">
<?php echo JText::_('COM_VIRTUEMART_ORDER_FORGOT_YOUR_PASSWORD'); ?></a>
</div>
<?php
// NEW CODE ADD REGISTRATION LINK
$usersConfig = JComponentHelper::getParams('com_users');
if ($usersConfig->get('allowUserRegistration')) : ?>
<div class="width30 floatleft">
<a href="<?php echo JRoute::_('index.php?option='.$comUserOption.'&view=registration'); ?>">
<?php echo JText::_('COM_USERS_LOGIN_REGISTER'); ?></a>
</div>
<?php endif; // END NEW CODE ?>
Can anyone tell me how to add access to the COM_USERS language values for this link so I do not have to alter or override the Virtuemart language file. I have not found any information on accessing a different components language file from inside a component. It would be nice to use the values that have already been translated for COM_USERS, but I do not know if it is possible especially since VM did not use the COM_USERS language values for its login form.