Jump to content

Custom Language Switcher


Recommended Posts

Hi,

 

Is it possible to change the design of the language switcher module to something like in the screenshot (see attachment).

 

So short notation:

 

French -> FR

Nederlands -> NL

English -> EN

 

 

Thanks!

Grafoman

 

 

post-1010307-0-65343500-1464878746_thumb.png

Link to comment
Share on other sites

In the default theme, in the file: /themes/default-bootstrap/modules/blocklanguages/blocklanguages.tpl

 

Just change this lines:

{if isset($lang_rewrite_urls.$indice_lang)}
	<a href="{$lang_rewrite_urls.$indice_lang|escape:'html':'UTF-8'}" title="{$language.name}">
{else}
	<a href="{$link->getLanguageLink($language.id_lang)|escape:'html':'UTF-8'}" title="{$language.name}">
{/if} 

To:

{if isset($lang_rewrite_urls.$indice_lang)}
	<a href="{$lang_rewrite_urls.$indice_lang|escape:'html':'UTF-8'}" title="{$language.iso_code}">
{else}
	<a href="{$link->getLanguageLink($language.id_lang)|escape:'html':'UTF-8'}" title="{$language.iso_code}">
{/if}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...