Alex,
I found some sort of solution to the problem before your reply.
It's pretty lame but it's working (for now). I don't know PHP.
I had to copy the code from /modules/mod_virtuemart/mod_virtuemart.php. Then I inserted some HTML tags and removed some php ifs.
<?php
// Show the Account Maintenance Link
?>
<UL>
<?php
$class_att = 'class="'. $class_mainlevel .'"';
$href = $sess->url(SECUREURL."index.php?page=account.index", true);
$href2 = $sess->url(SECUREURL."index2.php?page=account.index", true);
//$text = $VM_LANG->_('PHPSHOP_ACCOUNT_TITLE');
$text = '<LI>Manutenção da Conta';
if( $useGreyBox_accountlink ) {
echo vmCommonHTML::getGreyboxPopUpLink( $href2, $text, '', $text, $class_att, 500, 600, $href );
}
else {
echo vmCommonHTML::hyperlink( $href, $text, '', $text, $class_att );
}
?>
</UL><BR>
I'm not sure the code above will be correctly displayed after I submit because I couldn't find some php tags when I previewed the post.
As you can see above, I had to recreate the variable $text because I couldn't use the function _() to load the pt-BR translation for "Account Maintenance".
Your solution seems cleaner, but I couldn't make it work.
I'd like to have this post as a request to the developers to implement this link as it should be (cleaner and smarter), otherwise I'll have to hack the files every time a new version is released.
I hope it will help others.
Regards,
Marcelo Martins