Different Graphic/Images for Drupal 7 Multilingual Site!

Events happening in the community are now at Drupal community events on www.drupal.org.
ngty69's picture

Hi Guys,

I am working on a bilingual drupal site and the using Drupal 7 version for the same. How can I use different images for headings and other portions of site for each of the language?

Thanks!

Comments

Custom theme

kristen pol's picture

It sounds like the images are part of the theme and not in the content, yes? If so, you'll need a custom theme that checks the language before serving up the right image, e.g.

global $language;
$lang_code = $language->language;
if ($lang_code) == 'en') {
return '/images/english.png';
}
elseif ($lang_code == 'fr') {
return '/images/french.png';
}

If, instead, you have images in content, you can check out the i18n media module.

Good luck,
Kristen

Internationalization

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: