Add a new subscription for the Welcome Week

This commit is contained in:
Pierre Brunet 2017-08-21 21:06:05 +02:00
parent d511bdef03
commit e785ad985f
5 changed files with 233 additions and 56 deletions

View File

@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-15 18:57+0200\n" "POT-Creation-Date: 2017-08-21 21:00+0200\n"
"PO-Revision-Date: 2016-07-18\n" "PO-Revision-Date: 2016-07-18\n"
"Last-Translator: Skia <skia@libskia.so>\n" "Last-Translator: Skia <skia@libskia.so>\n"
"Language-Team: AE info <ae.info@utbm.fr>\n" "Language-Team: AE info <ae.info@utbm.fr>\n"
@ -183,8 +183,14 @@ msgid "User"
msgstr "Utilisateur" msgstr "Utilisateur"
#: accounting/models.py:271 club/templates/club/club_detail.jinja:5 #: accounting/models.py:271 club/templates/club/club_detail.jinja:5
#: com/templates/com/news_admin_list.jinja:17 #: com/templates/com/news_admin_list.jinja:21
#: com/templates/com/news_admin_list.jinja:52 #: com/templates/com/news_admin_list.jinja:50
#: com/templates/com/news_admin_list.jinja:81
#: com/templates/com/news_admin_list.jinja:122
#: com/templates/com/news_admin_list.jinja:165
#: com/templates/com/news_admin_list.jinja:200
#: com/templates/com/news_admin_list.jinja:237
#: com/templates/com/news_admin_list.jinja:272
#: com/templates/com/weekmail.jinja:18 com/templates/com/weekmail.jinja:47 #: com/templates/com/weekmail.jinja:18 com/templates/com/weekmail.jinja:47
#: core/templates/core/user_clubs.jinja:15 #: core/templates/core/user_clubs.jinja:15
#: core/templates/core/user_clubs.jinja:41 #: core/templates/core/user_clubs.jinja:41
@ -380,8 +386,14 @@ msgstr "Nouveau compte club"
#: accounting/templates/accounting/bank_account_list.jinja:21 #: accounting/templates/accounting/bank_account_list.jinja:21
#: accounting/templates/accounting/club_account_details.jinja:57 #: accounting/templates/accounting/club_account_details.jinja:57
#: accounting/templates/accounting/journal_details.jinja:83 club/views.py:73 #: accounting/templates/accounting/journal_details.jinja:83 club/views.py:73
#: com/templates/com/news_admin_list.jinja:39 #: com/templates/com/news_admin_list.jinja:37
#: com/templates/com/news_admin_list.jinja:72 #: com/templates/com/news_admin_list.jinja:64
#: com/templates/com/news_admin_list.jinja:109
#: com/templates/com/news_admin_list.jinja:148
#: com/templates/com/news_admin_list.jinja:187
#: com/templates/com/news_admin_list.jinja:220
#: com/templates/com/news_admin_list.jinja:259
#: com/templates/com/news_admin_list.jinja:292
#: com/templates/com/weekmail.jinja:32 com/templates/com/weekmail.jinja:61 #: com/templates/com/weekmail.jinja:32 com/templates/com/weekmail.jinja:61
#: core/templates/core/file.jinja:38 core/templates/core/page.jinja:31 #: core/templates/core/file.jinja:38 core/templates/core/page.jinja:31
#: core/templates/core/user_tools.jinja:42 core/views/user.py:186 #: core/templates/core/user_tools.jinja:42 core/views/user.py:186
@ -457,14 +469,18 @@ msgid "Name"
msgstr "Nom" msgstr "Nom"
#: accounting/templates/accounting/club_account_details.jinja:31 #: accounting/templates/accounting/club_account_details.jinja:31
#: com/templates/com/news_admin_list.jinja:20 #: com/templates/com/news_admin_list.jinja:168
#: com/templates/com/news_admin_list.jinja:54 #: com/templates/com/news_admin_list.jinja:202
#: com/templates/com/news_admin_list.jinja:240
#: com/templates/com/news_admin_list.jinja:274
msgid "Start" msgid "Start"
msgstr "Début" msgstr "Début"
#: accounting/templates/accounting/club_account_details.jinja:32 #: accounting/templates/accounting/club_account_details.jinja:32
#: com/templates/com/news_admin_list.jinja:21 #: com/templates/com/news_admin_list.jinja:169
#: com/templates/com/news_admin_list.jinja:55 #: com/templates/com/news_admin_list.jinja:203
#: com/templates/com/news_admin_list.jinja:241
#: com/templates/com/news_admin_list.jinja:275
msgid "End" msgid "End"
msgstr "Fin" msgstr "Fin"
@ -486,8 +502,14 @@ msgstr "Fermé"
#: accounting/templates/accounting/club_account_details.jinja:36 #: accounting/templates/accounting/club_account_details.jinja:36
#: accounting/templates/accounting/journal_details.jinja:41 #: accounting/templates/accounting/journal_details.jinja:41
#: com/templates/com/news_admin_list.jinja:22 #: com/templates/com/news_admin_list.jinja:24
#: com/templates/com/news_admin_list.jinja:56 #: com/templates/com/news_admin_list.jinja:52
#: com/templates/com/news_admin_list.jinja:85
#: com/templates/com/news_admin_list.jinja:125
#: com/templates/com/news_admin_list.jinja:170
#: com/templates/com/news_admin_list.jinja:204
#: com/templates/com/news_admin_list.jinja:242
#: com/templates/com/news_admin_list.jinja:276
#: com/templates/com/weekmail.jinja:21 com/templates/com/weekmail.jinja:50 #: com/templates/com/weekmail.jinja:21 com/templates/com/weekmail.jinja:50
msgid "Actions" msgid "Actions"
msgstr "Actions" msgstr "Actions"
@ -503,9 +525,15 @@ msgid "No"
msgstr "Non" msgstr "Non"
#: accounting/templates/accounting/club_account_details.jinja:56 #: accounting/templates/accounting/club_account_details.jinja:56
#: com/templates/com/news_admin_list.jinja:38 #: com/templates/com/news_admin_list.jinja:36
#: com/templates/com/news_admin_list.jinja:71 core/templates/core/file.jinja:36 #: com/templates/com/news_admin_list.jinja:63
#: core/templates/core/page.jinja:28 #: com/templates/com/news_admin_list.jinja:108
#: com/templates/com/news_admin_list.jinja:147
#: com/templates/com/news_admin_list.jinja:186
#: com/templates/com/news_admin_list.jinja:219
#: com/templates/com/news_admin_list.jinja:258
#: com/templates/com/news_admin_list.jinja:291
#: core/templates/core/file.jinja:36 core/templates/core/page.jinja:28
msgid "View" msgid "View"
msgstr "Voir" msgstr "Voir"
@ -1221,19 +1249,39 @@ msgstr "Administration des nouvelles"
msgid "News" msgid "News"
msgstr "Nouvelles" msgstr "Nouvelles"
#: com/templates/com/news_admin_list.jinja:10 #: com/templates/com/news_admin_list.jinja:12
msgid "Displayed news" #, fuzzy
msgstr "Nouvelles affichées" #| msgid "Notice"
msgid "Notices"
msgstr "Information"
#: com/templates/com/news_admin_list.jinja:14 #: com/templates/com/news_admin_list.jinja:14
#: com/templates/com/news_admin_list.jinja:49 #, fuzzy
#| msgid "Displayed news"
msgid "Displayed notices"
msgstr "Nouvelles affichées"
#: com/templates/com/news_admin_list.jinja:18
#: com/templates/com/news_admin_list.jinja:47
#: com/templates/com/news_admin_list.jinja:78
#: com/templates/com/news_admin_list.jinja:119
#: com/templates/com/news_admin_list.jinja:162
#: com/templates/com/news_admin_list.jinja:197
#: com/templates/com/news_admin_list.jinja:234
#: com/templates/com/news_admin_list.jinja:269
#: launderette/templates/launderette/launderette_admin.jinja:42 #: launderette/templates/launderette/launderette_admin.jinja:42
#: launderette/views.py:184 #: launderette/views.py:184
msgid "Type" msgid "Type"
msgstr "Type" msgstr "Type"
#: com/templates/com/news_admin_list.jinja:15 #: com/templates/com/news_admin_list.jinja:19
#: com/templates/com/news_admin_list.jinja:50 #: com/templates/com/news_admin_list.jinja:48
#: com/templates/com/news_admin_list.jinja:79
#: com/templates/com/news_admin_list.jinja:120
#: com/templates/com/news_admin_list.jinja:163
#: com/templates/com/news_admin_list.jinja:198
#: com/templates/com/news_admin_list.jinja:235
#: com/templates/com/news_admin_list.jinja:270
#: com/templates/com/weekmail.jinja:19 com/templates/com/weekmail.jinja:48 #: com/templates/com/weekmail.jinja:19 com/templates/com/weekmail.jinja:48
#: core/templates/core/base.jinja:243 forum/templates/forum/forum.jinja:29 #: core/templates/core/base.jinja:243 forum/templates/forum/forum.jinja:29
#: forum/templates/forum/forum.jinja:48 forum/templates/forum/main.jinja:25 #: forum/templates/forum/forum.jinja:48 forum/templates/forum/main.jinja:25
@ -1241,31 +1289,54 @@ msgstr "Type"
msgid "Title" msgid "Title"
msgstr "Titre" msgstr "Titre"
#: com/templates/com/news_admin_list.jinja:16 #: com/templates/com/news_admin_list.jinja:20
#: com/templates/com/news_admin_list.jinja:51 #: com/templates/com/news_admin_list.jinja:49
#: com/templates/com/news_admin_list.jinja:80
#: com/templates/com/news_admin_list.jinja:121
#: com/templates/com/news_admin_list.jinja:164
#: com/templates/com/news_admin_list.jinja:199
#: com/templates/com/news_admin_list.jinja:236
#: com/templates/com/news_admin_list.jinja:271
msgid "Summary" msgid "Summary"
msgstr "Résumé" msgstr "Résumé"
#: com/templates/com/news_admin_list.jinja:18 #: com/templates/com/news_admin_list.jinja:22
#: com/templates/com/news_admin_list.jinja:53 #: com/templates/com/news_admin_list.jinja:51
#: com/templates/com/news_admin_list.jinja:82
#: com/templates/com/news_admin_list.jinja:123
#: com/templates/com/news_admin_list.jinja:166
#: com/templates/com/news_admin_list.jinja:201
#: com/templates/com/news_admin_list.jinja:238
#: com/templates/com/news_admin_list.jinja:273
#: com/templates/com/weekmail.jinja:17 com/templates/com/weekmail.jinja:46 #: com/templates/com/weekmail.jinja:17 com/templates/com/weekmail.jinja:46
#: forum/templates/forum/forum.jinja:52 #: forum/templates/forum/forum.jinja:52
msgid "Author" msgid "Author"
msgstr "Auteur" msgstr "Auteur"
#: com/templates/com/news_admin_list.jinja:19 #: com/templates/com/news_admin_list.jinja:23
#: com/templates/com/news_admin_list.jinja:83
#: com/templates/com/news_admin_list.jinja:167
#: com/templates/com/news_admin_list.jinja:239
msgid "Moderator" msgid "Moderator"
msgstr "Modérateur" msgstr "Modérateur"
#: com/templates/com/news_admin_list.jinja:40 #: com/templates/com/news_admin_list.jinja:38
#: com/templates/com/news_admin_list.jinja:110
#: com/templates/com/news_admin_list.jinja:188
#: com/templates/com/news_admin_list.jinja:260
msgid "Remove" msgid "Remove"
msgstr "" msgstr ""
#: com/templates/com/news_admin_list.jinja:45 #: com/templates/com/news_admin_list.jinja:43
msgid "News to moderate" #, fuzzy
#| msgid "News to moderate"
msgid "Notices to moderate"
msgstr "Nouvelles à modérer" msgstr "Nouvelles à modérer"
#: com/templates/com/news_admin_list.jinja:73 #: com/templates/com/news_admin_list.jinja:65
#: com/templates/com/news_admin_list.jinja:149
#: com/templates/com/news_admin_list.jinja:221
#: com/templates/com/news_admin_list.jinja:293
#: com/templates/com/news_detail.jinja:26 #: com/templates/com/news_detail.jinja:26
#: core/templates/core/file_detail.jinja:65 #: core/templates/core/file_detail.jinja:65
#: core/templates/core/file_moderation.jinja:23 #: core/templates/core/file_moderation.jinja:23
@ -1273,6 +1344,66 @@ msgstr "Nouvelles à modérer"
msgid "Moderate" msgid "Moderate"
msgstr "Modérer" msgstr "Modérer"
#: com/templates/com/news_admin_list.jinja:72
#, fuzzy
#| msgid "Weekly"
msgid "Weeklies"
msgstr "Hebdomadaire"
#: com/templates/com/news_admin_list.jinja:74
#, fuzzy
#| msgid "Displayed news"
msgid "Displayed weeklies"
msgstr "Nouvelles affichées"
#: com/templates/com/news_admin_list.jinja:84
#: com/templates/com/news_admin_list.jinja:124
#: trombi/templates/trombi/edit_profile.jinja:24
msgid "Dates"
msgstr "Dates"
#: com/templates/com/news_admin_list.jinja:115
#, fuzzy
#| msgid "News to moderate"
msgid "Weeklies to moderate"
msgstr "Nouvelles à modérer"
#: com/templates/com/news_admin_list.jinja:156
#, fuzzy
#| msgid "Call"
msgid "Calls"
msgstr "Appel"
#: com/templates/com/news_admin_list.jinja:158
#, fuzzy
#| msgid "Displayed news"
msgid "Displayed calls"
msgstr "Nouvelles affichées"
#: com/templates/com/news_admin_list.jinja:193
#, fuzzy
#| msgid "News to moderate"
msgid "Calls to moderate"
msgstr "Nouvelles à modérer"
#: com/templates/com/news_admin_list.jinja:228
#, fuzzy
#| msgid "Event"
msgid "Events"
msgstr "Événement"
#: com/templates/com/news_admin_list.jinja:230
#, fuzzy
#| msgid "Displayed news"
msgid "Displayed events"
msgstr "Nouvelles affichées"
#: com/templates/com/news_admin_list.jinja:265
#, fuzzy
#| msgid "News to moderate"
msgid "Events to moderate"
msgstr "Nouvelles à modérer"
#: com/templates/com/news_detail.jinja:10 #: com/templates/com/news_detail.jinja:10
msgid "Back to news" msgid "Back to news"
msgstr "Retour aux nouvelles" msgstr "Retour aux nouvelles"
@ -3860,12 +3991,12 @@ msgid "Washing and drying"
msgstr "Lavage et séchage" msgstr "Lavage et séchage"
#: launderette/templates/launderette/launderette_book.jinja:27 #: launderette/templates/launderette/launderette_book.jinja:27
#: sith/settings.py:534 #: sith/settings.py:539
msgid "Washing" msgid "Washing"
msgstr "Lavage" msgstr "Lavage"
#: launderette/templates/launderette/launderette_book.jinja:31 #: launderette/templates/launderette/launderette_book.jinja:31
#: sith/settings.py:534 #: sith/settings.py:539
msgid "Drying" msgid "Drying"
msgstr "Séchage" msgstr "Séchage"
@ -4168,89 +4299,95 @@ msgstr "Membres du CROUS, 0 €"
msgid "Sbarro/ESTA member" msgid "Sbarro/ESTA member"
msgstr "Membre de Sbarro ou de l'ESTA, 15 €" msgstr "Membre de Sbarro ou de l'ESTA, 15 €"
#: sith/settings.py:499 #: sith/settings.py:482
#, fuzzy
#| msgid "One semester"
msgid "One semester Welcome Week"
msgstr "Un semestre - Welcome Week"
#: sith/settings.py:504
msgid "President" msgid "President"
msgstr "Président" msgstr "Président"
#: sith/settings.py:500 #: sith/settings.py:505
msgid "Vice-President" msgid "Vice-President"
msgstr "Vice-Président" msgstr "Vice-Président"
#: sith/settings.py:501 #: sith/settings.py:506
msgid "Treasurer" msgid "Treasurer"
msgstr "Trésorier" msgstr "Trésorier"
#: sith/settings.py:502 #: sith/settings.py:507
msgid "Communication supervisor" msgid "Communication supervisor"
msgstr "Responsable communication" msgstr "Responsable communication"
#: sith/settings.py:503 #: sith/settings.py:508
msgid "Secretary" msgid "Secretary"
msgstr "Secrétaire" msgstr "Secrétaire"
#: sith/settings.py:504 #: sith/settings.py:509
msgid "IT supervisor" msgid "IT supervisor"
msgstr "Responsable info" msgstr "Responsable info"
#: sith/settings.py:505 #: sith/settings.py:510
msgid "Board member" msgid "Board member"
msgstr "Membre du bureau" msgstr "Membre du bureau"
#: sith/settings.py:506 #: sith/settings.py:511
msgid "Active member" msgid "Active member"
msgstr "Membre actif" msgstr "Membre actif"
#: sith/settings.py:507 #: sith/settings.py:512
msgid "Curious" msgid "Curious"
msgstr "Curieux" msgstr "Curieux"
#: sith/settings.py:541 #: sith/settings.py:546
msgid "A fresh new to be moderated" msgid "A fresh new to be moderated"
msgstr "Une nouvelle toute neuve à modérer" msgstr "Une nouvelle toute neuve à modérer"
#: sith/settings.py:542 #: sith/settings.py:547
msgid "New files to be moderated" msgid "New files to be moderated"
msgstr "Nouveaux fichiers à modérer" msgstr "Nouveaux fichiers à modérer"
#: sith/settings.py:543 #: sith/settings.py:548
msgid "New pictures/album to be moderated in the SAS" msgid "New pictures/album to be moderated in the SAS"
msgstr "Nouvelles photos/albums à modérer dans le SAS" msgstr "Nouvelles photos/albums à modérer dans le SAS"
#: sith/settings.py:544 #: sith/settings.py:549
msgid "You've been identified on some pictures" msgid "You've been identified on some pictures"
msgstr "Vous avez été identifié sur des photos" msgstr "Vous avez été identifié sur des photos"
#: sith/settings.py:545 #: sith/settings.py:550
#, python-format #, python-format
msgid "You just refilled of %s €" msgid "You just refilled of %s €"
msgstr "Vous avez rechargé votre compte de %s €" msgstr "Vous avez rechargé votre compte de %s €"
#: sith/settings.py:546 #: sith/settings.py:551
#, python-format #, python-format
msgid "You just bought %s" msgid "You just bought %s"
msgstr "Vous avez acheté %s" msgstr "Vous avez acheté %s"
#: sith/settings.py:547 #: sith/settings.py:552
msgid "You have a notification" msgid "You have a notification"
msgstr "Vous avez une notification" msgstr "Vous avez une notification"
#: sith/settings.py:551 #: sith/settings.py:556
msgid "Success!" msgid "Success!"
msgstr "Succès !" msgstr "Succès !"
#: sith/settings.py:552 #: sith/settings.py:557
msgid "Fail!" msgid "Fail!"
msgstr "Échec !" msgstr "Échec !"
#: sith/settings.py:553 #: sith/settings.py:558
msgid "You successfully posted an article in the Weekmail" msgid "You successfully posted an article in the Weekmail"
msgstr "Article posté avec succès dans le Weekmail" msgstr "Article posté avec succès dans le Weekmail"
#: sith/settings.py:554 #: sith/settings.py:559
msgid "You successfully edited an article in the Weekmail" msgid "You successfully edited an article in the Weekmail"
msgstr "Article édité avec succès dans le Weekmail" msgstr "Article édité avec succès dans le Weekmail"
#: sith/settings.py:555 #: sith/settings.py:560
msgid "You successfully sent the Weekmail" msgid "You successfully sent the Weekmail"
msgstr "Weekmail envoyé avec succès" msgstr "Weekmail envoyé avec succès"
@ -4654,10 +4791,6 @@ msgstr ""
"Réinitialiser les participations aux clubs dans le Trombi (supprime les " "Réinitialiser les participations aux clubs dans le Trombi (supprime les "
"existantes, n'impacte pas les vraies appartenances du site)" "existantes, n'impacte pas les vraies appartenances du site)"
#: trombi/templates/trombi/edit_profile.jinja:24
msgid "Dates"
msgstr "Dates"
#: trombi/templates/trombi/export.jinja:16 #: trombi/templates/trombi/export.jinja:16
msgid "Date of birth: " msgid "Date of birth: "
msgstr "Date de naissance : " msgstr "Date de naissance : "

