Add separator between languages

General questions regarding the use of languages in Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
aantickg
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Mon May 03, 2010 6:45 pm

Add separator between languages

Post by aantickg » Tue Oct 28, 2014 7:21 am

Is it possible to add a separator like this | between languages in Joomla 3? I found a solution for Joomla 2.5 here: http://forum.joomla.org/viewtopic.php?f=617&t=712680 but I need to implement this in Joomla 3
Thanking you in advance!
Alex

waarnemer
Joomla! Hero
Joomla! Hero
Posts: 2954
Joined: Sun May 04, 2008 12:37 pm

Re: Add separator between languages

Post by waarnemer » Tue Oct 28, 2014 12:07 pm

It would work in your 3.x this way also.. there might be some minor differences but for the majority it is the same...

aantickg
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Mon May 03, 2010 6:45 pm

Re: Add separator between languages

Post by aantickg » Tue Oct 28, 2014 12:14 pm

Thanks for you reply! This piece of code got me confused because it does not exist within the default.php file in Joomla 3 -

<?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;?>">

Would you be able to provide exact instructions on how to achieve this?

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Add separator between languages

Post by infograf768 » Thu Oct 30, 2014 9:49 am

It is the same code as before for that part
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

aantickg
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Mon May 03, 2010 6:45 pm

Re: Add separator between languages

Post by aantickg » Fri Oct 31, 2014 5:11 pm

Sorry, it was my mistake, the procedure is the same for Joomla 3. The piece of code I mentioned is found around line 35 in default.php file of Joomla 3.3.3 installation.
I managed to insert a separator by following this procedure: http://forum.joomla.org/viewtopic.php?f=617&t=712680 I made minor changes to css to fit my design.
This is the website where I implemented this - http://www.vjesus.org in the upper right corner.


Locked

Return to “Language - Joomla! 3.x”