Add unknown event translation

This commit is contained in:
Antoine Bartuccio 2016-10-25 21:53:40 +02:00
parent bafa9ac10c
commit 677c50a4b1
3 changed files with 61 additions and 58 deletions

View File

@ -301,7 +301,7 @@ class Selling(models.Model):
super(Selling, self).delete(*args, **kwargs) super(Selling, self).delete(*args, **kwargs)
def send_mail_customer(self): def send_mail_customer(self):
event = self.product.eticket.event_title event = self.product.eticket.event_title or _("Unknown event")
subject = _('Eticket bought for the event %(event)s') % {'event': event} subject = _('Eticket bought for the event %(event)s') % {'event': event}
message_html = _( message_html = _(
"You bought an eticket for the event %(event)s.\nYou can download it on this page %(url)s." "You bought an eticket for the event %(event)s.\nYou can download it on this page %(url)s."

Binary file not shown.

View File

@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-10-20 18:33+0200\n" "POT-Creation-Date: 2016-10-25 21:49+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"
@ -17,8 +17,8 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: accounting/models.py:36 accounting/models.py:55 accounting/models.py:82 #: accounting/models.py:36 accounting/models.py:55 accounting/models.py:82
#: accounting/models.py:141 club/models.py:19 counter/models.py:72 #: accounting/models.py:141 club/models.py:19 counter/models.py:70
#: counter/models.py:97 counter/models.py:132 launderette/models.py:15 #: counter/models.py:95 counter/models.py:130 launderette/models.py:15
#: launderette/models.py:60 launderette/models.py:85 #: launderette/models.py:60 launderette/models.py:85
msgid "name" msgid "name"
msgstr "nom" msgstr "nom"
@ -64,7 +64,7 @@ msgid "account number"
msgstr "numero de compte" msgstr "numero de compte"
#: accounting/models.py:58 accounting/models.py:83 club/models.py:145 #: accounting/models.py:58 accounting/models.py:83 club/models.py:145
#: counter/models.py:106 counter/models.py:133 #: counter/models.py:104 counter/models.py:131
msgid "club" msgid "club"
msgstr "club" msgstr "club"
@ -85,12 +85,12 @@ msgstr "Compte club"
msgid "%(club_account)s on %(bank_account)s" msgid "%(club_account)s on %(bank_account)s"
msgstr "%(club_account)s sur %(bank_account)s" msgstr "%(club_account)s sur %(bank_account)s"
#: accounting/models.py:139 club/models.py:146 counter/models.py:381 #: accounting/models.py:139 club/models.py:146 counter/models.py:380
#: launderette/models.py:122 #: launderette/models.py:122
msgid "start date" msgid "start date"
msgstr "date de début" msgstr "date de début"
#: accounting/models.py:140 club/models.py:147 counter/models.py:382 #: accounting/models.py:140 club/models.py:147 counter/models.py:381
msgid "end date" msgid "end date"
msgstr "date de fin" msgstr "date de fin"
@ -103,7 +103,7 @@ msgid "club account"
msgstr "compte club" msgstr "compte club"
#: accounting/models.py:144 accounting/models.py:190 counter/models.py:28 #: accounting/models.py:144 accounting/models.py:190 counter/models.py:28
#: counter/models.py:236 #: counter/models.py:234
msgid "amount" msgid "amount"
msgstr "montant" msgstr "montant"
@ -124,16 +124,16 @@ msgid "journal"
msgstr "classeur" msgstr "classeur"
#: accounting/models.py:191 core/models.py:498 core/models.py:776 #: accounting/models.py:191 core/models.py:498 core/models.py:776
#: counter/models.py:239 counter/models.py:282 counter/models.py:398 #: counter/models.py:237 counter/models.py:280 counter/models.py:397
#: eboutic/models.py:15 eboutic/models.py:48 #: eboutic/models.py:15 eboutic/models.py:48
msgid "date" msgid "date"
msgstr "date" msgstr "date"
#: accounting/models.py:192 counter/models.py:399 #: accounting/models.py:192 counter/models.py:398
msgid "comment" msgid "comment"
msgstr "commentaire" msgstr "commentaire"
#: accounting/models.py:193 counter/models.py:240 counter/models.py:283 #: accounting/models.py:193 counter/models.py:238 counter/models.py:281
#: subscription/models.py:57 #: subscription/models.py:57
msgid "payment method" msgid "payment method"
msgstr "méthode de paiement" msgstr "méthode de paiement"
@ -159,7 +159,7 @@ msgid "accounting type"
msgstr "type comptable" msgstr "type comptable"
#: accounting/models.py:202 accounting/models.py:296 accounting/models.py:322 #: accounting/models.py:202 accounting/models.py:296 accounting/models.py:322
#: accounting/models.py:345 counter/models.py:274 #: accounting/models.py:345 counter/models.py:272
msgid "label" msgid "label"
msgstr "intitulé" msgstr "intitulé"
@ -232,7 +232,7 @@ msgstr ""
"Vous devez fournir soit un type comptable simplifié ou un type comptable " "Vous devez fournir soit un type comptable simplifié ou un type comptable "
"standard" "standard"
#: accounting/models.py:291 counter/models.py:101 #: accounting/models.py:291 counter/models.py:99
msgid "code" msgid "code"
msgstr "code" msgstr "code"
@ -590,7 +590,7 @@ msgstr "Vous ne pouvez pas faire de boucles dans les clubs"
msgid "A club with that unix_name already exists" msgid "A club with that unix_name already exists"
msgstr "Un club avec ce nom UNIX existe déjà." msgstr "Un club avec ce nom UNIX existe déjà."
#: club/models.py:144 counter/models.py:379 counter/models.py:396 #: club/models.py:144 counter/models.py:378 counter/models.py:395
#: eboutic/models.py:14 eboutic/models.py:47 launderette/models.py:89 #: eboutic/models.py:14 eboutic/models.py:47 launderette/models.py:89
#: launderette/models.py:126 #: launderette/models.py:126
msgid "user" msgid "user"
@ -600,8 +600,8 @@ msgstr "nom d'utilisateur"
msgid "role" msgid "role"
msgstr "rôle" msgstr "rôle"
#: club/models.py:150 core/models.py:33 counter/models.py:73 #: club/models.py:150 core/models.py:33 counter/models.py:71
#: counter/models.py:98 #: counter/models.py:96
msgid "description" msgid "description"
msgstr "description" msgstr "description"
@ -1979,67 +1979,67 @@ msgstr "clients"
msgid "Not enough money" msgid "Not enough money"
msgstr "Solde insuffisant" msgstr "Solde insuffisant"
#: counter/models.py:77 counter/models.py:99 #: counter/models.py:75 counter/models.py:97
msgid "product type" msgid "product type"
msgstr "type du produit" msgstr "type du produit"
#: counter/models.py:102 #: counter/models.py:100
msgid "purchase price" msgid "purchase price"
msgstr "prix d'achat" msgstr "prix d'achat"
#: counter/models.py:103 #: counter/models.py:101
msgid "selling price" msgid "selling price"
msgstr "prix de vente" msgstr "prix de vente"
#: counter/models.py:104 #: counter/models.py:102
msgid "special selling price" msgid "special selling price"
msgstr "prix de vente spécial" msgstr "prix de vente spécial"
#: counter/models.py:105 #: counter/models.py:103
msgid "icon" msgid "icon"
msgstr "icône" msgstr "icône"
#: counter/models.py:107 #: counter/models.py:105
msgid "limit age" msgid "limit age"
msgstr "âge limite" msgstr "âge limite"
#: counter/models.py:108 #: counter/models.py:106
msgid "tray price" msgid "tray price"
msgstr "prix plateau" msgstr "prix plateau"
#: counter/models.py:109 #: counter/models.py:107
msgid "parent product" msgid "parent product"
msgstr "produit parent" msgstr "produit parent"
#: counter/models.py:111 #: counter/models.py:109
msgid "buying groups" msgid "buying groups"
msgstr "groupe d'achat" msgstr "groupe d'achat"
#: counter/models.py:112 #: counter/models.py:110
msgid "archived" msgid "archived"
msgstr "archivé" msgstr "archivé"
#: counter/models.py:115 counter/models.py:479 #: counter/models.py:113 counter/models.py:478
msgid "product" msgid "product"
msgstr "produit" msgstr "produit"
#: counter/models.py:134 #: counter/models.py:132
msgid "products" msgid "products"
msgstr "produits" msgstr "produits"
#: counter/models.py:135 #: counter/models.py:133
msgid "counter type" msgid "counter type"
msgstr "type de comptoir" msgstr "type de comptoir"
#: counter/models.py:137 #: counter/models.py:135
msgid "Bar" msgid "Bar"
msgstr "Bar" msgstr "Bar"
#: counter/models.py:137 #: counter/models.py:135
msgid "Office" msgid "Office"
msgstr "Bureau" msgstr "Bureau"
#: counter/models.py:137 counter/templates/counter/counter_list.jinja:11 #: counter/models.py:135 counter/templates/counter/counter_list.jinja:11
#: eboutic/templates/eboutic/eboutic_main.jinja:4 #: eboutic/templates/eboutic/eboutic_main.jinja:4
#: eboutic/templates/eboutic/eboutic_main.jinja:24 #: eboutic/templates/eboutic/eboutic_main.jinja:24
#: eboutic/templates/eboutic/eboutic_makecommand.jinja:8 #: eboutic/templates/eboutic/eboutic_makecommand.jinja:8
@ -2048,58 +2048,62 @@ msgstr "Bureau"
msgid "Eboutic" msgid "Eboutic"
msgstr "Eboutic" msgstr "Eboutic"
#: counter/models.py:138 #: counter/models.py:136
msgid "sellers" msgid "sellers"
msgstr "vendeurs" msgstr "vendeurs"
#: counter/models.py:141 launderette/models.py:125 #: counter/models.py:139 launderette/models.py:125
msgid "token" msgid "token"
msgstr "jeton" msgstr "jeton"
#: counter/models.py:144 counter/models.py:380 counter/models.py:397 #: counter/models.py:142 counter/models.py:379 counter/models.py:396
#: launderette/models.py:16 #: launderette/models.py:16
msgid "counter" msgid "counter"
msgstr "comptoir" msgstr "comptoir"
#: counter/models.py:242 #: counter/models.py:240
msgid "bank" msgid "bank"
msgstr "banque" msgstr "banque"
#: counter/models.py:244 counter/models.py:285 #: counter/models.py:242 counter/models.py:283
msgid "is validated" msgid "is validated"
msgstr "est validé" msgstr "est validé"
#: counter/models.py:247 #: counter/models.py:245
msgid "refilling" msgid "refilling"
msgstr "rechargement" msgstr "rechargement"
#: counter/models.py:278 eboutic/models.py:103 #: counter/models.py:276 eboutic/models.py:103
msgid "unit price" msgid "unit price"
msgstr "prix unitaire" msgstr "prix unitaire"
#: counter/models.py:279 counter/models.py:469 eboutic/models.py:104 #: counter/models.py:277 counter/models.py:468 eboutic/models.py:104
msgid "quantity" msgid "quantity"
msgstr "quantité" msgstr "quantité"
#: counter/models.py:284 #: counter/models.py:282
msgid "Sith account" msgid "Sith account"
msgstr "Compte utilisateur" msgstr "Compte utilisateur"
#: counter/models.py:284 sith/settings.py:283 sith/settings.py:288 #: counter/models.py:282 sith/settings.py:283 sith/settings.py:288
#: sith/settings.py:310 #: sith/settings.py:310
msgid "Credit card" msgid "Credit card"
msgstr "Carte bancaire" msgstr "Carte bancaire"
#: counter/models.py:288 #: counter/models.py:286
msgid "selling" msgid "selling"
msgstr "vente" msgstr "vente"
#: counter/models.py:306 #: counter/models.py:304
msgid "Unknown event"
msgstr "Évènement inconnu"
#: counter/models.py:305
#, python-format #, python-format
msgid "Eticket bought for the event %(event)s" msgid "Eticket bought for the event %(event)s"
msgstr "Achat d'eticket pour l'évènement %(event)s" msgstr "Achat d'eticket pour l'évènement %(event)s"
#: counter/models.py:308 counter/models.py:320 #: counter/models.py:307 counter/models.py:319
#, python-format #, python-format
msgid "" msgid ""
"You bought an eticket for the event %(event)s.\n" "You bought an eticket for the event %(event)s.\n"
@ -2107,53 +2111,52 @@ msgid ""
msgstr "" msgstr ""
"Vous avez acheté un eticket pour l'évènement %(event)s.\n" "Vous avez acheté un eticket pour l'évènement %(event)s.\n"
"Vous pouvez le télécharger en visitant cette page %(url)s" "Vous pouvez le télécharger en visitant cette page %(url)s"
""
#: counter/models.py:383 #: counter/models.py:382
msgid "last activity date" msgid "last activity date"
msgstr "dernière activité" msgstr "dernière activité"
#: counter/models.py:386 #: counter/models.py:385
msgid "permanency" msgid "permanency"
msgstr "permanence" msgstr "permanence"
#: counter/models.py:400 #: counter/models.py:399
msgid "emptied" msgid "emptied"
msgstr "coffre vidée" msgstr "coffre vidée"
#: counter/models.py:403 #: counter/models.py:402
msgid "cash register summary" msgid "cash register summary"
msgstr "relevé de caisse" msgstr "relevé de caisse"
#: counter/models.py:467 #: counter/models.py:466
msgid "cash summary" msgid "cash summary"
msgstr "relevé" msgstr "relevé"
#: counter/models.py:468 #: counter/models.py:467
msgid "value" msgid "value"
msgstr "valeur" msgstr "valeur"
#: counter/models.py:470 #: counter/models.py:469
msgid "check" msgid "check"
msgstr "chèque" msgstr "chèque"
#: counter/models.py:473 #: counter/models.py:472
msgid "cash register summary item" msgid "cash register summary item"
msgstr "élément de relevé de caisse" msgstr "élément de relevé de caisse"
#: counter/models.py:480 #: counter/models.py:479
msgid "banner" msgid "banner"
msgstr "bannière" msgstr "bannière"
#: counter/models.py:481 #: counter/models.py:480
msgid "event date" msgid "event date"
msgstr "date de l'événement" msgstr "date de l'événement"
#: counter/models.py:482 #: counter/models.py:481
msgid "event title" msgid "event title"
msgstr "titre de l'événement" msgstr "titre de l'événement"
#: counter/models.py:483 #: counter/models.py:482
msgid "secret" msgid "secret"
msgstr "secret" msgstr "secret"