May be it not a issue on this module, but I need add language icon on my theme.

Is there some code so that I can add them to page.tpl.php to show language icon (icon in same line)?

Anyone can help me?

Comments

e-roula’s picture

Do you still have this issue? If you still do what is your problem exactly? Did you install the module? Are you not able to show the icons or do you want to change the way you are displaying them?

open social’s picture

Our designer included the icons hard coded on our theme source as follows:

<a href="/en"><img src="lang_en.gif" alt="English" /></a> 
<a href="/nl"><img src="lang_nl.gif" alt="Dutch" /></a>

How can I theme this so the links are not static, but variable language links? thanks!

Update: We solved this by using the Block that switches between languages and css for positioning.

roneill’s picture

Could you provide an example of how you did this? It would be very helpful. For example, have you managed to display the language switcher inline in say the header of a page?

Thanks in advance

Ryan

Freso’s picture

Component: Miscellaneous » Code
Status: Active » Fixed

I would think calling theme('languageicons_icon', $language, $title) should do the trick (note that the $title is optional and will default to the language's native name if not given). Look at the function theme_languageicons_icon() for how it works and what it'll produce.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.