Commit 73921ea2 authored by Michal Čihař's avatar Michal Čihař

Normalize language code before talking to machine translation (issue #179)

parent ba58281d
......@@ -1473,7 +1473,7 @@ def translate(request, project, subproject, lang):
'form': form,
'antispam': antispam,
'comment_form': CommentForm(),
'target_language': obj.language.code,
'target_language': obj.language.code.replace('_', '-').lower(),
'secondary': secondary,
'search_query': search_query,
'search_url': search_url,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment