Commit 801f6ec7 authored by Skia's avatar Skia

Translations and small fix in the forum

parent aa07749a
Pipeline #768 passed with stage
in 3 minutes and 12 seconds
......@@ -10,7 +10,7 @@ from django import forms
from django.db import models
from django.core.exceptions import PermissionDenied
from math import inf
import math
from core.views import CanViewMixin, CanEditMixin, CanEditPropMixin, CanCreateMixin, TabedViewMixin
from forum.models import Forum, ForumMessage, ForumTopic, ForumMessageMeta
......@@ -126,7 +126,7 @@ class ForumTopicDetailView(CanViewMixin, DetailView):
try:
kwargs['first_unread_message_id'] = msg.id
except:
kwargs['first_unread_message_id'] = inf
kwargs['first_unread_message_id'] = math.inf
return kwargs
class ForumMessageEditView(CanEditMixin, UpdateView):
......
......@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-11 12:17+0100\n"
"POT-Creation-Date: 2017-02-24 03:23+0100\n"
"PO-Revision-Date: 2016-07-18\n"
"Last-Translator: Skia <skia@libskia.so>\n"
"Language-Team: AE info <ae.info@utbm.fr>\n"
......@@ -18,8 +18,8 @@ msgstr ""
#: accounting/models.py:36 accounting/models.py:58 accounting/models.py:85
#: accounting/models.py:144 club/models.py:18 counter/models.py:70
#: counter/models.py:95 counter/models.py:130 launderette/models.py:13
#: launderette/models.py:58 launderette/models.py:83
#: counter/models.py:95 counter/models.py:130 forum/models.py:25
#: launderette/models.py:13 launderette/models.py:58 launderette/models.py:83
msgid "name"
msgstr "nom"
......@@ -39,7 +39,7 @@ msgstr "code postal"
msgid "country"
msgstr "pays"
#: accounting/models.py:41 core/models.py:155
#: accounting/models.py:41 core/models.py:157
msgid "phone"
msgstr "téléphone"
......@@ -64,7 +64,7 @@ msgid "account number"
msgstr "numero de compte"
#: accounting/models.py:61 accounting/models.py:86 club/models.py:145
#: com/models.py:37 com/models.py:119 counter/models.py:104
#: com/models.py:37 com/models.py:122 counter/models.py:104
#: counter/models.py:131
msgid "club"
msgstr "club"
......@@ -125,9 +125,10 @@ msgstr "numéro"
msgid "journal"
msgstr "classeur"
#: accounting/models.py:194 core/models.py:528 core/models.py:873
#: core/models.py:913 counter/models.py:242 counter/models.py:290
#: accounting/models.py:194 core/models.py:546 core/models.py:891
#: core/models.py:931 counter/models.py:242 counter/models.py:290
#: counter/models.py:416 eboutic/models.py:15 eboutic/models.py:48
#: forum/models.py:155 forum/models.py:205
msgid "date"
msgstr "date"
......@@ -197,7 +198,7 @@ msgstr "Compte"
msgid "Company"
msgstr "Entreprise"
#: accounting/models.py:207 sith/settings.py:313
#: accounting/models.py:207 sith/settings.py:322
msgid "Other"
msgstr "Autre"
......@@ -254,14 +255,14 @@ msgstr "type de mouvement"
#: accounting/models.py:300
#: accounting/templates/accounting/journal_statement_nature.jinja:8
#: accounting/templates/accounting/journal_statement_person.jinja:11
#: accounting/views.py:417
#: accounting/views.py:416
msgid "Credit"
msgstr "Crédit"
#: accounting/models.py:300
#: accounting/templates/accounting/journal_statement_nature.jinja:27
#: accounting/templates/accounting/journal_statement_person.jinja:39
#: accounting/views.py:417
#: accounting/views.py:416
msgid "Debit"
msgstr "Débit"
......@@ -328,10 +329,11 @@ msgstr "Compte en banque : "
#: counter/templates/counter/last_ops.jinja:59
#: election/templates/election/election_detail.jinja:280
#: election/templates/election/election_detail.jinja:329
#: forum/templates/forum/topic.jinja:71
#: launderette/templates/launderette/launderette_admin.jinja:16
#: launderette/views.py:154 sas/templates/sas/album.jinja:26
#: sas/templates/sas/moderation.jinja:18 sas/templates/sas/picture.jinja:66
#: sas/templates/sas/picture.jinja.py:116
#: sas/templates/sas/picture.jinja:116
msgid "Delete"
msgstr "Supprimer"
......@@ -367,6 +369,7 @@ msgstr "Nouveau compte club"
#: election/templates/election/election_detail.jinja:279
#: election/templates/election/election_detail.jinja:326
#: election/templates/election/election_detail.jinja:374
#: forum/templates/forum/macros.jinja:52 forum/templates/forum/topic.jinja:65
#: launderette/templates/launderette/launderette_list.jinja:16
#: sas/templates/sas/album.jinja:18 sas/templates/sas/picture.jinja:92
msgid "Edit"
......@@ -472,8 +475,8 @@ msgstr "Non"
#: accounting/templates/accounting/club_account_details.jinja:54
#: com/templates/com/news_admin_list.jinja:38
#: com/templates/com/news_admin_list.jinja:70 core/templates/core/file.jinja:36
#: core/templates/core/page.jinja:28
#: com/templates/com/news_admin_list.jinja:70
#: core/templates/core/file.jinja:36 core/templates/core/page.jinja:28
msgid "View"
msgstr "Voir"
......@@ -534,7 +537,7 @@ msgstr "No"
#: core/templates/core/user_account_detail.jinja:78
#: counter/templates/counter/cash_summary_list.jinja:34
#: counter/templates/counter/last_ops.jinja:14
#: counter/templates/counter/last_ops.jinja:39
#: counter/templates/counter/last_ops.jinja:39 sas/views.py:257
msgid "Date"
msgstr "Date"
......@@ -675,7 +678,7 @@ msgstr "Sauver"
#: accounting/templates/accounting/refound_account.jinja:4
#: accounting/templates/accounting/refound_account.jinja:8
#: accounting/views.py:680
#: accounting/views.py:679
msgid "Refound account"
msgstr "Remboursement de compte"
......@@ -716,55 +719,55 @@ msgstr "Bilan comptable"
msgid "Operation"
msgstr "Opération"
#: accounting/views.py:410
#: accounting/views.py:409
msgid "Financial proof: "
msgstr "Justificatif de libellé : "
#: accounting/views.py:411
#: accounting/views.py:410
#, python-format
msgid "Club: %(club_name)s"
msgstr "Club : %(club_name)s"
#: accounting/views.py:412
#: accounting/views.py:411
#, python-format
msgid "Label: %(op_label)s"
msgstr "Libellé : %(op_label)s"
#: accounting/views.py:413
#: accounting/views.py:412
#, python-format
msgid "Date: %(date)s"
msgstr "Date : %(date)s"
#: accounting/views.py:419
#: accounting/views.py:418
#, python-format
msgid "Amount: %(amount).2f €"
msgstr "Montant : %(amount).2f €"
#: accounting/views.py:431
#: accounting/views.py:430
msgid "Debtor"
msgstr "Débiteur"
#: accounting/views.py:431
#: accounting/views.py:430
msgid "Creditor"
msgstr "Créditeur"
#: accounting/views.py:433
#: accounting/views.py:432
msgid "Comment:"
msgstr "Commentaire :"
#: accounting/views.py:452
#: accounting/views.py:451
msgid "Signature:"
msgstr "Signature :"
#: accounting/views.py:506
#: accounting/views.py:505
msgid "General statement"
msgstr "Bilan général"
#: accounting/views.py:509
#: accounting/views.py:508
msgid "No label operations"
msgstr "Opérations sans étiquette"
#: accounting/views.py:642
#: accounting/views.py:641
msgid "Refound this account"
msgstr "Rembourser ce compte"
......@@ -784,11 +787,11 @@ msgstr ""
msgid "A club with that unix name already exists."
msgstr "Un club avec ce nom UNIX existe déjà."
#: club/models.py:32 core/models.py:157
#: club/models.py:32 core/models.py:159
msgid "address"
msgstr "Adresse"
#: club/models.py:38 core/models.py:118
#: club/models.py:38 core/models.py:120
msgid "home"
msgstr "home"
......@@ -806,14 +809,14 @@ msgstr "Un club avec ce nom UNIX existe déjà."
msgid "user"
msgstr "nom d'utilisateur"
#: club/models.py:148 core/models.py:137 election/models.py:129
#: club/models.py:148 core/models.py:139 election/models.py:129
#: election/models.py:145
msgid "role"
msgstr "rôle"
#: club/models.py:150 core/models.py:33 counter/models.py:71
#: club/models.py:150 core/models.py:35 counter/models.py:71
#: counter/models.py:96 election/models.py:15 election/models.py:82
#: election/models.py:131
#: election/models.py:131 forum/models.py:26 forum/models.py:123
msgid "description"
msgstr "description"
......@@ -829,7 +832,8 @@ msgstr "L'utilisateur est déjà membre de ce club"
msgid "past member"
msgstr "Anciens membres"
#: club/templates/club/club_list.jinja:4 club/templates/club/club_list.jinja:24
#: club/templates/club/club_list.jinja:4
#: club/templates/club/club_list.jinja:24
msgid "Club list"
msgstr "Liste des clubs"
......@@ -891,13 +895,14 @@ msgstr "Du"
msgid "To"
msgstr "Au"
#: club/templates/club/club_sellings.jinja:5 club/views.py:60 club/views.py:221
#: counter/templates/counter/counter_main.jinja:19
#: club/templates/club/club_sellings.jinja:5 club/views.py:60
#: club/views.py:221 counter/templates/counter/counter_main.jinja:19
#: counter/templates/counter/last_ops.jinja:35
msgid "Sellings"
msgstr "Ventes"
#: club/templates/club/club_sellings.jinja:9 club/templates/club/stats.jinja:19
#: club/templates/club/club_sellings.jinja:9
#: club/templates/club/stats.jinja:19
#: counter/templates/counter/cash_summary_list.jinja:15
msgid "Show"
msgstr "Montrer"
......@@ -1020,7 +1025,7 @@ msgstr "Propriétés"
msgid "Select user"
msgstr "Choisir un utilisateur"
#: club/views.py:154 sas/views.py:82 sas/views.py:133 sas/views.py:202
#: club/views.py:154 sas/views.py:82 sas/views.py:133 sas/views.py:204
msgid "You do not have the permission to do that"
msgstr "Vous n'avez pas la permission de faire cela"
......@@ -1028,7 +1033,8 @@ msgstr "Vous n'avez pas la permission de faire cela"
msgid "Begin date"
msgstr "Date de début"
#: club/views.py:170 com/views.py:98 counter/views.py:933 election/views.py:131
#: club/views.py:170 com/views.py:98 counter/views.py:933
#: election/views.py:131
msgid "End date"
msgstr "Date de fin"
......@@ -1069,8 +1075,8 @@ msgstr "Hebdomadaire"
msgid "Call"
msgstr "Appel"
#: com/models.py:33 com/models.py:75 com/models.py:116 election/models.py:14
#: election/models.py:81 election/models.py:118
#: com/models.py:33 com/models.py:75 com/models.py:119 election/models.py:14
#: election/models.py:81 election/models.py:118 forum/models.py:153
msgid "title"
msgstr "titre"
......@@ -1078,20 +1084,20 @@ msgstr "titre"
msgid "summary"
msgstr "résumé"
#: com/models.py:35 com/models.py:117
#: com/models.py:35 com/models.py:120
msgid "content"
msgstr "contenu de la nouvelle"
#: com/models.py:36 core/models.py:912 launderette/models.py:60
#: com/models.py:36 core/models.py:930 launderette/models.py:60
#: launderette/models.py:85 launderette/models.py:121
msgid "type"
msgstr "type"
#: com/models.py:38 com/models.py:118
#: com/models.py:38 com/models.py:121
msgid "author"
msgstr "auteur"
#: com/models.py:39 core/models.py:529
#: com/models.py:39 core/models.py:547
msgid "is moderated"
msgstr "est modéré"
......@@ -1131,11 +1137,11 @@ msgstr "conclusion"
msgid "sent"
msgstr "envoyé"
#: com/models.py:115
#: com/models.py:118
msgid "weekmail"
msgstr "weekmail"
#: com/models.py:120
#: com/models.py:123
msgid "rank"
msgstr "rang"
......@@ -1144,8 +1150,9 @@ msgid "News admin"
msgstr "Administration des nouvelles"
#: com/templates/com/news_admin_list.jinja:9
#: com/templates/com/news_detail.jinja:5 com/templates/com/news_detail.jinja:11
#: com/templates/com/news_list.jinja:4 com/templates/com/news_list.jinja:28
#: com/templates/com/news_detail.jinja:5
#: com/templates/com/news_detail.jinja:11 com/templates/com/news_list.jinja:4
#: com/templates/com/news_list.jinja:28
msgid "News"
msgstr "Nouvelles"
......@@ -1306,29 +1313,30 @@ msgid ""
"Warning: you are sending the weekmail in another language than the default "
"one!"
msgstr ""
"Attention : vous allez envoyer le Weekmail dans un langage différent de celui par défaut !"
"Attention : vous allez envoyer le Weekmail dans un langage différent de "
"celui par défaut !"
#: com/templates/com/weekmail_renderer_html.jinja:4
#: com/templates/com/weekmail_renderer_html.jinja:12
#: com/templates/com/weekmail_renderer_text.jinja:4
msgid "Intro"
msgstr "Intro"
#: com/templates/com/weekmail_renderer_html.jinja:8
#: com/templates/com/weekmail_renderer_html.jinja:16
#: com/templates/com/weekmail_renderer_text.jinja:8
msgid "Table of content"
msgstr "Sommaire"
#: com/templates/com/weekmail_renderer_html.jinja:21
#: com/templates/com/weekmail_renderer_html.jinja:29
#: com/templates/com/weekmail_renderer_text.jinja:19
msgid "Joke"
msgstr "Blague"
#: com/templates/com/weekmail_renderer_html.jinja:26
#: com/templates/com/weekmail_renderer_html.jinja:34
#: com/templates/com/weekmail_renderer_text.jinja:24
msgid "Pro tip"
msgstr "Astuce"
#: com/templates/com/weekmail_renderer_html.jinja:31
#: com/templates/com/weekmail_renderer_html.jinja:39
#: com/templates/com/weekmail_renderer_text.jinja:29
msgid "Final word"
msgstr "Le mot de la fin"
......@@ -1373,30 +1381,30 @@ msgstr "Ce champ est obligatoire."
msgid "Weekmail of the "
msgstr "Weekmail du "
#: core/models.py:29
#: core/models.py:31
msgid "meta group status"
msgstr "status du meta-groupe"
#: core/models.py:31
#: core/models.py:33
msgid "Whether a group is a meta group or not"
msgstr "Si un groupe est un meta-groupe ou pas"
#: core/models.py:59
#: core/models.py:61
#, python-format
msgid "%(value)s is not a valid promo (between 0 and %(end)s)"
msgstr "%(value)s n'est pas une promo valide (doit être entre 0 et %(end)s)"
#: core/models.py:75
#: core/models.py:77
msgid "username"
msgstr "nom d'utilisateur"
#: core/models.py:78
#: core/models.py:80
msgid "Required. 254 characters or fewer. Letters, digits and ./+/-/_ only."
msgstr ""
"Requis. Pas plus de 254 caractères. Uniquement des lettres, numéros, et ./"
"+/-/_"
#: core/models.py:82
#: core/models.py:84
msgid ""
"Enter a valid username. This value may contain only letters, numbers and ./"
"+/-/_ characters."
......@@ -1404,43 +1412,43 @@ msgstr ""
"Entrez un nom d'utilisateur correct. Uniquement des lettres, numéros, et ./"
"+/-/_"
#: core/models.py:87
#: core/models.py:89
msgid "A user with that username already exists."
msgstr "Un utilisateur de ce nom existe déjà"
#: core/models.py:90
#: core/models.py:92
msgid "first name"
msgstr "Prénom"
#: core/models.py:91
#: core/models.py:93
msgid "last name"
msgstr "Nom"
#: core/models.py:92
#: core/models.py:94
msgid "email address"
msgstr "adresse email"
#: core/models.py:93
#: core/models.py:95
msgid "date of birth"
msgstr "date de naissance"
#: core/models.py:94
#: core/models.py:96
msgid "nick name"
msgstr "surnom"
#: core/models.py:96
#: core/models.py:98
msgid "staff status"
msgstr "status \"staff\""
#: core/models.py:98
#: core/models.py:100
msgid "Designates whether the user can log into this admin site."
msgstr "Est-ce que l'utilisateur peut se logger à la partie admin du site."
#: core/models.py:101
#: core/models.py:103
msgid "active"
msgstr "actif"
#: core/models.py:104
#: core/models.py:106
msgid ""
"Designates whether this user should be treated as active. Unselect this "
"instead of deleting accounts."
......@@ -1448,309 +1456,310 @@ msgstr ""
"Est-ce que l'utilisateur doit être traité comme actif. Déselectionnez au "
"lieu de supprimer les comptes."
#: core/models.py:108
#: core/models.py:110
msgid "date joined"
msgstr "date d'inscription"
#: core/models.py:109
#: core/models.py:111
msgid "last update"
msgstr "dernière mise à jour"
#: core/models.py:111
#: core/models.py:113
msgid "superuser"
msgstr "super-utilisateur"
#: core/models.py:114
#: core/models.py:116
msgid "Designates whether this user is a superuser. "
msgstr "Est-ce que l'utilisateur est super-utilisateur."
#: core/models.py:120
#: core/models.py:122
msgid "profile"
msgstr "profil"
#: core/models.py:122
#: core/models.py:124
msgid "avatar"
msgstr "avatar"
#: core/models.py:124
#: core/models.py:126
msgid "scrub"
msgstr "blouse"
#: core/models.py:126
#: core/models.py:128
msgid "sex"
msgstr "sexe"
#: core/models.py:126
#: core/models.py:128
msgid "Man"
msgstr "Homme"
#: core/models.py:126
#: core/models.py:128
msgid "Woman"
msgstr "Femme"
#: core/models.py:127
#: core/models.py:129
msgid "tshirt size"
msgstr "taille de tshirt"
#: core/models.py:128
#: core/models.py:130
msgid "-"
msgstr "-"
#: core/models.py:129
#: core/models.py:131
msgid "XS"
msgstr "XS"
#: core/models.py:130
#: core/models.py:132
msgid "S"
msgstr "S"
#: core/models.py:131
#: core/models.py:133
msgid "M"
msgstr "M"
#: core/models.py:132
#: core/models.py:134
msgid "L"
msgstr "L"
#: core/models.py:133
#: core/models.py:135
msgid "XL"
msgstr "XL"
#: core/models.py:134
#: core/models.py:136
msgid "XXL"
msgstr "XXL"
#: core/models.py:135
#: core/models.py:137
msgid "XXXL"
msgstr "XXXL"
#: core/models.py:138
#: core/models.py:140
msgid "Student"
msgstr "Étudiant"
#: core/models.py:139
#: core/models.py:141
msgid "Administrative agent"
msgstr "Personnel administratif"
#: core/models.py:140
#: core/models.py:142
msgid "Teacher"
msgstr "Enseignant"
#: core/models.py:141
#: core/models.py:143
msgid "Agent"
msgstr "Personnel"
#: core/models.py:142
#: core/models.py:144
msgid "Doctor"
msgstr "Doctorant"
#: core/models.py:143
#: core/models.py:145
msgid "Former student"
msgstr "Ancien étudiant"
#: core/models.py:144
#: core/models.py:146
msgid "Service"
msgstr "Service"
#: core/models.py:146
#: core/models.py:148
msgid "department"
msgstr "département"
#: core/models.py:148
#: core/models.py:150
msgid "dpt option"
msgstr "Filière"
#: core/models.py:149
#: core/models.py:151
msgid "semester"
msgstr "semestre"
#: core/models.py:150
#: core/models.py:152
msgid "quote"
msgstr "citation"
#: core/models.py:151
#: core/models.py:153
msgid "school"
msgstr "école"
#: core/models.py:152
#: core/models.py:154
msgid "promo"
msgstr "promo"
#: core/models.py:153
#: core/models.py:155
msgid "forum signature"
msgstr "signature du forum"
#: core/models.py:154
#: core/models.py:156
msgid "second email address"
msgstr "adresse email secondaire"
#: core/models.py:156
#: core/models.py:158
msgid "parent phone"
msgstr "téléphone des parents"
#: core/models.py:158
#: core/models.py:160
msgid "parent address"
msgstr "adresse des parents"
#: core/models.py:159
#: core/models.py:161
msgid "is subscriber viewable"
msgstr "profil visible par les cotisants"
#: core/models.py:292
#: core/models.py:300
msgid "A user with that username already exists"
msgstr "Un utilisateur de ce nom d'utilisateur existe déjà"
#: core/models.py:417 core/templates/core/macros.jinja:17
#: core/models.py:425 core/templates/core/macros.jinja:17
#: core/templates/core/user_detail.jinja:14
#: core/templates/core/user_detail.jinja:16
#: core/templates/core/user_edit.jinja:17
#: election/templates/election/election_detail.jinja:316
#: forum/templates/forum/topic.jinja:48 forum/templates/forum/topic.jinja:50
msgid "Profile"
msgstr "Profil"
#: core/models.py:486
#: core/models.py:504
msgid "Visitor"
msgstr "Visiteur"
#: core/models.py:491
#: core/models.py:509
msgid "do you want to receive the weekmail"
msgstr "voulez-vous recevoir le Weekmail"
#: core/models.py:496
#: core/models.py:514
msgid "define if we show a users stats"
msgstr "Definit si l'on montre les statistiques de l'utilisateur"
#: core/models.py:498
#: core/models.py:516
msgid "Show your account statistics to others"
msgstr "Montrez vos statistiques de compte aux autres"
#: core/models.py:517
#: core/models.py:535
msgid "file name"
msgstr "nom du fichier"
#: core/models.py:518 core/models.py:718
#: core/models.py:536 core/models.py:736
msgid "parent"
msgstr "parent"
#: core/models.py:519 core/models.py:535
#: core/models.py:537 core/models.py:553
msgid "file"
msgstr "fichier"
#: core/models.py:520
#: core/models.py:538
msgid "compressed file"
msgstr "version allégée"
#: core/models.py:521
#: core/models.py:539
msgid "thumbnail"
msgstr "miniature"
#: core/models.py:522 core/models.py:530
#: core/models.py:540 core/models.py:548
msgid "owner"
msgstr "propriétaire"
#: core/models.py:523 core/models.py:724
#: core/models.py:541 core/models.py:742
msgid "edit group"
msgstr "groupe d'édition"
#: core/models.py:524 core/models.py:725
#: core/models.py:542 core/models.py:743
msgid "view group"
msgstr "groupe de vue"
#: core/models.py:525
#: core/models.py:543
msgid "is folder"
msgstr "est un dossier"
#: core/models.py:526
#: core/models.py:544
msgid "mime type"
msgstr "type mime"
#: core/models.py:527
#: core/models.py:545
msgid "size"
msgstr "taille"
#: core/models.py:531
#: core/models.py:549
msgid "asked for removal"
msgstr "retrait demandé"
#: core/models.py:532
#: core/models.py:550
msgid "is in the SAS"
msgstr "est dans le SAS"
#: core/models.py:571
#: core/models.py:589
msgid "Character '/' not authorized in name"
msgstr "Le caractère '/' n'est pas autorisé dans les noms de fichier"
#: core/models.py:574 core/models.py:579
#: core/models.py:592 core/models.py:597
msgid "Loop in folder tree"
msgstr "Boucle dans l'arborescence des dossiers"
#: core/models.py:583