Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PROBLEM Different Logo for different languages
#3
Try this in the template
Code:
<?php if ($language == 'en') { ?><img src="logo_en.png"><?php } ?>
<?php if ($language == 'de') { ?><img src="logo_de.png"><?php } ?>
<?php if ($language == 'es') { ?><img src="logo_es.png"><?php } ?>

(2015-02-03, 11:41:32)sashozs Wrote: It would be very helpful if there is an option to use different logo image (or text) for different languages. I guess this is meant to be solved in I18N plugin. I believe it would be very simple if only the language slug should be added to the logo image (Ex. Original logo image is "logo.png", for German it should be "logo_de.png", for Macedonian "logo_mk.png" etc.)... As for the site name there is a variable, and that is usually used to generate logo text, I guess that would require adding more fields, but to keep it simple, there can be an option to add components named "logo_de", "logo_mk" etc. that will contain the corresponding translation for the logotype text.
Reply


Messages In This Thread
RE: Different Logo for different languages - by Oleg06 - 2015-02-03, 21:59:21



Users browsing this thread: 1 Guest(s)