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
[SOLVED]In ML, is it possible to set different template to each language ?
-
- 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 ?
Last edited by percusionista on Mon Dec 03, 2007 12:06 am, edited 1 time in total.
Re: In ML, is it possible to set different template to each language ?
Correctpercusionista 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)
Suppose that you have not read howto - tipspercusionista 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.

Alby
-
- 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 ?
I think you say that topicSuppose that you have not read howto - tips
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 ?
Same: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.
- prepare 4 images (adjust locale): header-es_ES.jpg, header-fr_FR.jpg, header-pt_PT.jpg, header-en_US.jpg- 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:
- call in template

Alby
-
- 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 ?
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?
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 ?
Perfect, I suppose in my example that your locales are: pt_PT, es_ES, fr_FR, en_USpercusionista 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?

Alby
-
- 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 ?
great!
works O.K.
works O.K.