Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Is it possible to have different images for different languages??

Is it possible to have different images for different languages??

Views: 2,575

Results 21 to 25 of 25
13 May 2011, 12:42 AM
#21
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Is it possible to have different images for different languages??

Oh the joys and woe of TemplateMonster. (A company that actually lives up to its name!)

I just use SPECIFIC stylesheets to bring in different common images.

An example : http://britefactory.co.uk/streetball

If you click on the different sport links in the horizontal EZPages menu, you will see each page has its own header.

In a CORE zencart template, you could achieve the same with language-specific stylesheets.

However, you are using TM and not core....

13 May 2011, 3:09 AM
#22
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Is it possible to have different images for different languages??

As a crude but probably effective patch, you could change
'images/logo.gif'
to
'images/' . HEADER_LOGO_IMAGE
in your tpl_header.php.

It might also work to change the whole
zen_image(DIR_WS_TEMPLATE.'images/logo.gif')
to
zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT)

Swapping whole files would break your template.

13 May 2011, 11:19 PM
#23
alepia avatar

alepia

Zen Follower

Join Date:
Dec 2008
Posts:
158
Plugin Contributions:
0

Re: Is it possible to have different images for different languages??

Yeah of course changing the whole file would break the template!!

Thank you I'll try it in a bit!

16 May 2011, 2:11 PM
#24
alepia avatar

alepia

Zen Follower

Join Date:
Dec 2008
Posts:
158
Plugin Contributions:
0

Re: Is it possible to have different images for different languages??

Thank youu it did work! I just changed:

zen_image(DIR_WS_TEMPLATE.'images/logo.gif')
to
zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT)

And also the language files and then it worked!!

Now what shall I do in order to create multilingual banners ??

16 May 2011, 2:25 PM
#25
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Is it possible to have different images for different languages??

Glad to hear you tamed that monster.

Now what shall I do in order to create multilingual banners ??This has been discussed recently (past few months I think) in the forum. I don't recall the details, but try searching for appropriate keywords.

Here: multi lingual banners