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'}>
        
        <
td id="headermenu"><a href="<{$xoops_url}>/" title="Back home">homea>&nbsp;|&nbsp;<a href="<{$xoops_url}>/modules/BopComments/" title="SiteNews">sitenewsa>&nbsp;|&nbsp;<a href="<{$xoops_url}>/modules/wfsection/" title="Articles Menu">articlesa>&nbsp;|&nbsp;<a href="<{$xoops_url}>/modules/weblog/" title="WeBLog">webloga>&nbsp;|&nbsp;<a href="<{$xoops_url}>/modules/newbb/" title="Forum">forum a>&nbsp;|&nbsp;<a href="<{$xoops_url}>/modules/enterprise/" title="info">infoa>&nbsp;|&nbsp;span><a href="<{$xoops_url}>/modules/archcontact/"title="contact">contacta>td>
         <
td id="headermenu">td>
     <{else}> 
     
        <
td id="headermenu"><a href="<{$xoops_url}>/" title="Back home">homea>&nbsp;|&nbsp;<a href="<{$xoops_url}>/modules/BopComments/" title="SiteNieuws">sitenieuwsa>&nbsp;|&nbsp;<a href="<{$xoops_url}>/modules/wfsection/" title="Artikelen Menu">artikelena>&nbsp;|&nbsp;<a href="<{$xoops_url}>/modules/weblog/" title="WeBLog">webloga>&nbsp;|&nbsp;<a href="<{$xoops_url}>/modules/newbb/" title="Forum">forum a>&nbsp;|&nbsp;<a href="<{$xoops_url}>/modules/enterprise/" title="info">infoa>&nbsp;|&nbsp;span><a href="<{$xoops_url}>/modules/archcontact/"title="contact">contacta>td>
     <{/if}>


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

504 user(s) are online (173 user(s) are browsing Support Forums)


Members: 0


Guests: 504


more...

Donat-O-Meter

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

Latest GitHub Commits