diff --git a/ihatemoney/forms.py b/ihatemoney/forms.py index 79500715..0e20caff 100644 --- a/ihatemoney/forms.py +++ b/ihatemoney/forms.py @@ -74,9 +74,9 @@ class ProjectForm(EditProjectForm): def validate_id(form, field): form.id.data = slugify(field.data) if (form.id.data == "dashboard") or Project.query.get(form.id.data): - message = _("A project with this identifier (\"%s\") already exists. " + message = _("A project with this identifier (\"%(project)s\") already exists. " "Please create a new identifier that you will be able " - "to remember" % form.id.data) + "to remember", project=form.id.data) raise ValidationError(Markup(message)) diff --git a/ihatemoney/messages.pot b/ihatemoney/messages.pot index bc8a8f39..643cf3a3 100644 --- a/ihatemoney/messages.pot +++ b/ihatemoney/messages.pot @@ -13,11 +13,10 @@ msgstr "" msgid "Create the project" msgstr "" +#, python-format msgid "" -"The project identifier is used to log in and for the URL of the project. " -"We tried to generate an identifier for you but a project with this " -"identifier already exists. Please create a new identifier that you will " -"be able to remember" +"A project with this identifier (\"%(project)s\") already exists. Please " +"create a new identifier that you will be able to remember" msgstr "" msgid "Get in" diff --git a/ihatemoney/translations/fr/LC_MESSAGES/messages.mo b/ihatemoney/translations/fr/LC_MESSAGES/messages.mo index 3fa8d8f4..2fe8343b 100644 Binary files a/ihatemoney/translations/fr/LC_MESSAGES/messages.mo and b/ihatemoney/translations/fr/LC_MESSAGES/messages.mo differ diff --git a/ihatemoney/translations/fr/LC_MESSAGES/messages.po b/ihatemoney/translations/fr/LC_MESSAGES/messages.po index ccab28b1..a3236803 100644 --- a/ihatemoney/translations/fr/LC_MESSAGES/messages.po +++ b/ihatemoney/translations/fr/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2018-07-16 23:26+0200\n" +"POT-Creation-Date: 2018-08-05 20:54+0200\n" "PO-Revision-Date: 2018-05-15 22:00+0200\n" "Last-Translator: Adrien CLERC <>\n" "Language: fr\n" @@ -16,7 +16,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.5.3\n" +"Generated-By: Babel 2.6.0\n" msgid "Project name" msgstr "Nom de projet" @@ -33,16 +33,12 @@ msgstr "Identifiant du projet" msgid "Create the project" msgstr "Créer le projet" +#, python-format msgid "" -"The project identifier is used to log in and for the URL of the project. " -"We tried to generate an identifier for you but a project with this " -"identifier already exists. Please create a new identifier that you will " -"be able to remember" -msgstr "" -"L’identifiant du projet est utilisé pour se connecter et pour l’URL du " -"projet. Nous avons essayé de générer un identifiant mais celui ci existe " -"déjà. Merci de créer un nouvel identifiant que vous serez capable de " -"retenir" +"A project with this identifier (\"%(project)s\") already exists. Please " +"create a new identifier that you will be able to remember" +msgstr "Un projet avec l'identifiant « %(project)s » existe déjà. Essayez " +"avec un autre identifiant que vous pourrez retenir facilement." msgid "Get in" msgstr "Entrer" @@ -456,36 +452,3 @@ msgstr "A dépensé" msgid "Balance" msgstr "Solde" - -#~ msgid "" -#~ "The project identifier is used to " -#~ "log in and for the URL of " -#~ "the project. We tried to generate " -#~ "an identifier for you but a " -#~ "project with this identifier already " -#~ "exists. Please create a new identifier" -#~ " that you will be able to " -#~ "remember." -#~ msgstr "" -#~ "L’identifiant du projet est utilisé pour" -#~ " se connecter.Nous avons essayé de " -#~ "générer un identifiant mais celui ci " -#~ "existe déjà. Merci de créer un " -#~ "nouvel identifiant que vous serez " -#~ "capable de retenir" - -#~ msgid "Start date" -#~ msgstr "Date de départ" - -#~ msgid "End date" -#~ msgstr "Date de fin" - -#~ msgid "\"No token provided\"" -#~ msgstr "Aucun token n’a été fourni." - -#~ msgid "User '%(name)s' has been deactivated" -#~ msgstr "Le membre '%(name)s' a été désactivé" - -#~ msgid "Invite" -#~ msgstr "Invitez" -