Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

setting language in header


2 replies to this topic

#1 kaiserXchris

  • Community Member
  • 4 posts
  • Real Name:Christopher Herms

Posted 12 November 2009, 13:13

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

#2 multimixer

  • Community Sponsor
  • 3,437 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 12 November 2009, 14:03

View PostkaiserXchris, 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

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 kaiserXchris

  • Community Member
  • 4 posts
  • Real Name:Christopher Herms

Posted 13 November 2009, 09:39

Thank you very much!

That worked well!