Switch Language block

Permalink
Hello

I use switch language block on one of my website and It's working great but I would like to display only short codes of languages instead of full names, like pl for polish en for english and so one.
I try to edit the view.php file but It seams I lack the ability to do so and I couldn't find any solution on forum. Does anyone have some solution for the issue ?

Best Regards
Peter

 
hutman replied on at Permalink Reply
hutman
This would have to be done in the controller, I believe in the view function you have to change

$m->getLanguageText($m->getLocale());


to

$m->getLanguage();
popson replied on at Permalink Reply
You got this right hutman :) Many thanks for your help my friend. To bad it's not an option in the block or ad least possibility in themplate to code language or shortcode :(

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.