Page 1 of 1

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

Posted: Mon Nov 26, 2007 1:12 pm
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

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

Posted: Mon Nov 26, 2007 1:41 pm
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

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

Posted: Mon Nov 26, 2007 2:21 pm
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.

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

Posted: Mon Nov 26, 2007 2:47 pm
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

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

Posted: Mon Nov 26, 2007 4:13 pm
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?

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

Posted: Mon Nov 26, 2007 5:07 pm
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

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

Posted: Mon Dec 03, 2007 12:05 am
by percusionista
great!

works O.K.