GetSimple Support Forum
PROBLEM Different Logo for different languages - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Feature Requests (http://get-simple.info/forums/forumdisplay.php?fid=7)
+--- Thread: PROBLEM Different Logo for different languages (/showthread.php?tid=7071)



Different Logo for different languages - sashozs - 2015-02-03

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.


RE: Different Logo for different languages - datiswous - 2015-02-03

Is it not possible to use a template file for this?
http://get-simple.info/wiki/how_to:page_editing#page_options

Off course it would be nice to be able to set a default template file per language.


RE: Different Logo for different languages - Oleg06 - 2015-02-03

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.



RE: Different Logo for different languages - shawn_a - 2015-02-03

Why not just do src= image$lang.jpg


RE: Different Logo for different languages - sashozs - 2015-02-10

Yes, I liked Oleg's idea... That's pretty simple and elegant. How come I haven't thought of that?
I feel stupid now Smile

...however, I think it would still be nice to have that as an integrated option, as there are people who just don't want to mess with code. I think Shawn understands what I mean. (Remember the guy switching to wordpress form a ready made getsimple website, just for a stupid css line that you've already written for him, and he only should've copy the code in the CSS? That's what I mean - those guys.)