1
flymirco
xlanguage question
  • 2008/1/11 2:27

  • flymirco

  • Just popping in

  • Posts: 42

  • Since: 2006/9/20


Hi to all,

in my theme there is a section with fixed menu link, how can I change the text language in it to show the appropriate language description?
<!-- for Italian -->
<
class="menuHead" href="<{xoops_url}>/modules/article">Comunicati</a>
<!-- for 
English -->
<
class="menuHead" href="<{xoops_url}>/modules/article">Press release</a>

I'm looking for something that make this change dynamically every time there is a language switch.

Thanks in advance for the answer.

flymirco

2
irmtfan
Re: xlanguage question
  • 2008/1/11 3:36

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


its very easy just use language tags like this:

<a class="menuHead" href="<{xoops_url}>/modules/article">[en]Press release[/en][it]Comunicati[/it]</a>

3
flymirco
Re: xlanguage question
  • 2008/1/11 10:32

  • flymirco

  • Just popping in

  • Posts: 42

  • Since: 2006/9/20


Thank you so much irmtfan, it works fine and it's an easy trick.
I didn't know this possibility in theme.

flymirco

Login

Who's Online

125 user(s) are online (77 user(s) are browsing Support Forums)


Members: 0


Guests: 125


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