View File

@ -478,6 +478,11 @@ SITH_SUBSCRIPTIONS = {
'price': 15, 'price': 15,
'duration': 2, 'duration': 2,
}, },
'un-semestre-welcome': {
'name': _('One semester Welcome Week'),
'price': 0,
'duration': 1,
},
# To be completed.... # To be completed....
} }

View File

@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('subscription', '0003_auto_20160902_1914'),
]
operations = [
migrations.AlterField(
model_name='subscription',
name='subscription_type',
field=models.CharField(verbose_name='subscription type', choices=[('amicale/doceo', 'Amicale/DOCEO member'), ('assidu', 'Assidu member'), ('crous', 'CROUS member'), ('cursus-alternant', 'Alternating cursus'), ('cursus-branche', 'Branch cursus'), ('cursus-tronc-commun', 'Common core cursus'), ('deux-semestres', 'Two semesters'), ('membre-honoraire', 'Honorary member'), ('reseau-ut', 'UT network member'), ('sbarro/esta', 'Sbarro/ESTA member'), ('sixieme-de-semestre', 'One month for free'), ('un-semestre', 'One semester'), ('un-semestre-welcome', 'One semester Welcome Week')], max_length=255),
),
]

View File

@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('subscription', '0004_auto_20170821_1849'),
]
operations = [
migrations.AlterField(
model_name='subscription',
name='subscription_type',
field=models.CharField(choices=[('amicale/doceo', 'Amicale/DOCEO member'), ('assidu', 'Assidu member'), ('crous', 'CROUS member'), ('cursus-alternant', 'Alternating cursus'), ('cursus-branche', 'Branch cursus'), ('cursus-tronc-commun', 'Common core cursus'), ('deux-semestres', 'Two semesters'), ('membre-honoraire', 'Honorary member'), ('reseau-ut', 'UT network member'), ('sbarro/esta', 'Sbarro/ESTA member'), ('un-semestre', 'One semester'), ('un-semestre-welcome', 'One semester Welcome Week')], max_length=255, verbose_name='subscription type'),
),
]

View File

@ -103,6 +103,7 @@ class Subscription(models.Model):
'crous': 8, 'crous': 8,
'sbarro/esta': 9, 'sbarro/esta': 9,
'cursus-alternant': 10, 'cursus-alternant': 10,
'welcome-semestre': 11,
} }
PAYMENT = { PAYMENT = {
"CHECK": 1, "CHECK": 1,