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
Latest News: (loading..)
setting language in header
Started by kaiserXchris, Nov 12 2009, 13:13
2 replies to this topic
#1
Posted 12 November 2009, 13:13
#2
Posted 12 November 2009, 14:03
kaiserXchris, on 12 November 2009, 13:13, said:
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
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>
#3
Posted 13 November 2009, 09:39
Thank you very much!
That worked well!
That worked well!














