Commit 081ff094 authored by Michal Čihař's avatar Michal Čihař

Change default for adding new languages

In most cases we want new languages, so let's make it this way.
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 0efb5089
# -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-03-10 09:50
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('trans', '0059_auto_20160303_0934'),
]
operations = [
migrations.AlterField(
model_name='change',
name='action',
field=models.IntegerField(choices=[(0, 'Resource update'), (1, 'Translation completed'), (2, 'Translation changed'), (5, 'New translation'), (3, 'Comment added'), (4, 'Suggestion added'), (6, 'Automatic translation'), (7, 'Suggestion accepted'), (8, 'Translation reverted'), (9, 'Translation uploaded'), (10, 'Glossary added'), (11, 'Glossary updated'), (12, 'Glossary uploaded'), (13, 'New source string'), (14, 'Component locked'), (15, 'Component unlocked'), (16, 'Detected duplicate string'), (17, 'Commited changes'), (18, 'Pushed changes'), (19, 'Reset repository'), (20, 'Merged repository'), (21, 'Rebased repository'), (22, 'Failed merge on repository'), (23, 'Failed rebase on repository'), (24, 'Parse error')], default=2),
),
migrations.AlterField(
model_name='subproject',
name='new_lang',
field=models.CharField(choices=[('contact', 'Use contact form'), ('url', 'Point to translation instructions URL'), ('add', 'Automatically add language file'), ('none', 'No adding of language')], default='add', help_text='How to handle requests for creating new translations. Please note that availability of choices depends on the file format.', max_length=10, verbose_name='New translation'),
),
]
...@@ -375,7 +375,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin): ...@@ -375,7 +375,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
verbose_name=ugettext_lazy('New translation'), verbose_name=ugettext_lazy('New translation'),
max_length=10, max_length=10,
choices=NEW_LANG_CHOICES, choices=NEW_LANG_CHOICES,
default='contact', default='add',
help_text=ugettext_lazy( help_text=ugettext_lazy(
'How to handle requests for creating new translations. ' 'How to handle requests for creating new translations. '
'Please note that availability of choices depends on ' 'Please note that availability of choices depends on '
......
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