1. Make sure the Title Native of Content Languages are Uppercase.
2. Set the Language Switcher module(s) parameters to:
Attachment:
Picture 63.jpg
3. Duplicate the file:
JOOMLAROOT/modules/mod_languages/tmpl/default.phpand place it in
YOURTEMPLATE/html/mod_languages/(if the html folder does not exist, create it)
4. Edit this file in a text editor by adding after line 11 the following code (in bold below):
Quote:
JHtml::_('stylesheet', 'mod_languages/template.css', array(), true);
$doc = JFactory::getDocument();
$modlangcss1 = "div.mod-languages li {border-left: 1px solid; padding-left: 0.6em; padding-right: 0.3em; margin:0;}";
$doc->addStyleDeclaration($modlangcss1);
$modlangcss2 = "div.mod-languages li.first {border-left:none; padding-left: 0;}";
$doc->addStyleDeclaration($modlangcss2);
?>
<div class="mod-languages<?php echo $moduleclass_sfx ?>">
Modify the css to fit your design.
Then change
Code:
<?php foreach($list as $language):?>
<?php if ($params->get('show_active', 0) || !$language->active):?>
<li class="<?php echo $language->active ? 'lang-active' : '';?>" dir="<?php echo JLanguage::getInstance($language->lang_code)->isRTL() ? 'rtl' : 'ltr' ?>">
<a href="<?php echo $language->link;?>">
to
Code:
<?php foreach($list as $language):?>
<?php if ($language === reset($list)):?>
<?php $first = " first";?>
<?php else:?>
<?php $first = "";?>
<?php endif;?>
<?php $lang_active = "lang_active";?>
<?php if ($params->get('show_active', 0) || !$language->active):?>
<li class="<?php echo $language->active ? $lang_active .$first : $first;?>" dir="<?php echo JLanguage::getInstance($language->lang_code)->isRTL() ? 'rtl' : 'ltr' ?>">
<a href="<?php echo $language->link;?>">
This should work. The advantage of this type of code is that it will not be overwritten when you update Joomla.
If you use RTL languages, this would have to be adapted.
Here is a a zip of the file, if it is easier for you.
Attachment:
default.php.zip
_________________
Jean-Marie Simonet / infograf ·
http://www.info-graf.fr Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group