Commit f7e3251a authored by Skia's avatar Skia
Browse files

Right fix and translation

parent a4c5d481
Pipeline #167 failed with stage
in 1 minute and 47 seconds
...@@ -461,6 +461,8 @@ class SithFile(models.Model): ...@@ -461,6 +461,8 @@ class SithFile(models.Model):
verbose_name = _("file") verbose_name = _("file")
def is_owned_by(self, user): def is_owned_by(self, user):
if hasattr(self, 'profile_of') and user.is_in_group(settings.SITH_MAIN_BOARD_GROUP):
return True
return user.id == self.owner.id return user.id == self.owner.id
def can_be_viewed_by(self, user): def can_be_viewed_by(self, user):
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-08-31 18:24+0200\n" "POT-Creation-Date: 2016-09-01 11:17+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"
...@@ -1251,7 +1251,8 @@ msgid "" ...@@ -1251,7 +1251,8 @@ msgid ""
"You're receiving this email because you subscribed to the UTBM student " "You're receiving this email because you subscribed to the UTBM student "
"association." "association."
msgstr "" msgstr ""
"Vous avez reçu cet email parce que vous avez cotisé à l'Association des Étudiants de l'UTBM." "Vous avez reçu cet email parce que vous avez cotisé à l'Association des "
"Étudiants de l'UTBM."
#: core/templates/core/new_user_email.jinja:4 #: core/templates/core/new_user_email.jinja:4
#: core/templates/core/password_reset_email.jinja:4 #: core/templates/core/password_reset_email.jinja:4
...@@ -1269,10 +1270,11 @@ msgid "" ...@@ -1269,10 +1270,11 @@ msgid ""
"You also got a new account that will be useful to purchase products in the " "You also got a new account that will be useful to purchase products in the "
"living areas and on the Eboutic." "living areas and on the Eboutic."
msgstr "" msgstr ""
"Un compte vous a également été créé, qui vous servira notamment à consommer dans les lieux de vie " "Un compte vous a également été créé, qui vous servira notamment à consommer "
"ou sur l'Eboutic." "dans les lieux de vie ou sur l'Eboutic."
#: core/templates/core/new_user_email.jinja:10 #: core/templates/core/new_user_email.jinja:10
#, python-format
msgid "Here is your account number: %(account)s" msgid "Here is your account number: %(account)s"
msgstr "Voici votre numéro de compte AE : %(account)s" msgstr "Voici votre numéro de compte AE : %(account)s"
...@@ -2330,11 +2332,15 @@ msgstr "Deux semestres, 28 €" ...@@ -2330,11 +2332,15 @@ msgstr "Deux semestres, 28 €"
msgid "Common core cursus" msgid "Common core cursus"
msgstr "Cursus tronc commun, 45 €" msgstr "Cursus tronc commun, 45 €"
#: sith/settings.py:344 sith/settings.py:349 sith/settings_sample.py:333 #: sith/settings.py:344 sith/settings_sample.py:333
#: sith/settings_sample.py:338 #: sith/settings_sample.py:338
msgid "Branch cursus" msgid "Branch cursus"
msgstr "Cursus branche, 45 €" msgstr "Cursus branche, 45 €"
#: sith/settings.py:349
msgid "Alternating cursus"
msgstr "Cursus alternant, 30 €"
#: sith/settings.py:354 sith/settings_sample.py:343 #: sith/settings.py:354 sith/settings_sample.py:343
msgid "Honorary member" msgid "Honorary member"
msgstr "Membre honoraire, 0 €" msgstr "Membre honoraire, 0 €"
...@@ -2435,4 +2441,3 @@ msgstr "Un utilisateur avec cette adresse email existe déjà" ...@@ -2435,4 +2441,3 @@ msgstr "Un utilisateur avec cette adresse email existe déjà"
msgid "You must either choose an existing user or create a new one properly" msgid "You must either choose an existing user or create a new one properly"
msgstr "" msgstr ""
"Vous devez soit choisir un utilisateur existant, ou en créer un proprement." "Vous devez soit choisir un utilisateur existant, ou en créer un proprement."
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