How to make language prefix appear

General questions regarding the use of languages in Joomla! 2.5.

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.
Locked
User avatar
Bandolin
Joomla! Intern
Joomla! Intern
Posts: 55
Joined: Sat Aug 13, 2011 12:58 am

How to make language prefix appear

Post by Bandolin » Tue Aug 28, 2012 7:48 pm

On my site I have the language flag appears, but some of my less than intelligent visitors don't see this as a language switcher. They've been complaining that they don't see a language prefix like EN for English. How to I get both the icon image and the prefix to appear?
Online: No friends online. Offline: No friends offline. :(

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

Re: How to make language prefix appear

Post by infograf768 » Wed Aug 29, 2012 8:13 am

Hovering the flag displays the native name of the language already.
Adding a pre-text when creating a switcher module per Content Language, may include in the language something like: "Please choose your language"

Last: an override in your template html folder may change the display to include a visible text next to the flag.
Picture 88.jpg
To do the last one, you will have to add in the template html folder:
a mod_languages folder
and in it
an index.html file
a copy of /modules/mod_languages/tmpl/default.php

in which you will change line 35
from

Code: Select all

<?php echo JHtml::_('image', 'mod_languages/'.$language->image.'.gif', $language->title_native, array('title'=>$language->title_native), true);?>
to

Code: Select all

<?php echo JHtml::_('image', 'mod_languages/'.$language->image.'.gif', $language->title_native, array('title'=>$language->title_native), true); echo " ".strtoupper($language->sef);?>
You do not have the required permissions to view the files attached to this post.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
Bandolin
Joomla! Intern
Joomla! Intern
Posts: 55
Joined: Sat Aug 13, 2011 12:58 am

Re: How to make language prefix appear

Post by Bandolin » Wed Aug 29, 2012 7:32 pm

I cannot see the attachments you included.
Online: No friends online. Offline: No friends offline. :(


Locked

Return to “Language - Joomla! 2.5”