kaiserXchris Posted November 12, 2009 Posted November 12, 2009 Hello! I installed a template which worked very well. In the associated html-file I can change the links that you find in the header e.g. Home, Account,... It looks like this: <span><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">Home</a>'; ?></span> How can I change the code so that the link will not just always appear as "Home", but will appear in the selected language? I hope you understand what I mean and that you can help me with that. Thanks a lot, Regards, Chris Quote
multimixer Posted November 12, 2009 Posted November 12, 2009 Hello! I installed a template which worked very well. In the associated html-file I can change the links that you find in the header e.g. Home, Account,... It looks like this: <span><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">Home</a>'; ?></span> How can I change the code so that the link will not just always appear as "Home", but will appear in the selected language? I hope you understand what I mean and that you can help me with that. Thanks a lot, Regards, Chris You need to make a language define and then replace the word "home" with this define, ie in the language file define('LINK_INDEX', 'home'); in your template <a href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>" class="linSt1"><?php echo(LINK_INDEX); ?></a> Quote My community profile | Template system for osCommerce - New: Responsive | Feedback channel
kaiserXchris Posted November 13, 2009 Author Posted November 13, 2009 Thank you very much! That worked well! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.