Posted by ngty69 on December 27, 2011 at 6:23pm
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
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
Contact: https://www.hook42.com/contact
Drupal 7 Multilingual Sites: http://www.kristen.org/book