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 :(