How to make language chooser as country flags in Django-cms?

css, django-cms

Solution

Well, I made that (suddenly somebody find is useful). You must change the file language_chooser.html as follows:

{% load cms_tags i18n %}
{% for language in languages %}
<a href="{% page_language_url language.0 %}"{% ifequal lang language.0 %} class="current"{% endifequal %}><img src="{{ MEDIA_URL }}[path to your flags images]{{ language.0 }}.gif" /></a>
{% endfor %}

Problem

Well, question is in title. Is it possible at all? I can use css to make links looks like flags, it's easy, but there is a text also (English, French, Deutsch, etc.) Well, I will be grateful fo any kind help.

Original source