1
realwear
Multiple languages in header
  • 2006/3/31 8:51

  • realwear

  • Just popping in

  • Posts: 6

  • Since: 2006/3/11


how can i set multiple language links in my header?

I am using Smartlanguage & XOOPS 2.0.13.2


If a user has set the language to english then i want my header links in english and if he chose dutch then i want it to be displayed in dutch


i tried this [en]mylinkinenglish[/en]& [nl]mylinkindutch[/nl]
but this doesnt help


can someone help me?

2
svaha
Re: Multiple languages in header
  • 2006/3/31 9:28

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


<{if $xoops_langcode == 'en'}>
        <!-- 
Load English menu -->
        <
td id="headermenu"><a href="<{$xoops_url}>/" title="Back home">home</a>&nbsp;|&nbsp;<a href="<{$xoops_url}>/modules/BopComments/" title="SiteNews">sitenews</a>&nbsp;|&nbsp;<a href="<{$xoops_url}>/modules/wfsection/" title="Articles Menu">articles</a>&nbsp;|&nbsp;<a href="<{$xoops_url}>/modules/weblog/" title="WeBLog">weblog</a>&nbsp;|&nbsp;<a href="<{$xoops_url}>/modules/newbb/" title="Forum">forum </a>&nbsp;|&nbsp;<a href="<{$xoops_url}>/modules/enterprise/" title="info">info</a>&nbsp;|&nbsp;</span><a href="<{$xoops_url}>/modules/archcontact/"title="contact">contact</a></td>
         <
td id="headermenu"></td>
     <{else}> 
     <!-- Else 
load Dutch menu -->
        <
td id="headermenu"><a href="<{$xoops_url}>/" title="Back home">home</a>&nbsp;|&nbsp;<a href="<{$xoops_url}>/modules/BopComments/" title="SiteNieuws">sitenieuws</a>&nbsp;|&nbsp;<a href="<{$xoops_url}>/modules/wfsection/" title="Artikelen Menu">artikelen</a>&nbsp;|&nbsp;<a href="<{$xoops_url}>/modules/weblog/" title="WeBLog">weblog</a>&nbsp;|&nbsp;<a href="<{$xoops_url}>/modules/newbb/" title="Forum">forum </a>&nbsp;|&nbsp;<a href="<{$xoops_url}>/modules/enterprise/" title="info">info</a>&nbsp;|&nbsp;</span><a href="<{$xoops_url}>/modules/archcontact/"title="contact">contact</a></td>
     <{/if}>

What doesn't kill me,
makes me stronger.

http://exm.amevita.eu
http://www.amevita.eu
http://www.alohaspirit.nl

3
realwear
Re: Multiple languages in header
  • 2006/4/1 9:14

  • realwear

  • Just popping in

  • Posts: 6

  • Since: 2006/3/11


thnx a lot m8

4
Dona_Brasil
Re: Multiple languages in header

There is an alternative:

The admin menu of smartsection has an option "Custom Smarty Tag Definition". You can give these smarty tags a value depending on the language. Than you just add these values to the code of your theme.

I prefer this option, although I use the option shown by svaha when I have to add large parts of code that change from language to language.

Login

Who's Online

157 user(s) are online (87 user(s) are browsing Support Forums)


Members: 0


Guests: 157


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits