Multilangual Logo

Business template for Joomla 3 and 2.5 ideal to create blog or personal website.
GK User
Wed Jul 25, 2012 8:13 am
Hi,

My GK-Real-Design site is multilingual.
How can i change the logo with the site language (EN / FR / RU) ?
And the footer ?

Thank u so much...
User avatar
Fresh Boarder

GK User
Wed Jul 25, 2012 9:44 am
You can achieve this in many ways.

Below is loading a css file based on language. In these css files you make your css changes such as images , colors or fonts etc etc... For this example you should use css logo in template settings > features > logo type = Css logo.

Find File: templates/gk_the_real_design/layouts/blocks/head.php
Find Line: 15 which is below
Code: Select all
$favicon_image = $this->getParam('favicon_image', '');

Replace with below
Code: Select all
$favicon_image = $this->getParam('favicon_image', '');

$lang = JFactory::getLanguage();


Find Line: 130 which is below
Code: Select all
   // include fonts

Replace with below
Code: Select all
   $this->addCSS($this->URLtemplate() . '/css/'. $lang->getTag() .'.css');
   
   // include fonts


Create a new css file in following format "en-GB.css" or "fr-FR.css" in css folder such as below example.
Code: Select all
templates/gk_the_real_design/css/en-GB.css


Contents of my example en-GB.css as below
Code: Select all
/*
#------------------------------------------------------------------------
# The real design - December 2011 template (for Joomla 1.6/1.7)
#
# Copyright (C) 2007-2011 Gavick.com. All Rights Reserved.
# License: Copyrighted Commercial Software
# Website: http://www.gavick.com
# Support: [email protected]
*/
h1#gkLogo a.cssLogo { background-image: url('../images/logos/en-GB.png');}


And I create new folder called "logos" inside image folder and put new logo filenamed "en-GB.png" in there
Code: Select all
templates/gk_the_real_design/images/logos/en-GB.png


So depending on language correct language css file will load.


Regarding Footer:

Right hand side is a menu so you can create multiple menus and in menu settings in language option select your language so that menu will appear depending on language.

Regarding copyright see below.

Find File: templates/gk_the_real_design/layouts/blocks/head.php
Find Line: 19 to 23 which is below
Code: Select all
            <?php else : ?>
               <span>
               Template Design &copy; <a href="http://www.gavick.com" title="Joomla Templates">Joomla Templates</a> | GavickPro. All rights reserved.
               </span>
            <?php endif; ?>

Replace with below
Code: Select all
            <?php else : ?>
               <span>
               <?php echo JText::_('TPL_GK_LANG_MULTI_COPYRIGHT'); ?>
               </span>
            <?php endif; ?>


Now in above example I will be using our template language file. For each language you must copy this file and rename it depending on language. such as below examples
Code: Select all
languages/en-GB/en-GB.tpl_gk_the_real_design.ini
languages/fr-FR/fr-FR.tpl_gk_the_real_design.ini
languages/es-ES/es-ES.tpl_gk_the_real_design.ini


So at the end of each language files as above enter below and change it as you want.
Code: Select all
TPL_GK_LANG_MULTI_COPYRIGHT="Template Design &copy; <a href="http://www.gavick.com" title="Joomla Templates">Joomla Templates</a> | GavickPro. All rights reserved."


See you around...
User avatar
Platinum Boarder

GK User
Sun Jul 29, 2012 5:11 pm
It Works !

Thank U normanUK...
User avatar
Fresh Boarder

GK User
Sun Jul 29, 2012 8:16 pm
No problem at all, see you around...
User avatar
Platinum Boarder


cron