Page 1 of 1
Changing language in template?
Posted: Wed May 23, 2007 9:09 am
by jmansa
I have just recently installed the multilanguage version and it seems to be working fine, but... In my main template I have the News div with the headline "News".
Code: Select all
<!-- Start News -->
<div id="news">
<h6>News</h6>
{news number='3' detailpage='news'}
</div>
<!-- End News -->
Now, when I change language, I want to be able to change the newsheader to that language, but how do I go about that?
Re: Changing language in template?
Posted: Wed May 23, 2007 9:24 am
by RonnyK
You can create another template for the different languages where the part between and is translated, otherwise you could create a UDT, to put some content there dynamically, but I don't know the variable for the active language.
Ronny
Re: Changing language in template?
Posted: Wed May 23, 2007 9:41 am
by jmansa
How do I chnage template for different languages??? If my first page is "Welcome" and I have 2 languages attached, it seems that I only can have one template???
And what do you mean with UDT?
Re: Changing language in template?
Posted: Wed May 23, 2007 11:53 am
by RonnyK
I meant User-Defined-Tag which makes it possible to write your own piece of code which can be called within the template.
You can copy your template to another template and change the NEWS-title over there. On every single content-page you can choose the template attached to that page. So besides the main-page, where users have to choose a language, and you might want to choose to not show NEWS at all, you can have a specific template for the pages choosen afterwards.
Ronny