From bb9869df73341707d1add303302d15c0006d0230 Mon Sep 17 00:00:00 2001 From: Olivier DOSSMANN Date: Sun, 4 Feb 2018 20:41:01 +0100 Subject: [PATCH] =?UTF-8?q?Application=20en=20anglais=20pour=20l'environne?= =?UTF-8?q?ment=20de=20d=C3=A9veloppement:=20notamment=20pour?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit les fichiers de migration --- collection/collection/components/i18n.py | 6 +- .../migrations/0013_auto_20180204_1934.py | 119 ++++++++++++++++++ 2 files changed, 121 insertions(+), 4 deletions(-) create mode 100644 collection/games/migrations/0013_auto_20180204_1934.py diff --git a/collection/collection/components/i18n.py b/collection/collection/components/i18n.py index 9c940da..b67d286 100644 --- a/collection/collection/components/i18n.py +++ b/collection/collection/components/i18n.py @@ -2,12 +2,11 @@ # https://docs.djangoproject.com/en/1.11/topics/i18n/ from django.utils.translation import ugettext_lazy as _ -LANGUAGE_CODE = 'fr' +LANGUAGE_CODE = os.getenv('LANGUAGE_CODE', 'fr') LANGUAGES = ( ('fr', _('French')), - ('en', _('English')), -) + ('en', _('English')), ) TIME_ZONE = 'UTC' @@ -22,4 +21,3 @@ LOCALE_PATHS = [ os.path.join(BASE_DIR, 'conf/locale'), os.path.join(BASE_DIR, 'collection/locale') ] - diff --git a/collection/games/migrations/0013_auto_20180204_1934.py b/collection/games/migrations/0013_auto_20180204_1934.py new file mode 100644 index 0000000..07b773c --- /dev/null +++ b/collection/games/migrations/0013_auto_20180204_1934.py @@ -0,0 +1,119 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.9 on 2018-02-04 19:34 +from __future__ import unicode_literals + +import django.db.models.deletion +from django.db import migrations +from django.db import models + + +class Migration(migrations.Migration): + + dependencies = [ + ('games', '0012_add_achievements'), + ] + + operations = [ + migrations.AlterModelOptions( + name='game', + options={ + 'ordering': ('-playing', 'name'), + 'verbose_name': 'game', + 'verbose_name_plural': 'games' + }, ), + migrations.AlterModelOptions( + name='platform', + options={ + 'ordering': ('name', ), + 'verbose_name': 'platform', + 'verbose_name_plural': 'platforms' + }, ), + migrations.AlterModelOptions( + name='timeline', + options={ + 'ordering': ('-date', ), + 'verbose_name': 'Timeline', + 'verbose_name_plural': 'Timelines' + }, ), + migrations.AlterField( + model_name='game', + name='collection', + field=models.ForeignKey( + help_text='Game running platform', + on_delete=django.db.models.deletion.CASCADE, + related_name='games', + to='games.Platform', + verbose_name='platform'), ), + migrations.AlterField( + model_name='game', + name='name', + field=models.CharField( + help_text='Game title', max_length=255, verbose_name='name'), + ), + migrations.AlterField( + model_name='game', + name='note', + field=models.CharField( + blank=True, + help_text='Short note displayed to your followers.', + max_length=150, + null=True, + verbose_name='Progress note'), ), + migrations.AlterField( + model_name='game', + name='playing', + field=models.BooleanField( + default=False, + help_text="You're currently playing this game.", + verbose_name='playing?'), ), + migrations.AlterField( + model_name='game', + name='status', + field=models.CharField( + choices=[('created', 'New'), ('beaten', 'Beaten'), + ('completed', 'Completed'), ('excluded', 'Excluded'), + ('mastered', 'Mastered'), ('unfinished', + 'Unfinished')], + default='unfinished', + help_text='Game progression', + max_length=30, + verbose_name='status'), ), + migrations.AlterField( + model_name='game', + name='unplayed', + field=models.BooleanField( + default=False, + help_text='You never played this game.', + verbose_name='unplayed?'), ), + migrations.AlterField( + model_name='game', + name='wish', + field=models.BooleanField( + default=False, + help_text="You're waiting X-mas father offers you this game.", + verbose_name='wish?'), ), + migrations.AlterField( + model_name='platform', + name='shortname', + field=models.CharField(max_length=30, verbose_name='shortname'), ), + migrations.AlterField( + model_name='timeline', + name='item', + field=models.ForeignKey( + help_text='Which game?', + on_delete=django.db.models.deletion.CASCADE, + to='games.Game', + verbose_name='game'), ), + migrations.AlterField( + model_name='timeline', + name='status', + field=models.CharField( + choices=[('created', 'New'), ('beaten', 'Beaten'), + ('completed', 'Completed'), ('excluded', 'Excluded'), + ('mastered', 'Mastered'), ('unfinished', + 'Unfinished')], + default='created', + help_text='New status for this game at the given date', + max_length=30, + verbose_name='status'), ), + ]