hi

any easy way to switch the page logo by locale?

Alex

Comments

Roberto Gerola’s picture

Hi.

Yes, you could check in your template the value
of the global variable $locale.

if($locale=='en') {
//English logo
}
else if($locale=='de') {
// German logo
}
hass’s picture

Any way to get this inside localizer? maybe the localizervars.module? I can put this code into my template.php, but it's not a perfect solution i think so. thank you.

hass’s picture

or localizersiteinfo.module... :-)

Roberto Gerola’s picture

>but it's not a perfect solution i think
Yes. It is only a workaround.

>localizersiteinfo.module... :-)
For Drupal 4

For Drupal 5 it will go probably in a submodule for theme
settings translations.

hass’s picture

why not a theme settings module für 4.7.x and only for 5?

Roberto Gerola’s picture

Ignore my comment. My mistake.
I didn't remember exactly the settings options under Drupal 4 and Drupal 5.

Yes, we need s submodule for theme translation.

hass’s picture

maybe this is solveable with http://drupal.org/project/logotool if this module will be extended with a switch logo by locale feature as requested in http://drupal.org/node/119173

Roberto Gerola’s picture

If logo is stored as variable, I think I can make it dependent upon language.

With the new interface for variables translation, we'll be able to add
multilingual support to every interface that store its settings as variables.

hass’s picture

ok, now i see logotool only as a workaround, while after a deeper look into the code it's not very performant. Altering the variables looks really faster and better technical solution.

hass’s picture

Status: Active » Closed (won't fix)