------------------------------------------------------------------------------------------------------------------------------
TIP 1 - HOW TO LOAD A CSS DEPENDING OF THE LANGUAGE FRONT-END SWITCH ?
------------------------------------------------------------------------------------------------------------------------------
1. Add the following tag in your template index.php file:
This will write CSS files, depending of the selected language: english.css, spanish.css, german.css, italian.css, portuguese.css, etc...
2. If your defaut joomla language is set to english, then leave english.css empty & place it in the /templates/YOUR TEMPLATE NAME/css/ directory. Customize the other css files according to your needs. The most natural use is to change the path to an image file:
#whatever
{
background-image: url("../images/header_german.gif"); for the german.css file
}
#whatever
{
background-image: url("../images/header_spanish.gif"); for the spanish.css file
}
Place the produced CSS files into the /templates/YOUR TEMPLATE NAME/css/ directory
THAT's IT
------------------------------------------------------------------------------------------------------------------------------------------------------------------
TIP 2 - HOW TO LOAD AN IMAGE IN YOUR TEMPLATE DEPENDING OF THE LANGUAGE FRONT-END SWITCH ?
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Use the same method lo load images placed in the template (please note that images placed in text are correctly managed with joomfish 1.7 stable):
Produce the different images with text, and name them
image1_english.gif
image1_german.gif
image1_spanish.gif
etc...
THAT's IT
---------------------------------------------------------------------------------------------------------------------
TIP 3 - HOW TO LOAD SITE WIDE TITLE, META KEYWORDS & DESCRIPTION DEPENDING OF THE LANGUAGE FRONT-END SWITCH ?
----------------------------------------------------------------------------------------------------------------------
This one is a bit more tricky. We will need a core hack
1. Open includes/joomla.php file
Go to line 470 & 471 replace
$this->_head['title'] = $title ? $GLOBALS['mosConfig_sitename'] . ' - '. $title : $GLOBALS['mosConfig_sitename'];
by
// $this->_head['title'] = $title ? $GLOBALS['mosConfig_sitename'] . ' - '. $
//title : $GLOBALS['mosConfig_sitename'];
$this->_head['title'] = $title ? _SITENAME . ' - '. $title : $GLOBALS['mosConfig_sitename'];
2. Open includes/frontend.php file
Go to line 166/167 and replace
$mainframe->appendMetaTag( 'description', $mosConfig_MetaDesc );
$mainframe->appendMetaTag( 'keywords', $mosConfig_MetaKeys );
by
//$mainframe->appendMetaTag( 'description', $mosConfig_MetaDesc );
//$mainframe->appendMetaTag( 'keywords', $mosConfig_MetaKeys );
$mainframe->appendMetaTag( 'description', _METADESC );
$mainframe->appendMetaTag( 'keywords', _METAKEYS );
3. Add the following variables in your different language files (/languages/)
define( '_SITENAME', 'whatever here' );
define( '_METADESC', 'whatever here' );
define( '_METAKEYS', 'whatever here' );
THAT's IT This should work, and not erase dynamic titling & meta keywords&description per page appending
---------------------------------------------------------------------------------------------------------------------
TIP 4 - HOW TO LOAD A MODULE DEPENDING OF THE LANGUAGE
----------------------------------------------------------------------------------------------------------------------
MODULE - http://forum.joomla.org/index.php/topic ... #msg329684
http://www.designguru.org to load language-specific modules -->
if ($mosConfig_lang== english )
{mosLoadModules ( 'inside_r', -2 );}
?>
if ($mosConfig_lang== french )
{mosLoadModules ( 'inside_rfr', -2 );}
?>
Feel free to add your own tips in the thread below!!!
NEXT PENDING ISSUE FOR ME IS NOW A FULL COMPATIBILITY BETWEEN JOOMFISH & OPEN-SEF









help! I am a total newbie to joomla, I am trying to change the language of my site (to Hebrew) - I just dont get it - when you say add... replace... Am I taking the source of the site created by joomla, editing it and then using it as any other website I created before the days of Joomla? can I then go back to Joomla (say to add another category) or will it then only be able to handle its own creations and I will have to re-edit the the lines each time?
