<div class="translate" tal:define="languages here/gl_get_languages_mapping;
	curr_lang python:request.get('lang', None) or here.gl_get_selected_language()">
	<span i18n:translate="" tal:omit-tag="">Translate in</span>
	<tal:block tal:repeat="language languages">
		<div class="current" tal:condition="python:language['code'] == curr_lang">
			<span tal:content="python:language['name']" i18n:translate="" />
		</div>
		<a tal:condition="python:language['code'] != curr_lang"
			tal:attributes="href string:?lang=${language/code}; title python:language['name']">
			<span tal:content="python:language['name']" i18n:translate="" />
		</a>
	</tal:block>
</div>
