Changing language in template?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
jmansa
Forum Members
Forum Members
Posts: 126
Joined: Thu Oct 19, 2006 2:46 pm

Changing language in template?

Post 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?
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Changing language in template?

Post 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
jmansa
Forum Members
Forum Members
Posts: 126
Joined: Thu Oct 19, 2006 2:46 pm

Re: Changing language in template?

Post 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?
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Changing language in template?

Post 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
Post Reply

Return to “CMSMS Core”