Forums / Templates, Stylesheets, Page Layout / different logo.gif according to language

different logo.gif according to language

Locked

Views: 952

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
23 Nov 2006, 4:32 PM
#1
stephane avatar

stephane

New Zenner

Join Date:
Nov 2006
Posts:
4
Plugin Contributions:
0

different logo.gif according to language

Hi,

I need to use a different header logo according to the language choose by my visitors.

By now, the logo is in the folder
/includes/templates/my_template/images/logo.gif

I tryed to put it here :
/include/languages/french/my_template/images/logo.gif but obviously that's not the right place :down:

Any idea ?

Thank you

23 Nov 2006, 5:11 PM
#2
vr4indian avatar

vr4indian

Zen Follower

Join Date:
Apr 2006
Posts:
141
Plugin Contributions:
0

Re: different logo.gif according to language

its too simple

put condition in header

like :

if (language_id=fr)
{
$logo = logofr.gif
}
else
{
$logo = logoeng.gif
}

hope you get way

if not i will make code

by tmrw

thanks

[email protected]

23 Nov 2006, 5:26 PM
#3
stephane avatar

stephane

New Zenner

Join Date:
Nov 2006
Posts:
4
Plugin Contributions:
0

Re: different logo.gif according to language

I don't want to change the php code in this way in the idea to keep my application maintainable when I'll do an upgrade ... but you gave me the idea :

I've put my logo_fr.gif i this repertory :

/template/my_template/images/logo_fr.gif

and I've change
define('HEADER_LOGO_IMAGE', 'logo.gif');
to
define('HEADER_LOGO_IMAGE', 'logo_fr.gif');
in
/includes/languages/french/my_template/header.php

Good for me
Thank's