[SOLVED]In ML, is it possible to set different template to each language ?

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
percusionista
Forum Members
Forum Members
Posts: 55
Joined: Thu Nov 15, 2007 12:42 pm

[SOLVED]In ML, is it possible to set different template to each language ?

Post by percusionista »

I'm tryng to set different template to each  lenguage sites.

But when I change the page template in one language, automatically change all the others language pages.

(for example: changing  template in Home page will change any other language home page)

I'm tryng this because 2 reasons:

1 -  I want change " " to it's own language.

2-  Change the img in header, that contain different message depending on language.

Thank you
Last edited by percusionista on Mon Dec 03, 2007 12:06 am, edited 1 time in total.
alby

Re: In ML, is it possible to set different template to each language ?

Post by alby »

percusionista wrote: I'm tryng to set different template to each  lenguage sites.

But when I change the page template in one language, automatically change all the others language pages.

(for example: changing  template in Home page will change any other language home page)
Correct

percusionista wrote: I'm tryng this because 2 reasons:

1 -  I want change " " to it's own language.

2-  Change the img in header, that contain different message depending on language.
Suppose that you have not read howto - tips  ;)

Alby
percusionista
Forum Members
Forum Members
Posts: 55
Joined: Thu Nov 15, 2007 12:42 pm

Re: In ML, is it possible to set different template to each language ?

Post by percusionista »

Suppose that you have not read howto - tips 
I think you say that topic

http://forum.cmsmadesimple.org/index.php/topic,15318.msg81152.html#msg81152

Yes had seen it, but din't realize it was solution  for the point 1  :-[

How can I solve the point 2,  different head images for each language ?

You alrready know I'm working on 4 language site : spanish, frenh, portugueese and english, and I need a different image in the head of each of them depending on language selected by user.
alby

Re: In ML, is it possible to set different template to each language ?

Post by alby »

percusionista wrote: How can I solve the point 2,  different head images for each language ?

You alrready know I'm working on 4 language site : spanish, frenh, portugueese and english, and I need a different image in the head of each of them depending on language selected by user.
Same:
- Variable {$lang} is assigned to current locale language (ex. en_US, it_IT)
  Use this for general purpose.
  For example:
  smarty language parameter: lang="$lang"
  smarty language category: category="General-$lang"
  language stylesheet:
- prepare 4 images (adjust locale): header-es_ES.jpg, header-fr_FR.jpg, header-pt_PT.jpg, header-en_US.jpg
- call in template

;)

Alby
percusionista
Forum Members
Forum Members
Posts: 55
Joined: Thu Nov 15, 2007 12:42 pm

Re: In ML, is it possible to set different template to each language ?

Post by percusionista »

Sorry but I'm really newby in PHP

Dou you mean that I must rename my 4 images writing same name exept at the end of each name with ( pt_PT, es_ES, fr_FR, en_US )

(I don't know what do you mean by adjust locale )

and later on just call it in template using smarty tag inside the image URL like That.

Is that all? or I miss or make some mistake?
alby

Re: In ML, is it possible to set different template to each language ?

Post by alby »

percusionista wrote: Dou you mean that I must rename my 4 images writing same name exept at the end of each name with ( pt_PT, es_ES, fr_FR, en_US )

(I don't know what do you mean by adjust locale )

and later on just call it in template using smarty tag inside the image URL like That.

Is that all? or I miss or make some mistake?
Perfect, I suppose in my example that your locales are: pt_PT, es_ES, fr_FR, en_US  ;)

Alby
percusionista
Forum Members
Forum Members
Posts: 55
Joined: Thu Nov 15, 2007 12:42 pm

Re: In ML, is it possible to set different template to each language ?

Post by percusionista »

great!

works O.K.
Post Reply

Return to “CMSMS Core”