Ask

How to auto change the logo image in multi language site? I want to have a different logo on the English version and on the French version.


Answer

You can do this by adding some code to identify currnent language. As you know the English language tag is en-BG and the French is fr-FR.

You can get the current language tag by this code:

$langtag = JFactory::getLanguage()->getTag();

Then you need 2 logo image files, e.g. logo_en-GB.jpg and logo_fr-FR.jpg

Please go here for our demo: http://joomtut.com/joomla-templates/54-beez_20-multi-languages-template-for-joomla-2-5.html