Commit 548ca19d authored by Michal Čihař's avatar Michal Čihař

Require user to actively select language

Avoids having every project being translated to Acholi

Fixes #781
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 31e2a601
......@@ -723,7 +723,7 @@ class NewLanguageForm(forms.Form):
def __init__(self, *args, **kwargs):
super(NewLanguageForm, self).__init__(*args, **kwargs)
choices = sort_choices([
choices = sort_choices([('', _('Please select'))] + [
(l.code, l.__unicode__()) for l in Language.objects.all()
])
self.fields['lang'].choices = choices
......
......@@ -479,7 +479,10 @@ def new_language(request, project, subproject):
else:
messages.error(
request,
_('Failed to process new translation request!')
_(
'Please choose the language into which '
'you would like to translate.'
)
)
return redirect(
......
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