diff --git a/Makefile b/Makefile index c4616ebe..680a6351 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,18 @@ make-p: # Launch all P targets in parallel and exit as soon as one exits. set -m; (for p in $(P); do ($(MAKE) $$p || kill 0)& done; wait) +babel-extract: + $(PYBABEL) extract -F babel.cfg -k lazy_gettext -o messages.pot . + +babel-init: + $(PYBABEL) init -i messages.pot -d fittrackee/emails/translations -l $(LANG) + +babel-compile: + $(PYBABEL) compile -d fittrackee/emails/translations + +babel-update: + $(PYBABEL) update -i messages.pot -d fittrackee/emails/translations + bandit: $(BANDIT) -r fittrackee -c pyproject.toml diff --git a/Makefile.config b/Makefile.config index c1b0dd0b..59deb91b 100644 --- a/Makefile.config +++ b/Makefile.config @@ -24,6 +24,7 @@ GUNICORN = $(VENV)/bin/gunicorn BLACK = $(VENV)/bin/black MYPY = $(VENV)/bin/mypy BANDIT = $(VENV)/bin/bandit +PYBABEL = $(VENV)/bin/pybabel FTCLI = $(VENV)/bin/ftcli # Node env diff --git a/babel.cfg b/babel.cfg new file mode 100644 index 00000000..d8436ffc --- /dev/null +++ b/babel.cfg @@ -0,0 +1,5 @@ +[jinja2: fittrackee/emails/templates/**.html] +silent=False + +[jinja2: fittrackee/emails/templates/**.txt] +silent=False diff --git a/fittrackee/config.py b/fittrackee/config.py index 8f5bcda6..4898fb1c 100644 --- a/fittrackee/config.py +++ b/fittrackee/config.py @@ -46,6 +46,10 @@ class BaseConfig: os.environ.get('DEFAULT_STATICMAP', 'False') == 'True' ), } + TRANSLATIONS_FOLDER = os.path.join( + current_app.root_path, 'emails/translations' + ) + LANGUAGES = ['en', 'fr', 'de'] class DevelopmentConfig(BaseConfig): diff --git a/fittrackee/emails/email.py b/fittrackee/emails/email.py index 5b6a5f53..856d2444 100644 --- a/fittrackee/emails/email.py +++ b/fittrackee/emails/email.py @@ -3,8 +3,9 @@ import smtplib import ssl from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText -from typing import Dict, Optional, Type, Union +from typing import Dict, List, Optional, Type, Union +from babel.support import Translations from flask import Flask from jinja2 import Environment, FileSystemLoader, select_autoescape from urllib3.util import parse_url @@ -38,16 +39,43 @@ class EmailMessage: class EmailTemplate: - def __init__(self, template_directory: str) -> None: + def __init__( + self, + template_directory: str, + translations_directory: str, + languages: List[str], + ) -> None: + self._translations = self._get_translations( + translations_directory, languages + ) self._env = Environment( autoescape=select_autoescape(['html', 'htm', 'xml']), loader=FileSystemLoader(template_directory), + extensions=['jinja2.ext.i18n'], + ) + + @staticmethod + def _get_translations( + translations_directory: str, languages: List[str] + ) -> Dict: + translations = {} + for language in languages: + translations[language] = Translations.load( + dirname=translations_directory, locales=[language] + ) + return translations + + def _load_translation(self, lang: str) -> None: + self._env.install_gettext_translations( # type: ignore + self._translations[lang], + newstyle=True, ) def get_content( self, template_name: str, lang: str, part: str, data: Dict ) -> str: - template = self._env.get_template(f'{template_name}/{lang}/{part}') + self._load_translation(lang) + template = self._env.get_template(f'{template_name}/{part}') return template.render(data) def get_all_contents(self, template: str, lang: str, data: Dict) -> Dict: @@ -92,7 +120,11 @@ class EmailService: self.username = parsed_url['username'] self.password = parsed_url['password'] self.sender_email = app.config['SENDER_EMAIL'] - self.email_template = EmailTemplate(app.config['TEMPLATES_FOLDER']) + self.email_template = EmailTemplate( + app.config['TEMPLATES_FOLDER'], + app.config['TRANSLATIONS_FOLDER'], + app.config['LANGUAGES'], + ) @staticmethod def parse_email_url(email_url: str) -> Dict: diff --git a/fittrackee/emails/templates/account_confirmation/en/body.html b/fittrackee/emails/templates/account_confirmation/body.html similarity index 50% rename from fittrackee/emails/templates/account_confirmation/en/body.html rename to fittrackee/emails/templates/account_confirmation/body.html index 81a37085..ccdcc899 100644 --- a/fittrackee/emails/templates/account_confirmation/en/body.html +++ b/fittrackee/emails/templates/account_confirmation/body.html @@ -1,31 +1,25 @@ {% extends "layout.html" %} -{% block title %}Confirm your account{% endblock %} -{% block preheader %}Use this link to confirm your account.{% endblock %} -{% block content %}

Hi {{username}},

-

You have created an account on FitTrackee. Use the button below to confirm your address email.

+{% block title %}{{ _('Confirm your account') }}{% endblock %} +{% block preheader %}{{ _('Use this link to confirm your account.') }}{% endblock %} +{% block content %}

{{ _('You have created an account on FitTrackee.') }} {{ _('Use the button below to confirm your address email.') }}

- -

- {% if operating_system and browser_name %}For security, this request was received from a {{operating_system}} device using {{browser_name}}. - {% endif %}If this account creation wasn't initiated by you, please ignore this email. -

-

Thanks, -
The FitTrackee Team

- + {% endblock %} +{% block not_initiated %}{{ _("If this account creation wasn't initiated by you, please ignore this email.") }}{% endblock %} +{% block url_to_paste %} diff --git a/fittrackee/emails/templates/account_confirmation/body.txt b/fittrackee/emails/templates/account_confirmation/body.txt new file mode 100644 index 00000000..8593a074 --- /dev/null +++ b/fittrackee/emails/templates/account_confirmation/body.txt @@ -0,0 +1,7 @@ +{% extends "layout.txt" %}{% block content %}{{ _('You have created an account on FitTrackee.') }} +{{ _('Use the link below to confirm your address email.') }} + +{{ _('Verify your email') }}: {{ account_confirmation_url }} + +{% if operating_system and browser_name %}{{ _('For security, this request was received from a %(operating_system)s device using %(browser_name)s.', operating_system=operating_system, browser_name=browser_name) }} +{% endif %}{{ _("If this account creation wasn't initiated by you, please ignore this email.") }}{% endblock %} diff --git a/fittrackee/emails/templates/account_confirmation/de/body.html b/fittrackee/emails/templates/account_confirmation/de/body.html deleted file mode 100644 index 2a626f63..00000000 --- a/fittrackee/emails/templates/account_confirmation/de/body.html +++ /dev/null @@ -1,32 +0,0 @@ -{% extends "layout.html" %} -{% block title %}Bestätige Dein Konto{% endblock %} -{% block preheader %}Verwendet diesen Link um Dein Konto zu bestätigen.{% endblock %} -{% block content %}

Hallo {{username}},

-

Du hast ein Konto bei FitTrackee angelegt. Verwende den unteren Button um Deine E-Mail Adresse zu bestätigen.

- - - - - -

- {% if operating_system and browser_name %}Zur Sicherheit: Diese Anfrage wurde von einem {{operating_system}} Gerät mit {{browser_name}} ausgelöst. - {% endif %}Falls die Kontoerstellung nicht von Dir initiiert wurde, ignoriere diese E-Mail bitte. -

-

Danke -
Dein FitTrackee Team

- - - - - {% endblock %} diff --git a/fittrackee/emails/templates/account_confirmation/de/body.txt b/fittrackee/emails/templates/account_confirmation/de/body.txt deleted file mode 100644 index 11b5009e..00000000 --- a/fittrackee/emails/templates/account_confirmation/de/body.txt +++ /dev/null @@ -1,12 +0,0 @@ -Hallo {{username}}, - -Du hast ein Konto bei FitTrackee angelegt. Verwende den unteren Link um Deine E-Mail Adresse zu bestätigen. - -Bestätige Deine E-Mail: {{ account_confirmation_url }} - -{% if operating_system and browser_name %}Zur Sicherheit: Diese Anfrage wurde von einem {{operating_system}} Gerät mit {{browser_name}} ausgelöst.. -{% endif %}Falls die Kontoerstellung nicht von Dir initiiert wurde, ignoriere diese E-Mail bitte. - -Danke -Dein FitTrackee Team -{{fittrackee_url}} diff --git a/fittrackee/emails/templates/account_confirmation/de/subject.txt b/fittrackee/emails/templates/account_confirmation/de/subject.txt deleted file mode 100644 index a169f78e..00000000 --- a/fittrackee/emails/templates/account_confirmation/de/subject.txt +++ /dev/null @@ -1 +0,0 @@ -FitTrackee - Bestätige Dein Konto \ No newline at end of file diff --git a/fittrackee/emails/templates/account_confirmation/en/body.txt b/fittrackee/emails/templates/account_confirmation/en/body.txt deleted file mode 100644 index 282b12cd..00000000 --- a/fittrackee/emails/templates/account_confirmation/en/body.txt +++ /dev/null @@ -1,12 +0,0 @@ -Hi {{username}}, - -You have created an account on FitTrackee. Use the link below to confirm your address email. - -Verify your email: {{ account_confirmation_url }} - -{% if operating_system and browser_name %}For security, this request was received from a {{operating_system}} device using {{browser_name}}. -{% endif %}If this account creation wasn't initiated by you, please ignore this email. - -Thanks, -The FitTrackee Team -{{fittrackee_url}} diff --git a/fittrackee/emails/templates/account_confirmation/en/subject.txt b/fittrackee/emails/templates/account_confirmation/en/subject.txt deleted file mode 100644 index 9d674bf7..00000000 --- a/fittrackee/emails/templates/account_confirmation/en/subject.txt +++ /dev/null @@ -1 +0,0 @@ -FitTrackee - Confirm your account \ No newline at end of file diff --git a/fittrackee/emails/templates/account_confirmation/fr/body.html b/fittrackee/emails/templates/account_confirmation/fr/body.html deleted file mode 100644 index f754a59c..00000000 --- a/fittrackee/emails/templates/account_confirmation/fr/body.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends "layout.html" %} -{% block title %}Confirmer votre inscription{% endblock %} -{% block preheader %}Utiliser ce lien pour confirmer votre inscription.{% endblock %} -{% block content %}

Bonjour {{username}},

-

Vous avez créé un compte sur FitTrackee. - Cliquez sur le lien ci-dessous pour confirmer votre adresse email. -

- - - - - -

- {% if operating_system and browser_name %}Pour vérification, cette demande a été reçue à partir d'un appareil sous {{operating_system}}, utilisant le navigateur {{browser_name}}. - {% endif %}Si vous n'êtes pas à l'origine de la création de ce compte, vous pouvez ignorer cet e-mail. -

-

Merci, -
L'équipe FitTrackee

- - - - - {% endblock %} \ No newline at end of file diff --git a/fittrackee/emails/templates/account_confirmation/fr/body.txt b/fittrackee/emails/templates/account_confirmation/fr/body.txt deleted file mode 100644 index d02375b0..00000000 --- a/fittrackee/emails/templates/account_confirmation/fr/body.txt +++ /dev/null @@ -1,13 +0,0 @@ -Bonjour {{username}}, - -Vous avez créé un compte sur FitTrackee. -Cliquez sur le lien ci-dessous pour confirmer votre adresse email. - -Vérifier l'adresse email : {{ account_confirmation_url }} - -{% if operating_system and browser_name %}Pour vérification, cette demande a été reçue à partir d'un appareil sous {{operating_system}}, utilisant le navigateur {{browser_name}}. -{% endif %}Si vous n'êtes pas à l'origine de la création de ce compte, vous pouvez ignorer cet e-mail. - -Merci, -L'équipe FitTrackee -{{fittrackee_url}} diff --git a/fittrackee/emails/templates/account_confirmation/fr/subject.txt b/fittrackee/emails/templates/account_confirmation/fr/subject.txt deleted file mode 100644 index 88b924a2..00000000 --- a/fittrackee/emails/templates/account_confirmation/fr/subject.txt +++ /dev/null @@ -1 +0,0 @@ -FitTrackee - Confirmer votre inscription \ No newline at end of file diff --git a/fittrackee/emails/templates/account_confirmation/subject.txt b/fittrackee/emails/templates/account_confirmation/subject.txt new file mode 100644 index 00000000..7384fa8f --- /dev/null +++ b/fittrackee/emails/templates/account_confirmation/subject.txt @@ -0,0 +1 @@ +FitTrackee - {{ _('Confirm your account') }} \ No newline at end of file diff --git a/fittrackee/emails/templates/email_update_to_current_email/body.html b/fittrackee/emails/templates/email_update_to_current_email/body.html new file mode 100644 index 00000000..cea39811 --- /dev/null +++ b/fittrackee/emails/templates/email_update_to_current_email/body.html @@ -0,0 +1,18 @@ +{% extends "layout.html" %} +{% block title %}{{ _('Email changed') }}{% endblock %} +{% block preheader %}{{ _('Your email is being updated.') }}{% endblock %} +{% block content %}

{{ _('You recently requested to change your email address for your FitTrackee account to:') }}

+ + + + + {% endblock %} +{% block not_initiated %}{{ _("If this email change wasn't initiated by you, please change your password immediately or contact your administrator if your account is locked.") }}{% endblock %} \ No newline at end of file diff --git a/fittrackee/emails/templates/email_update_to_current_email/body.txt b/fittrackee/emails/templates/email_update_to_current_email/body.txt new file mode 100644 index 00000000..6d73e862 --- /dev/null +++ b/fittrackee/emails/templates/email_update_to_current_email/body.txt @@ -0,0 +1,4 @@ +{% extends "layout.txt" %}{% block content %}{{ _('You recently requested to change your email address for your FitTrackee account to:') }} {{ new_email_address }} + +{{ _('For security, this request was received from a %(operating_system)s device using %(browser_name)s.', operating_system=operating_system, browser_name=browser_name) }} +{{ _("If this email change wasn't initiated by you, please change your password immediately or contact your administrator if your account is locked.") }}{% endblock %} \ No newline at end of file diff --git a/fittrackee/emails/templates/email_update_to_current_email/de/body.html b/fittrackee/emails/templates/email_update_to_current_email/de/body.html deleted file mode 100644 index 9f7acfe5..00000000 --- a/fittrackee/emails/templates/email_update_to_current_email/de/body.html +++ /dev/null @@ -1,26 +0,0 @@ -{% extends "layout.html" %} -{% block title %}E-Mail Adresse geändert{% endblock %} -{% block preheader %}Deine E-Mail Adresse wure aktualisiert.{% endblock %} -{% block content %}

Hallo {{username}},

-

Du hast kürzlich beantragt, die E-Mail Adresse Deines FitTrackee Kontos zu ändern. Neue Adresse:

- - - - - -

- Zur Sicherheit: Diese Anfrage wurde von einem {{operating_system}} Gerät mit {{browser_name}} ausgelöst. - Falls die Änderung der E-Mail Adresse nicht von Dir initiiert wurde, ändere bitte sofort Dein Passwort oder kontaktiere den Administrator, falls Dein Konto gesperrt ist. -

-

Danke -
- Dein FitTrackee Team -

{% endblock %} diff --git a/fittrackee/emails/templates/email_update_to_current_email/de/body.txt b/fittrackee/emails/templates/email_update_to_current_email/de/body.txt deleted file mode 100644 index b2da93ca..00000000 --- a/fittrackee/emails/templates/email_update_to_current_email/de/body.txt +++ /dev/null @@ -1,10 +0,0 @@ -Hallo {{username}}, - -Du hast kürzlich beantragt, die E-Mail Adresse Deines FitTrackee Kontos nach {{ new_email_address }} zu ändern. - -Zur Sicherheit: Diese Anfrage wurde von einem {{operating_system}} Gerät mit {{browser_name}} ausgelöst. -Falls die Änderung der E-Mail Adresse nicht von Dir initiiert wurde, ändere bitte sofort Dein Passwort oder kontaktiere den Administrator, falls Dein Konto gesperrt ist. - -Danke -Dein FitTrackee Team -{{fittrackee_url}} diff --git a/fittrackee/emails/templates/email_update_to_current_email/de/subject.txt b/fittrackee/emails/templates/email_update_to_current_email/de/subject.txt deleted file mode 100644 index 4ef5e1c5..00000000 --- a/fittrackee/emails/templates/email_update_to_current_email/de/subject.txt +++ /dev/null @@ -1 +0,0 @@ -FitTrackee - E-Mail Adresse geändert \ No newline at end of file diff --git a/fittrackee/emails/templates/email_update_to_current_email/en/body.html b/fittrackee/emails/templates/email_update_to_current_email/en/body.html deleted file mode 100644 index 9db94dbd..00000000 --- a/fittrackee/emails/templates/email_update_to_current_email/en/body.html +++ /dev/null @@ -1,26 +0,0 @@ -{% extends "layout.html" %} -{% block title %}Email changed{% endblock %} -{% block preheader %}Your email is being updated.{% endblock %} -{% block content %}

Hi {{username}},

-

You recently requested to change your email address for your FitTrackee account to:

- - - - - -

- For security, this request was received from a {{operating_system}} device using {{browser_name}}. - If this email change wasn't initiated by you, please change your password immediately or contact your administrator if your account is locked. -

-

Thanks, -
- The FitTrackee Team -

{% endblock %} \ No newline at end of file diff --git a/fittrackee/emails/templates/email_update_to_current_email/en/body.txt b/fittrackee/emails/templates/email_update_to_current_email/en/body.txt deleted file mode 100644 index 4e1f0929..00000000 --- a/fittrackee/emails/templates/email_update_to_current_email/en/body.txt +++ /dev/null @@ -1,10 +0,0 @@ -Hi {{username}}, - -You recently requested to change your email address for your FitTrackee account to: {{ new_email_address }} - -For security, this request was received from a {{operating_system}} device using {{browser_name}}. -If this email change wasn't initiated by you, please change your password immediately or contact your administrator if your account is locked. - -Thanks, -The FitTrackee Team -{{fittrackee_url}} diff --git a/fittrackee/emails/templates/email_update_to_current_email/en/subject.txt b/fittrackee/emails/templates/email_update_to_current_email/en/subject.txt deleted file mode 100644 index 990157cc..00000000 --- a/fittrackee/emails/templates/email_update_to_current_email/en/subject.txt +++ /dev/null @@ -1 +0,0 @@ -FitTrackee - Email changed \ No newline at end of file diff --git a/fittrackee/emails/templates/email_update_to_current_email/fr/body.html b/fittrackee/emails/templates/email_update_to_current_email/fr/body.html deleted file mode 100644 index 7b0718a7..00000000 --- a/fittrackee/emails/templates/email_update_to_current_email/fr/body.html +++ /dev/null @@ -1,26 +0,0 @@ -{% extends "layout.html" %} -{% block title %}Adresse email modifiée{% endblock %} -{% block preheader %}Votre adresse email est en cours de mise à jour.{% endblock %} -{% block content %}

Bonjour {{username}},

-

Vous avez récemment demandé la modification de l'adresse email associée à votre compte sur FitTrackee vers :

- - - - - -

- Pour vérification, cette demande a été reçue à partir d'un appareil sous {{operating_system}}, utilisant le navigateur {{browser_name}}. - Si vous n'êtes pas à l'origine de cette modification, veuillez changer votre mot de passe immédiatement ou contacter l'administrateur si votre compte est bloqué. -

-

Merci, -
- L'équipe FitTrackee -

{% endblock %} \ No newline at end of file diff --git a/fittrackee/emails/templates/email_update_to_current_email/fr/body.txt b/fittrackee/emails/templates/email_update_to_current_email/fr/body.txt deleted file mode 100644 index a9ac9114..00000000 --- a/fittrackee/emails/templates/email_update_to_current_email/fr/body.txt +++ /dev/null @@ -1,10 +0,0 @@ -Bonjour {{username}}, - -Vous avez récemment demandé la modification de l'adresse email associée à votre compte sur FitTrackee vers : {{ new_email_address }} - -Pour vérification, cette demande a été reçue à partir d'un appareil sous {{operating_system}}, utilisant le navigateur {{browser_name}}. -Si vous n'êtes pas à l'origine de cette modification, veuillez changer votre mot de passe immédiatement ou contacter l'administrateur si votre compte est bloqué. - -Merci, -L'équipe FitTrackee -{{fittrackee_url}} diff --git a/fittrackee/emails/templates/email_update_to_current_email/fr/subject.txt b/fittrackee/emails/templates/email_update_to_current_email/fr/subject.txt deleted file mode 100644 index 758affe3..00000000 --- a/fittrackee/emails/templates/email_update_to_current_email/fr/subject.txt +++ /dev/null @@ -1 +0,0 @@ -FitTrackee - Adresse email modifiée \ No newline at end of file diff --git a/fittrackee/emails/templates/email_update_to_current_email/subject.txt b/fittrackee/emails/templates/email_update_to_current_email/subject.txt new file mode 100644 index 00000000..cafccbac --- /dev/null +++ b/fittrackee/emails/templates/email_update_to_current_email/subject.txt @@ -0,0 +1 @@ +FitTrackee - {{ _('Email changed') }} \ No newline at end of file diff --git a/fittrackee/emails/templates/email_update_to_new_email/body.html b/fittrackee/emails/templates/email_update_to_new_email/body.html new file mode 100644 index 00000000..41274860 --- /dev/null +++ b/fittrackee/emails/templates/email_update_to_new_email/body.html @@ -0,0 +1,26 @@ +{% extends "layout.html" %} +{% block title %}{{ _('Confirm email change') }}{% endblock %} +{% block preheader %}{{ _('Use this link to confirm email change.') }}{% endblock %} +{% block content %}

{{ _('You recently requested to change your email address for your FitTrackee account.') }} {{ _('Use the button below to confirm this address.') }}

+ + + + + {% endblock %} +{% block not_initiated %}{{ _("If this email change wasn't initiated by you, please ignore this email.") }}{% endblock %} +{% block url_to_paste %} + + + + {% endblock %} \ No newline at end of file diff --git a/fittrackee/emails/templates/email_update_to_new_email/body.txt b/fittrackee/emails/templates/email_update_to_new_email/body.txt new file mode 100644 index 00000000..dbe46f0e --- /dev/null +++ b/fittrackee/emails/templates/email_update_to_new_email/body.txt @@ -0,0 +1,7 @@ +{% extends "layout.txt" %}{% block content %}{{ _('You recently requested to change your email address for your FitTrackee account.') }} +{{ _('Use the link below to confirm this address.') }} + +{{ _('Verify your email') }}: {{ email_confirmation_url }} + +{% if operating_system and browser_name %}{{ _('For security, this request was received from a %(operating_system)s device using %(browser_name)s.', operating_system=operating_system, browser_name=browser_name) }} +{% endif %}{{ _("If this email change wasn't initiated by you, please ignore this email.") }}{% endblock %} \ No newline at end of file diff --git a/fittrackee/emails/templates/email_update_to_new_email/de/body.html b/fittrackee/emails/templates/email_update_to_new_email/de/body.html deleted file mode 100644 index d4f35b4b..00000000 --- a/fittrackee/emails/templates/email_update_to_new_email/de/body.html +++ /dev/null @@ -1,32 +0,0 @@ -{% extends "layout.html" %} -{% block title %}Bestätige E-Mail Änderung{% endblock %} -{% block preheader %}Verwende den Link um die Änderung Deiner E-Mail Adresse zu bestätigen.{% endblock %} -{% block content %}

Hallo {{username}},

-

Du hast kürzlich beantragt, die E-Mail Adresse Deines FitTrackee Kontos zu ändern. Verwende den unteren Button um Deine Adresse zu bestätigen.

- - - - - -

- {% if operating_system and browser_name %}Zur Sicherheit: Diese Anfrage wurde von einem {{operating_system}} Gerät mit {{browser_name}} ausgelöst. - {% endif %}Falls die Änderung der E-Mail Adresse nicht von Dir initiiert wurde, ignoriere diese E-Mail bitte. -

-

Danke -
Dein FitTrackee Team

- - - - - {% endblock %} diff --git a/fittrackee/emails/templates/email_update_to_new_email/de/body.txt b/fittrackee/emails/templates/email_update_to_new_email/de/body.txt deleted file mode 100644 index c7349fba..00000000 --- a/fittrackee/emails/templates/email_update_to_new_email/de/body.txt +++ /dev/null @@ -1,12 +0,0 @@ -Hallo {{username}}, - -Du hast kürzlich beantragt, die E-Mail Adresse Deines FitTrackee Kontos zu ändern. Verwende den unteren Link um Deine Adresse zu bestätigen. - -Bestätige Deine E-Mail: {{ email_confirmation_url }} - -{% if operating_system and browser_name %}Zur Sicherheit: Diese Anfrage wurde von einem {{operating_system}} Gerät mit {{browser_name}} ausgelöst. -{% endif %}Falls die Änderung der E-Mail Adresse nicht von Dir initiiert wurde, ignoriere diese E-Mail bitte. - -Danke -Dein FitTrackee Team -{{fittrackee_url}} diff --git a/fittrackee/emails/templates/email_update_to_new_email/de/subject.txt b/fittrackee/emails/templates/email_update_to_new_email/de/subject.txt deleted file mode 100644 index 105c8a22..00000000 --- a/fittrackee/emails/templates/email_update_to_new_email/de/subject.txt +++ /dev/null @@ -1 +0,0 @@ -FitTrackee - Bestätige E-Mail Änderung \ No newline at end of file diff --git a/fittrackee/emails/templates/email_update_to_new_email/en/body.html b/fittrackee/emails/templates/email_update_to_new_email/en/body.html deleted file mode 100644 index 6a27eeca..00000000 --- a/fittrackee/emails/templates/email_update_to_new_email/en/body.html +++ /dev/null @@ -1,32 +0,0 @@ -{% extends "layout.html" %} -{% block title %}Confirm email change{% endblock %} -{% block preheader %}Use this link to confirm email change.{% endblock %} -{% block content %}

Hi {{username}},

-

You recently requested to change your email address for your FitTrackee account. Use the button below to confirm this address.

- - - - - -

- {% if operating_system and browser_name %}For security, this request was received from a {{operating_system}} device using {{browser_name}}. - {% endif %}If this email change wasn't initiated by you, please ignore this email. -

-

Thanks, -
The FitTrackee Team

- - - - - {% endblock %} \ No newline at end of file diff --git a/fittrackee/emails/templates/email_update_to_new_email/en/body.txt b/fittrackee/emails/templates/email_update_to_new_email/en/body.txt deleted file mode 100644 index 9234510b..00000000 --- a/fittrackee/emails/templates/email_update_to_new_email/en/body.txt +++ /dev/null @@ -1,12 +0,0 @@ -Hi {{username}}, - -You recently requested to change your email address for your FitTrackee account. Use the link below to confirm this address. - -Verify your email: {{ email_confirmation_url }} - -{% if operating_system and browser_name %}For security, this request was received from a {{operating_system}} device using {{browser_name}}. -{% endif %}If this email change wasn't initiated by you, please ignore this email. - -Thanks, -The FitTrackee Team -{{fittrackee_url}} diff --git a/fittrackee/emails/templates/email_update_to_new_email/en/subject.txt b/fittrackee/emails/templates/email_update_to_new_email/en/subject.txt deleted file mode 100644 index 9b73071c..00000000 --- a/fittrackee/emails/templates/email_update_to_new_email/en/subject.txt +++ /dev/null @@ -1 +0,0 @@ -FitTrackee - Confirm email change \ No newline at end of file diff --git a/fittrackee/emails/templates/email_update_to_new_email/fr/body.html b/fittrackee/emails/templates/email_update_to_new_email/fr/body.html deleted file mode 100644 index f680a2f4..00000000 --- a/fittrackee/emails/templates/email_update_to_new_email/fr/body.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends "layout.html" %} -{% block title %}Confirmer le changement d'adresse email{% endblock %} -{% block preheader %}Utiliser ce lien pour confirmer cette adresse email.{% endblock %} -{% block content %}

Bonjour {{username}},

-

Vous avez récemment demandé la modification de l'adresse email associée à votre compte sur FitTrackee. - Cliquez sur le bouton ci-dessous pour confirmer cette adresse email. -

- - - - - -

- {% if operating_system and browser_name %}Pour vérification, cette demande a été reçue à partir d'un appareil sous {{operating_system}}, utilisant le navigateur {{browser_name}}. - {% endif %}Si vous n'êtes pas à l'origine de cette modification, vous pouvez ignorer cet e-mail. -

-

Merci, -
L'équipe FitTrackee

- - - - - {% endblock %} \ No newline at end of file diff --git a/fittrackee/emails/templates/email_update_to_new_email/fr/body.txt b/fittrackee/emails/templates/email_update_to_new_email/fr/body.txt deleted file mode 100644 index f6c8d6e6..00000000 --- a/fittrackee/emails/templates/email_update_to_new_email/fr/body.txt +++ /dev/null @@ -1,13 +0,0 @@ -Bonjour {{username}}, - -Vous avez récemment demandé la modification de l'adresse email associée à votre compte sur FitTrackee. -Cliquez sur le lien ci-dessous pour confirmer cette adresse email. - -Vérifier l'adresse email : {{ email_confirmation_url }} - -{% if operating_system and browser_name %}Pour vérification, cette demande a été reçue à partir d'un appareil sous {{operating_system}}, utilisant le navigateur {{browser_name}}. -{% endif %}Si vous n'êtes pas à l'origine de cette modification, vous pouvez ignorer cet e-mail. - -Merci, -L'équipe FitTrackee -{{fittrackee_url}} diff --git a/fittrackee/emails/templates/email_update_to_new_email/fr/subject.txt b/fittrackee/emails/templates/email_update_to_new_email/fr/subject.txt deleted file mode 100644 index 3fed649e..00000000 --- a/fittrackee/emails/templates/email_update_to_new_email/fr/subject.txt +++ /dev/null @@ -1 +0,0 @@ -FitTrackee - Confirmer le changement d'adresse email \ No newline at end of file diff --git a/fittrackee/emails/templates/email_update_to_new_email/subject.txt b/fittrackee/emails/templates/email_update_to_new_email/subject.txt new file mode 100644 index 00000000..1998e3f2 --- /dev/null +++ b/fittrackee/emails/templates/email_update_to_new_email/subject.txt @@ -0,0 +1 @@ +FitTrackee - {{ _('Confirm email change') }} \ No newline at end of file diff --git a/fittrackee/emails/templates/layout.html b/fittrackee/emails/templates/layout.html index 94bb4dd6..41fb8752 100644 --- a/fittrackee/emails/templates/layout.html +++ b/fittrackee/emails/templates/layout.html @@ -212,7 +212,15 @@
+

{{ _('Hi %(username)s,', username=username) }}

{% block content %}{% endblock %} +

+ {% if operating_system and browser_name %}{{ _('For security, this request was received from a %(operating_system)s device using %(browser_name)s.', operating_system=operating_system, browser_name=browser_name) }} + {% endif %}{% block not_initiated %}{% endblock %} +

+

{{ _('Thanks,') }} +
{{ _('The FitTrackee Team') }}

+ {% block url_to_paste %}{% endblock %}
diff --git a/fittrackee/emails/templates/layout.txt b/fittrackee/emails/templates/layout.txt new file mode 100644 index 00000000..22c5d88a --- /dev/null +++ b/fittrackee/emails/templates/layout.txt @@ -0,0 +1,7 @@ +{{ _('Hi %(username)s,', username=username) }} + +{% block content %}{% endblock %} + +{{ _('Thanks,') }} +{{ _('The FitTrackee Team') }} +{{fittrackee_url}} diff --git a/fittrackee/emails/templates/password_change/body.html b/fittrackee/emails/templates/password_change/body.html new file mode 100644 index 00000000..450254aa --- /dev/null +++ b/fittrackee/emails/templates/password_change/body.html @@ -0,0 +1,5 @@ +{% extends "layout.html" %} +{% block title %}{{ _('Password changed') }}{% endblock %} +{% block preheader %}{{ _('Your password has been changed.') }}{% endblock %} +{% block content %}

{{ _('The password for your FitTrackee account has been changed.') }}

{% endblock %} +{% block not_initiated %}{{ _("If this password change wasn't initiated by you, please change your password immediately or contact your administrator if your account is locked.") }}{% endblock %} \ No newline at end of file diff --git a/fittrackee/emails/templates/password_change/body.txt b/fittrackee/emails/templates/password_change/body.txt new file mode 100644 index 00000000..aad35cdb --- /dev/null +++ b/fittrackee/emails/templates/password_change/body.txt @@ -0,0 +1,4 @@ +{% extends "layout.txt" %}{% block content %}{{ _('The password for your FitTrackee account has been changed.') }} + +{% if operating_system and browser_name %}{{ _('For security, this request was received from a %(operating_system)s device using %(browser_name)s.', operating_system=operating_system, browser_name=browser_name) }} +{% endif %}{{ _("If this password change wasn't initiated by you, please change your password immediately or contact your administrator if your account is locked.") }}{% endblock %} \ No newline at end of file diff --git a/fittrackee/emails/templates/password_change/de/body.html b/fittrackee/emails/templates/password_change/de/body.html deleted file mode 100644 index 4dc15403..00000000 --- a/fittrackee/emails/templates/password_change/de/body.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends "layout.html" %} -{% block title %}Passwort geändert{% endblock %} -{% block preheader %}Dein Passwort wurde geändert.{% endblock %} -{% block content %}

Hallo {{username}},

-

Das Passwort Deines FitTrackee Kontos wurde geändert.

-

- {% if operating_system and browser_name %}Zur Sicherheit: Diese Anfrage wurde von einem {{operating_system}} Gerät mit {{browser_name}} ausgelöst. - {% endif %}Falls die Änderung des Passworts nicht von Dir initiiert wurde, ändere bitte sofort Dein Passwort oder kontaktiere den Administrator, falls Dein Konto gesperrt ist. -

-

Danke -
- Dein FitTrackee Team -

{% endblock %} diff --git a/fittrackee/emails/templates/password_change/de/body.txt b/fittrackee/emails/templates/password_change/de/body.txt deleted file mode 100644 index c49c132d..00000000 --- a/fittrackee/emails/templates/password_change/de/body.txt +++ /dev/null @@ -1,10 +0,0 @@ -Hallo {{username}}, - -Das Passwort Deines FitTrackee Kontos wurde geändert. - -{% if operating_system and browser_name %}Zur Sicherheit: Diese Anfrage wurde von einem {{operating_system}} Gerät mit {{browser_name}} ausgelöst. -{% endif %}Falls die Änderung des Passworts nicht von Dir initiiert wurde, ändere bitte sofort Dein Passwort oder kontaktiere den Administrator, falls Dein Konto gesperrt ist. - -Danke -Dein FitTrackee Team -{{fittrackee_url}} diff --git a/fittrackee/emails/templates/password_change/de/subject.txt b/fittrackee/emails/templates/password_change/de/subject.txt deleted file mode 100644 index 35ba177a..00000000 --- a/fittrackee/emails/templates/password_change/de/subject.txt +++ /dev/null @@ -1 +0,0 @@ -FitTrackee - Passwort geändert \ No newline at end of file diff --git a/fittrackee/emails/templates/password_change/en/body.html b/fittrackee/emails/templates/password_change/en/body.html deleted file mode 100644 index 345009d1..00000000 --- a/fittrackee/emails/templates/password_change/en/body.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends "layout.html" %} -{% block title %}Password changed{% endblock %} -{% block preheader %}Your password has been changed.{% endblock %} -{% block content %}

Hi {{username}},

-

The password for your FitTrackee account has been changed.

-

- {% if operating_system and browser_name %}For security, this request was received from a {{operating_system}} device using {{browser_name}}. - {% endif %}If this password change wasn't initiated by you, please change your password immediately or contact your administrator if your account is locked. -

-

Thanks, -
- The FitTrackee Team -

{% endblock %} \ No newline at end of file diff --git a/fittrackee/emails/templates/password_change/en/body.txt b/fittrackee/emails/templates/password_change/en/body.txt deleted file mode 100644 index 9675f8a6..00000000 --- a/fittrackee/emails/templates/password_change/en/body.txt +++ /dev/null @@ -1,10 +0,0 @@ -Hi {{username}}, - -The password for your FitTrackee account has been changed. - -{% if operating_system and browser_name %}For security, this request was received from a {{operating_system}} device using {{browser_name}}. -{% endif %}If this password change wasn't initiated by you, please change your password immediately or contact your administrator if your account is locked. - -Thanks, -The FitTrackee Team -{{fittrackee_url}} diff --git a/fittrackee/emails/templates/password_change/en/subject.txt b/fittrackee/emails/templates/password_change/en/subject.txt deleted file mode 100644 index 2669367f..00000000 --- a/fittrackee/emails/templates/password_change/en/subject.txt +++ /dev/null @@ -1 +0,0 @@ -FitTrackee - Password changed \ No newline at end of file diff --git a/fittrackee/emails/templates/password_change/fr/body.html b/fittrackee/emails/templates/password_change/fr/body.html deleted file mode 100644 index 0cf5fdd8..00000000 --- a/fittrackee/emails/templates/password_change/fr/body.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends "layout.html" %} -{% block title %}FitTrackee - Mot de passe modifié{% endblock %} -{% block preheader %}Votre mot de passe a été modifié.{% endblock %} -{% block content %}

Bonjour {{username}},

-

Le mot de passe de votre compte FitTrackee a été modifié.

-

- {% if operating_system and browser_name %}Pour vérification, cette demande a été reçue à partir d'un appareil sous {{operating_system}}, utilisant le navigateur {{browser_name}}. - {% endif %}Si vous n'êtes pas à l'origine de cette modification, veuillez changer votre mot de passe immédiatement ou contacter l'administrateur si votre compte est bloqué. -

-

Merci, -
- L'équipe FitTrackee -

{% endblock %} \ No newline at end of file diff --git a/fittrackee/emails/templates/password_change/fr/body.txt b/fittrackee/emails/templates/password_change/fr/body.txt deleted file mode 100644 index f353f1a6..00000000 --- a/fittrackee/emails/templates/password_change/fr/body.txt +++ /dev/null @@ -1,10 +0,0 @@ -Bonjour {{username}}, - -Le mot de passe de votre compte FitTrackee a été modifié. - -{% if operating_system and browser_name %}Pour vérification, cette demande a été reçue à partir d'un appareil sous {{operating_system}}, utilisant le navigateur {{browser_name}}. -{% endif %}Si vous n'êtes pas à l'origine de cette modification, veuillez changer votre mot de passe immédiatement ou contacter l'administrateur si votre compte est bloqué. - -Merci, -L'équipe FitTrackee -{{fittrackee_url}} diff --git a/fittrackee/emails/templates/password_change/fr/subject.txt b/fittrackee/emails/templates/password_change/fr/subject.txt deleted file mode 100644 index 7ec45c21..00000000 --- a/fittrackee/emails/templates/password_change/fr/subject.txt +++ /dev/null @@ -1 +0,0 @@ -FitTrackee - Mot de passe modifié \ No newline at end of file diff --git a/fittrackee/emails/templates/password_change/subject.txt b/fittrackee/emails/templates/password_change/subject.txt new file mode 100644 index 00000000..f5e9c665 --- /dev/null +++ b/fittrackee/emails/templates/password_change/subject.txt @@ -0,0 +1 @@ +FitTrackee - {{ _('Password changed') }} \ No newline at end of file diff --git a/fittrackee/emails/templates/password_reset_request/body.html b/fittrackee/emails/templates/password_reset_request/body.html new file mode 100644 index 00000000..6bf31a96 --- /dev/null +++ b/fittrackee/emails/templates/password_reset_request/body.html @@ -0,0 +1,28 @@ +{% extends "layout.html" %} +{% block title %}{{ _('Password reset request') }}{% endblock %} +{% block preheader %}{{ _('Use this link to reset your password. The link is only valid for %(expiration_delay)s.', expiration_delay=expiration_delay) }}{% endblock %} +{% block content %}

{{ _('You recently requested to reset your password for your FitTrackee account.') }} {{ _('Use the button below to reset it.') }} + {{ _('This password reset link is only valid for %(expiration_delay)s.', expiration_delay=expiration_delay) }} +

+ + + + + {% endblock %} +{% block not_initiated %}{{ _('If you did not request a password reset, please ignore this email.') }}{% endblock %} +{% block url_to_paste %} + + + + {% endblock %} \ No newline at end of file diff --git a/fittrackee/emails/templates/password_reset_request/body.txt b/fittrackee/emails/templates/password_reset_request/body.txt new file mode 100644 index 00000000..312de8cb --- /dev/null +++ b/fittrackee/emails/templates/password_reset_request/body.txt @@ -0,0 +1,7 @@ +{% extends "layout.txt" %}{% block content %}{{ _('You recently requested to reset your password for your FitTrackee account.') }} {{ _('Use the link below to reset it.') }} +{{ _('This password reset link is only valid for %(expiration_delay)s.', expiration_delay=expiration_delay) }} + +{{ _('Reset your password') }}: {{ password_reset_url }} + +{% if operating_system and browser_name %}{{ _('For security, this request was received from a %(operating_system)s device using %(browser_name)s.', operating_system=operating_system, browser_name=browser_name) }} +{% endif %}{{ _('If you did not request a password reset, please ignore this email.') }}{% endblock %} \ No newline at end of file diff --git a/fittrackee/emails/templates/password_reset_request/de/body.html b/fittrackee/emails/templates/password_reset_request/de/body.html deleted file mode 100644 index 4b32c2a2..00000000 --- a/fittrackee/emails/templates/password_reset_request/de/body.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends "layout.html" %} -{% block title %}Anfrage zum Zurücksetzen des Passworts{% endblock %} -{% block preheader %}Verwende den unteren Link um Dein Passwort zurückzusetzen. Der Link ist nur für {{ expiration_delay }} gültig.{% endblock %} -{% block content %}

Hallo {{username}},

-

Du hast kürzlich beantragt, das Passwort Deines FitTrackee Kontos zurückzusetzen. Verwende den unteren Button um es zurückzusetzen. - Der Link ist nur für {{ expiration_delay }} gültig. -

- - - - - -

- {% if operating_system and browser_name %}Zur Sicherheit: Diese Anfrage wurde von einem {{operating_system}} Gerät mit {{browser_name}} ausgelöst. - {% endif %}Falls Du das Zurücksetzen des Passworts nicht angefordert hast, igoniere diese E-Mail bitte. -

-

Danke -
Dein FitTrackee Team

- - - - - {% endblock %} diff --git a/fittrackee/emails/templates/password_reset_request/de/body.txt b/fittrackee/emails/templates/password_reset_request/de/body.txt deleted file mode 100644 index cbc3f9a9..00000000 --- a/fittrackee/emails/templates/password_reset_request/de/body.txt +++ /dev/null @@ -1,12 +0,0 @@ -Hallo {{username}}, - -Du hast kürzlich beantragt, das Passwort Deines FitTrackee Kontos zurückzusetzen. Verwende den unteren Link um es zurückzusetzen. Der Link ist nur für {{ expiration_delay }} gültig. - -Setze Dein Passwort zurück: {{ password_reset_url }} - -{% if operating_system and browser_name %}Zur Sicherheit: Diese Anfrage wurde von einem {{operating_system}} Gerät mit {{browser_name}} ausgelöst. -{% endif %}Falls Du das Zurücksetzen des Passworts nicht angefordert hast, igoniere diese E-Mail bitte. - -Danke -Dein FitTrackee Team -{{fittrackee_url}} diff --git a/fittrackee/emails/templates/password_reset_request/de/subject.txt b/fittrackee/emails/templates/password_reset_request/de/subject.txt deleted file mode 100644 index 17c96cd1..00000000 --- a/fittrackee/emails/templates/password_reset_request/de/subject.txt +++ /dev/null @@ -1 +0,0 @@ -FitTrackee - Anfrage zum Zurücksetzen des Passworts \ No newline at end of file diff --git a/fittrackee/emails/templates/password_reset_request/en/body.html b/fittrackee/emails/templates/password_reset_request/en/body.html deleted file mode 100644 index f5c3ac20..00000000 --- a/fittrackee/emails/templates/password_reset_request/en/body.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends "layout.html" %} -{% block title %}Password reset request{% endblock %} -{% block preheader %}Use this link to reset your password. The link is only valid for {{ expiration_delay }}.{% endblock %} -{% block content %}

Hi {{username}},

-

You recently requested to reset your password for your account. Use the button below to reset it. - This password reset link is only valid for {{ expiration_delay }}. -

- - - - - -

- {% if operating_system and browser_name %}For security, this request was received from a {{operating_system}} device using {{browser_name}}. - {% endif %}If you did not request a password reset, please ignore this email. -

-

Thanks, -
The FitTrackee Team

- - - - - {% endblock %} \ No newline at end of file diff --git a/fittrackee/emails/templates/password_reset_request/en/body.txt b/fittrackee/emails/templates/password_reset_request/en/body.txt deleted file mode 100644 index e988062d..00000000 --- a/fittrackee/emails/templates/password_reset_request/en/body.txt +++ /dev/null @@ -1,12 +0,0 @@ -Hi {{username}}, - -You recently requested to reset your password for your FitTrackee account. Use the link below to reset it. This password reset link is only valid for {{ expiration_delay }}. - -Reset your password: {{ password_reset_url }} - -{% if operating_system and browser_name %}For security, this request was received from a {{operating_system}} device using {{browser_name}}. -{% endif %}If you did not request a password reset, please ignore this email. - -Thanks, -The FitTrackee Team -{{fittrackee_url}} diff --git a/fittrackee/emails/templates/password_reset_request/en/subject.txt b/fittrackee/emails/templates/password_reset_request/en/subject.txt deleted file mode 100644 index d8033bea..00000000 --- a/fittrackee/emails/templates/password_reset_request/en/subject.txt +++ /dev/null @@ -1 +0,0 @@ -FitTrackee - Password reset request \ No newline at end of file diff --git a/fittrackee/emails/templates/password_reset_request/fr/body.html b/fittrackee/emails/templates/password_reset_request/fr/body.html deleted file mode 100644 index 505d5c57..00000000 --- a/fittrackee/emails/templates/password_reset_request/fr/body.html +++ /dev/null @@ -1,35 +0,0 @@ -{% extends "layout.html" %} -{% block title %}Réinitialiser le mot de passe{% endblock %} -{% block preheader %}Utiliser ce lien pour réinitialiser le mot de passe. Ce lien n'est valide que pendant {{ expiration_delay }}.{% endblock %} -{% block content %}

Bonjour {{username}},

-

Vous avez récemment demandé la réinitialisation du mot de passe de votre compte sur FitTrackee. - Cliquez sur le bouton ci-dessous pour le réinitialiser. - Cette réinitialisation n'est valide que pendant {{ expiration_delay }}. -

- - - - - -

- {% if operating_system and browser_name %}Pour vérification, cette demande a été reçue à partir d'un appareil sous {{operating_system}}, utilisant le navigateur {{browser_name}}. - {% endif %}Si vous n'avez pas demandé de réinitialisation, vous pouvez ignorer cet e-mail. -

-

Merci, -
L'équipe FitTrackee

- - - - - {% endblock %} \ No newline at end of file diff --git a/fittrackee/emails/templates/password_reset_request/fr/body.txt b/fittrackee/emails/templates/password_reset_request/fr/body.txt deleted file mode 100644 index 02195bd5..00000000 --- a/fittrackee/emails/templates/password_reset_request/fr/body.txt +++ /dev/null @@ -1,13 +0,0 @@ -Bonjour {{username}}, - -Vous avez récemment demandé la réinitialisation du mot de passe de votre compte sur FitTrackee. -Cliquez sur le lien ci-dessous pour le réinitialiser. Ce lien n'est valide que pendant {{ expiration_delay }}. - -Réinitialiser le mot de passe : {{ password_reset_url }} - -{% if operating_system and browser_name %}Pour vérification, cette demande a été reçue à partir d'un appareil sous {{operating_system}}, utilisant le navigateur {{browser_name}}. -{% endif %}Si vous n'avez pas demandé de réinitialisation, vous pouvez ignorer cet e-mail. - -Merci, -L'équipe FitTrackee -{{fittrackee_url}} diff --git a/fittrackee/emails/templates/password_reset_request/fr/subject.txt b/fittrackee/emails/templates/password_reset_request/fr/subject.txt deleted file mode 100644 index 2856fcc5..00000000 --- a/fittrackee/emails/templates/password_reset_request/fr/subject.txt +++ /dev/null @@ -1 +0,0 @@ -FitTrackee - Réinitialiser votre mot de passe \ No newline at end of file diff --git a/fittrackee/emails/templates/password_reset_request/subject.txt b/fittrackee/emails/templates/password_reset_request/subject.txt new file mode 100644 index 00000000..ab15c328 --- /dev/null +++ b/fittrackee/emails/templates/password_reset_request/subject.txt @@ -0,0 +1 @@ +FitTrackee - {{ _('Password reset request') }} \ No newline at end of file diff --git a/fittrackee/emails/translations/de/LC_MESSAGES/messages.mo b/fittrackee/emails/translations/de/LC_MESSAGES/messages.mo new file mode 100644 index 00000000..4e0ce9c8 Binary files /dev/null and b/fittrackee/emails/translations/de/LC_MESSAGES/messages.mo differ diff --git a/fittrackee/emails/translations/de/LC_MESSAGES/messages.po b/fittrackee/emails/translations/de/LC_MESSAGES/messages.po new file mode 100644 index 00000000..a379404e --- /dev/null +++ b/fittrackee/emails/translations/de/LC_MESSAGES/messages.po @@ -0,0 +1,231 @@ +# German translations for PROJECT. +# Copyright (C) 2022 ORGANIZATION +# This file is distributed under the same license as the PROJECT project. +# FIRST AUTHOR , 2022. +# +msgid "" +msgstr "" +"Project-Id-Version: PROJECT VERSION\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2022-07-02 17:37+0200\n" +"PO-Revision-Date: 2022-07-02 18:25+0200\n" +"Last-Translator: FULL NAME \n" +"Language: de\n" +"Language-Team: de \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.10.3\n" + +#: fittrackee/emails/templates/layout.html:215 +#: fittrackee/emails/templates/layout.txt:1 +#, python-format +msgid "Hi %(username)s," +msgstr "Hallo %(username)s," + +#: fittrackee/emails/templates/account_confirmation/body.txt:6 +#: fittrackee/emails/templates/email_update_to_current_email/body.txt:3 +#: fittrackee/emails/templates/email_update_to_new_email/body.txt:5 +#: fittrackee/emails/templates/layout.html:218 +#: fittrackee/emails/templates/password_change/body.txt:3 +#: fittrackee/emails/templates/password_reset_request/body.txt:6 +#, python-format +msgid "" +"For security, this request was received from a %(operating_system)s " +"device using %(browser_name)s." +msgstr "" +"Zur Sicherheit: Diese Anfrage wurde von einem %(operating_system)s Gerät " +"mit %(browser_name)s ausgelöst." + +#: fittrackee/emails/templates/layout.html:221 +#: fittrackee/emails/templates/layout.txt:5 +msgid "Thanks," +msgstr "Danke" + +#: fittrackee/emails/templates/layout.html:222 +#: fittrackee/emails/templates/layout.txt:6 +msgid "The FitTrackee Team" +msgstr "Dein FitTrackee Team" + +#: fittrackee/emails/templates/account_confirmation/body.html:2 +#: fittrackee/emails/templates/account_confirmation/subject.txt:1 +msgid "Confirm your account" +msgstr "Bestätige Dein Konto" + +#: fittrackee/emails/templates/account_confirmation/body.html:3 +msgid "Use this link to confirm your account." +msgstr "Verwendet diesen Link um Dein Konto zu bestätigen." + +#: fittrackee/emails/templates/account_confirmation/body.html:4 +#: fittrackee/emails/templates/account_confirmation/body.txt:1 +msgid "You have created an account on FitTrackee." +msgstr "Du hast ein Konto bei FitTrackee angelegt." + +#: fittrackee/emails/templates/account_confirmation/body.html:4 +msgid "Use the button below to confirm your address email." +msgstr "Verwende den unteren Button um Deine E-Mail Adresse zu bestätigen." + +#: fittrackee/emails/templates/account_confirmation/body.html:11 +#: fittrackee/emails/templates/account_confirmation/body.txt:4 +#: fittrackee/emails/templates/email_update_to_new_email/body.html:11 +#: fittrackee/emails/templates/email_update_to_new_email/body.txt:3 +msgid "Verify your email" +msgstr "Bestätige Deine E-Mail" + +#: fittrackee/emails/templates/account_confirmation/body.html:18 +#: fittrackee/emails/templates/account_confirmation/body.txt:7 +msgid "" +"If this account creation wasn't initiated by you, please ignore this " +"email." +msgstr "" +"Falls die Kontoerstellung nicht von Dir initiiert wurde, ignoriere diese " +"E-Mail bitte." + +#: fittrackee/emails/templates/account_confirmation/body.html:22 +#: fittrackee/emails/templates/email_update_to_new_email/body.html:22 +#: fittrackee/emails/templates/password_reset_request/body.html:24 +msgid "" +"If you're having trouble with the button above, copy and paste the URL " +"below into your web browser." +msgstr "" +"Falls Du Probleme mit dem oberen Button hast, kopiere diese URL und gebe " +"sie in Deinen Webbrowser ein." + +#: fittrackee/emails/templates/account_confirmation/body.txt:2 +msgid "Use the link below to confirm your address email." +msgstr "Verwende den unteren Link um Deine E-Mail Adresse zu bestätigen." + +#: fittrackee/emails/templates/email_update_to_current_email/body.html:2 +#: fittrackee/emails/templates/email_update_to_current_email/subject.txt:1 +msgid "Email changed" +msgstr "E-Mail Adresse geändert" + +#: fittrackee/emails/templates/email_update_to_current_email/body.html:3 +msgid "Your email is being updated." +msgstr "Deine E-Mail Adresse wure aktualisiert." + +#: fittrackee/emails/templates/email_update_to_current_email/body.html:4 +#: fittrackee/emails/templates/email_update_to_current_email/body.txt:1 +msgid "" +"You recently requested to change your email address for your FitTrackee " +"account to:" +msgstr "" +"Du hast kürzlich beantragt, die E-Mail Adresse Deines FitTrackee Kontos " +"zu ändern. Neue Adresse:" + +#: fittrackee/emails/templates/email_update_to_current_email/body.html:18 +#: fittrackee/emails/templates/email_update_to_current_email/body.txt:4 +msgid "" +"If this email change wasn't initiated by you, please change your password" +" immediately or contact your administrator if your account is locked." +msgstr "" +"Falls die Änderung der E-Mail Adresse nicht von Dir initiiert wurde, " +"ändere bitte sofort Dein Passwort oder kontaktiere den Administrator, " +"falls Dein Konto gesperrt ist." + +#: fittrackee/emails/templates/email_update_to_new_email/body.html:2 +#: fittrackee/emails/templates/email_update_to_new_email/subject.txt:1 +msgid "Confirm email change" +msgstr "Bestätige E-Mail Änderung" + +#: fittrackee/emails/templates/email_update_to_new_email/body.html:3 +msgid "Use this link to confirm email change." +msgstr "Verwende den unteren Link um Deine Adresse zu bestätigen." + +#: fittrackee/emails/templates/email_update_to_new_email/body.html:4 +#: fittrackee/emails/templates/email_update_to_new_email/body.txt:1 +msgid "" +"You recently requested to change your email address for your FitTrackee " +"account." +msgstr "" +"Du hast kürzlich beantragt, die E-Mail Adresse Deines FitTrackee Kontos " +"zu ändern." + +#: fittrackee/emails/templates/email_update_to_new_email/body.html:4 +msgid "Use the button below to confirm this address." +msgstr "Verwende den unteren Button um Deine Adresse zu bestätigen." + +#: fittrackee/emails/templates/email_update_to_new_email/body.html:18 +#: fittrackee/emails/templates/email_update_to_new_email/body.txt:6 +msgid "If this email change wasn't initiated by you, please ignore this email." +msgstr "" +"Falls die Änderung der E-Mail Adresse nicht von Dir initiiert wurde, " +"ignoriere diese E-Mail bitte." + +#: fittrackee/emails/templates/email_update_to_new_email/body.txt:1 +msgid "Use the link below to confirm this address." +msgstr "Verwende den unteren Link um Deine Adresse zu bestätigen." + +#: fittrackee/emails/templates/password_change/body.html:2 +#: fittrackee/emails/templates/password_change/subject.txt:1 +msgid "Password changed" +msgstr "Passwort geändert" + +#: fittrackee/emails/templates/password_change/body.html:3 +msgid "Your password has been changed." +msgstr "Dein Passwort wurde geändert." + +#: fittrackee/emails/templates/password_change/body.html:4 +#: fittrackee/emails/templates/password_change/body.txt:1 +msgid "The password for your FitTrackee account has been changed." +msgstr "Das Passwort Deines FitTrackee Kontos wurde geändert." + +#: fittrackee/emails/templates/password_change/body.html:5 +#: fittrackee/emails/templates/password_change/body.txt:4 +msgid "" +"If this password change wasn't initiated by you, please change your " +"password immediately or contact your administrator if your account is " +"locked." +msgstr "" +"Falls die Änderung des Passworts nicht von Dir initiiert wurde, ändere " +"bitte sofort Dein Passwort oder kontaktiere den Administrator, falls Dein " +"Konto gesperrt ist." + +#: fittrackee/emails/templates/password_reset_request/body.html:2 +#: fittrackee/emails/templates/password_reset_request/subject.txt:1 +msgid "Password reset request" +msgstr "Anfrage zum Zurücksetzen des Passworts" + +#: fittrackee/emails/templates/password_reset_request/body.html:3 +#, python-format +msgid "" +"Use this link to reset your password. The link is only valid for " +"%(expiration_delay)s." +msgstr "" +"Verwende den unteren Link um Dein Passwort zurückzusetzen. Der Link " +"ist nur für %(expiration_delay)s gültig." + +#: fittrackee/emails/templates/password_reset_request/body.html:4 +#: fittrackee/emails/templates/password_reset_request/body.txt:1 +msgid "You recently requested to reset your password for your FitTrackee account." +msgstr "" +"Du hast kürzlich beantragt, das Passwort Deines FitTrackee Kontos " +"zurückzusetzen." + +#: fittrackee/emails/templates/password_reset_request/body.html:4 +msgid "Use the button below to reset it." +msgstr "Verwende den unteren Button um es zurückzusetzen." + +#: fittrackee/emails/templates/password_reset_request/body.html:5 +#: fittrackee/emails/templates/password_reset_request/body.txt:2 +#, python-format +msgid "This password reset link is only valid for %(expiration_delay)s." +msgstr "Der Link ist nur für %(expiration_delay)s gültig." + +#: fittrackee/emails/templates/password_reset_request/body.html:13 +#: fittrackee/emails/templates/password_reset_request/body.txt:4 +msgid "Reset your password" +msgstr "Setze Dein Passwort zurück" + +#: fittrackee/emails/templates/password_reset_request/body.html:20 +#: fittrackee/emails/templates/password_reset_request/body.txt:7 +msgid "If you did not request a password reset, please ignore this email." +msgstr "" +"Falls Du das Zurücksetzen des Passworts nicht angefordert hast, igoniere " +"diese E-Mail bitte." + +#: fittrackee/emails/templates/password_reset_request/body.txt:1 +msgid "Use the link below to reset it." +msgstr "Verwende den unteren Link um es zurückzusetzen." + diff --git a/fittrackee/emails/translations/en/LC_MESSAGES/messages.mo b/fittrackee/emails/translations/en/LC_MESSAGES/messages.mo new file mode 100644 index 00000000..f9cfdf99 Binary files /dev/null and b/fittrackee/emails/translations/en/LC_MESSAGES/messages.mo differ diff --git a/fittrackee/emails/translations/en/LC_MESSAGES/messages.po b/fittrackee/emails/translations/en/LC_MESSAGES/messages.po new file mode 100644 index 00000000..afa1e9be --- /dev/null +++ b/fittrackee/emails/translations/en/LC_MESSAGES/messages.po @@ -0,0 +1,224 @@ +# English translations for PROJECT. +# Copyright (C) 2022 ORGANIZATION +# This file is distributed under the same license as the PROJECT project. +# FIRST AUTHOR , 2022. +# +msgid "" +msgstr "" +"Project-Id-Version: PROJECT VERSION\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2022-07-02 17:37+0200\n" +"PO-Revision-Date: 2022-07-02 18:25+0200\n" +"Last-Translator: FULL NAME \n" +"Language: en\n" +"Language-Team: en \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.10.3\n" + +#: fittrackee/emails/templates/layout.html:215 +#: fittrackee/emails/templates/layout.txt:1 +#, python-format +msgid "Hi %(username)s," +msgstr "Hi %(username)s," + +#: fittrackee/emails/templates/account_confirmation/body.txt:6 +#: fittrackee/emails/templates/email_update_to_current_email/body.txt:3 +#: fittrackee/emails/templates/email_update_to_new_email/body.txt:5 +#: fittrackee/emails/templates/layout.html:218 +#: fittrackee/emails/templates/password_change/body.txt:3 +#: fittrackee/emails/templates/password_reset_request/body.txt:6 +#, python-format +msgid "" +"For security, this request was received from a %(operating_system)s " +"device using %(browser_name)s." +msgstr "" +"For security, this request was received from a %(operating_system)s " +"device using %(browser_name)s." + +#: fittrackee/emails/templates/layout.html:221 +#: fittrackee/emails/templates/layout.txt:5 +msgid "Thanks," +msgstr "Thanks," + +#: fittrackee/emails/templates/layout.html:222 +#: fittrackee/emails/templates/layout.txt:6 +msgid "The FitTrackee Team" +msgstr "The FitTrackee Team" + +#: fittrackee/emails/templates/account_confirmation/body.html:2 +#: fittrackee/emails/templates/account_confirmation/subject.txt:1 +msgid "Confirm your account" +msgstr "Confirm your account" + +#: fittrackee/emails/templates/account_confirmation/body.html:3 +msgid "Use this link to confirm your account." +msgstr "Use this link to confirm your account." + +#: fittrackee/emails/templates/account_confirmation/body.html:4 +#: fittrackee/emails/templates/account_confirmation/body.txt:1 +msgid "You have created an account on FitTrackee." +msgstr "You have created an account on FitTrackee." + +#: fittrackee/emails/templates/account_confirmation/body.html:4 +msgid "Use the button below to confirm your address email." +msgstr "Use the button below to confirm your address email." + +#: fittrackee/emails/templates/account_confirmation/body.html:11 +#: fittrackee/emails/templates/account_confirmation/body.txt:4 +#: fittrackee/emails/templates/email_update_to_new_email/body.html:11 +#: fittrackee/emails/templates/email_update_to_new_email/body.txt:3 +msgid "Verify your email" +msgstr "Verify your email" + +#: fittrackee/emails/templates/account_confirmation/body.html:18 +#: fittrackee/emails/templates/account_confirmation/body.txt:7 +msgid "" +"If this account creation wasn't initiated by you, please ignore this " +"email." +msgstr "" +"If this account creation wasn't initiated by you, please ignore this " +"email." + +#: fittrackee/emails/templates/account_confirmation/body.html:22 +#: fittrackee/emails/templates/email_update_to_new_email/body.html:22 +#: fittrackee/emails/templates/password_reset_request/body.html:24 +msgid "" +"If you're having trouble with the button above, copy and paste the URL " +"below into your web browser." +msgstr "" +"If you're having trouble with the button above, copy and paste the URL " +"below into your web browser." + +#: fittrackee/emails/templates/account_confirmation/body.txt:2 +msgid "Use the link below to confirm your address email." +msgstr "Use the link below to confirm your address email." + +#: fittrackee/emails/templates/email_update_to_current_email/body.html:2 +#: fittrackee/emails/templates/email_update_to_current_email/subject.txt:1 +msgid "Email changed" +msgstr "Email changed" + +#: fittrackee/emails/templates/email_update_to_current_email/body.html:3 +msgid "Your email is being updated." +msgstr "Your email is being updated." + +#: fittrackee/emails/templates/email_update_to_current_email/body.html:4 +#: fittrackee/emails/templates/email_update_to_current_email/body.txt:1 +msgid "" +"You recently requested to change your email address for your FitTrackee " +"account to:" +msgstr "" +"You recently requested to change your email address for your FitTrackee " +"account to:" + +#: fittrackee/emails/templates/email_update_to_current_email/body.html:18 +#: fittrackee/emails/templates/email_update_to_current_email/body.txt:4 +msgid "" +"If this email change wasn't initiated by you, please change your password" +" immediately or contact your administrator if your account is locked." +msgstr "" +"If this email change wasn't initiated by you, please change your password" +" immediately or contact your administrator if your account is locked." + +#: fittrackee/emails/templates/email_update_to_new_email/body.html:2 +#: fittrackee/emails/templates/email_update_to_new_email/subject.txt:1 +msgid "Confirm email change" +msgstr "Confirm email change" + +#: fittrackee/emails/templates/email_update_to_new_email/body.html:3 +msgid "Use this link to confirm email change." +msgstr "Use this link to confirm email change." + +#: fittrackee/emails/templates/email_update_to_new_email/body.html:4 +#: fittrackee/emails/templates/email_update_to_new_email/body.txt:1 +msgid "" +"You recently requested to change your email address for your FitTrackee " +"account." +msgstr "" +"You recently requested to change your email address for your FitTrackee " +"account." + +#: fittrackee/emails/templates/email_update_to_new_email/body.html:4 +msgid "Use the button below to confirm this address." +msgstr "Use the button below to confirm this address." + +#: fittrackee/emails/templates/email_update_to_new_email/body.html:18 +#: fittrackee/emails/templates/email_update_to_new_email/body.txt:6 +msgid "If this email change wasn't initiated by you, please ignore this email." +msgstr "If this email change wasn't initiated by you, please ignore this email." + +#: fittrackee/emails/templates/email_update_to_new_email/body.txt:1 +msgid "Use the link below to confirm this address." +msgstr "Use the link below to confirm this address." + +#: fittrackee/emails/templates/password_change/body.html:2 +#: fittrackee/emails/templates/password_change/subject.txt:1 +msgid "Password changed" +msgstr "Password changed" + +#: fittrackee/emails/templates/password_change/body.html:3 +msgid "Your password has been changed." +msgstr "Your password has been changed." + +#: fittrackee/emails/templates/password_change/body.html:4 +#: fittrackee/emails/templates/password_change/body.txt:1 +msgid "The password for your FitTrackee account has been changed." +msgstr "The password for your FitTrackee account has been changed." + +#: fittrackee/emails/templates/password_change/body.html:5 +#: fittrackee/emails/templates/password_change/body.txt:4 +msgid "" +"If this password change wasn't initiated by you, please change your " +"password immediately or contact your administrator if your account is " +"locked." +msgstr "" +"If this password change wasn't initiated by you, please change your " +"password immediately or contact your administrator if your account is " +"locked." + +#: fittrackee/emails/templates/password_reset_request/body.html:2 +#: fittrackee/emails/templates/password_reset_request/subject.txt:1 +msgid "Password reset request" +msgstr "Password reset request" + +#: fittrackee/emails/templates/password_reset_request/body.html:3 +#, python-format +msgid "" +"Use this link to reset your password. The link is only valid for " +"%(expiration_delay)s." +msgstr "" +"Use this link to reset your password. The link is only valid for " +"%(expiration_delay)s." + +#: fittrackee/emails/templates/password_reset_request/body.html:4 +#: fittrackee/emails/templates/password_reset_request/body.txt:1 +msgid "You recently requested to reset your password for your FitTrackee account." +msgstr "You recently requested to reset your password for your FitTrackee account." + +#: fittrackee/emails/templates/password_reset_request/body.html:4 +msgid "Use the button below to reset it." +msgstr "Use the button below to reset it." + +#: fittrackee/emails/templates/password_reset_request/body.html:5 +#: fittrackee/emails/templates/password_reset_request/body.txt:2 +#, python-format +msgid "This password reset link is only valid for %(expiration_delay)s." +msgstr "This password reset link is only valid for %(expiration_delay)s." + +#: fittrackee/emails/templates/password_reset_request/body.html:13 +#: fittrackee/emails/templates/password_reset_request/body.txt:4 +msgid "Reset your password" +msgstr "Reset your password" + +#: fittrackee/emails/templates/password_reset_request/body.html:20 +#: fittrackee/emails/templates/password_reset_request/body.txt:7 +msgid "If you did not request a password reset, please ignore this email." +msgstr "If you did not request a password reset, please ignore this email." + +#: fittrackee/emails/templates/password_reset_request/body.txt:1 +msgid "Use the link below to reset it." +msgstr "Use the link below to reset it." + diff --git a/fittrackee/emails/translations/fr/LC_MESSAGES/messages.mo b/fittrackee/emails/translations/fr/LC_MESSAGES/messages.mo new file mode 100644 index 00000000..b4cf37d4 Binary files /dev/null and b/fittrackee/emails/translations/fr/LC_MESSAGES/messages.mo differ diff --git a/fittrackee/emails/translations/fr/LC_MESSAGES/messages.po b/fittrackee/emails/translations/fr/LC_MESSAGES/messages.po new file mode 100644 index 00000000..a0dbe7ea --- /dev/null +++ b/fittrackee/emails/translations/fr/LC_MESSAGES/messages.po @@ -0,0 +1,231 @@ +# French translations for PROJECT. +# Copyright (C) 2022 ORGANIZATION +# This file is distributed under the same license as the PROJECT project. +# FIRST AUTHOR , 2022. +# +msgid "" +msgstr "" +"Project-Id-Version: PROJECT VERSION\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2022-07-02 17:37+0200\n" +"PO-Revision-Date: 2022-07-02 17:27+0200\n" +"Last-Translator: FULL NAME \n" +"Language: fr\n" +"Language-Team: fr \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.10.3\n" + +#: fittrackee/emails/templates/layout.html:215 +#: fittrackee/emails/templates/layout.txt:1 +#, python-format +msgid "Hi %(username)s," +msgstr "Bonjour %(username)s," + +#: fittrackee/emails/templates/account_confirmation/body.txt:6 +#: fittrackee/emails/templates/email_update_to_current_email/body.txt:3 +#: fittrackee/emails/templates/email_update_to_new_email/body.txt:5 +#: fittrackee/emails/templates/layout.html:218 +#: fittrackee/emails/templates/password_change/body.txt:3 +#: fittrackee/emails/templates/password_reset_request/body.txt:6 +#, python-format +msgid "" +"For security, this request was received from a %(operating_system)s " +"device using %(browser_name)s." +msgstr "" +"Pour vérification, cette demande a été reçue à partir d'un appareil sous " +"%(operating_system)s, utilisant le navigateur %(browser_name)s." + +#: fittrackee/emails/templates/layout.html:221 +#: fittrackee/emails/templates/layout.txt:5 +msgid "Thanks," +msgstr "Merci," + +#: fittrackee/emails/templates/layout.html:222 +#: fittrackee/emails/templates/layout.txt:6 +msgid "The FitTrackee Team" +msgstr "L'équipe FitTrackee" + +#: fittrackee/emails/templates/account_confirmation/body.html:2 +#: fittrackee/emails/templates/account_confirmation/subject.txt:1 +msgid "Confirm your account" +msgstr "Confirmer votre inscription" + +#: fittrackee/emails/templates/account_confirmation/body.html:3 +msgid "Use this link to confirm your account." +msgstr "Utiliser ce lien pour confirmer votre inscription." + +#: fittrackee/emails/templates/account_confirmation/body.html:4 +#: fittrackee/emails/templates/account_confirmation/body.txt:1 +msgid "You have created an account on FitTrackee." +msgstr "Vous avez créé un compte sur FitTrackee." + +#: fittrackee/emails/templates/account_confirmation/body.html:4 +msgid "Use the button below to confirm your address email." +msgstr "Cliquez sur le bouton pour confirmer votre adresse email." + +#: fittrackee/emails/templates/account_confirmation/body.html:11 +#: fittrackee/emails/templates/account_confirmation/body.txt:4 +#: fittrackee/emails/templates/email_update_to_new_email/body.html:11 +#: fittrackee/emails/templates/email_update_to_new_email/body.txt:3 +msgid "Verify your email" +msgstr "Vérifier l'adresse email" + +#: fittrackee/emails/templates/account_confirmation/body.html:18 +#: fittrackee/emails/templates/account_confirmation/body.txt:7 +msgid "" +"If this account creation wasn't initiated by you, please ignore this " +"email." +msgstr "" +"Si vous n'êtes pas à l'origine de la création de ce compte, vous pouvez " +"ignorer cet e-mail." + +#: fittrackee/emails/templates/account_confirmation/body.html:22 +#: fittrackee/emails/templates/email_update_to_new_email/body.html:22 +#: fittrackee/emails/templates/password_reset_request/body.html:24 +msgid "" +"If you're having trouble with the button above, copy and paste the URL " +"below into your web browser." +msgstr "" +"Si vous avez des problèmes avec le bouton, vous pouvez copier et coller " +"le lien suivant dans votre navigateur." + +#: fittrackee/emails/templates/account_confirmation/body.txt:2 +msgid "Use the link below to confirm your address email." +msgstr "Cliquez sur le lien ci-dessous pour confirmer votre adresse email." + +#: fittrackee/emails/templates/email_update_to_current_email/body.html:2 +#: fittrackee/emails/templates/email_update_to_current_email/subject.txt:1 +msgid "Email changed" +msgstr "Adresse email modifiée" + +#: fittrackee/emails/templates/email_update_to_current_email/body.html:3 +msgid "Your email is being updated." +msgstr "Votre adresse email est en cours de mise à jour." + +#: fittrackee/emails/templates/email_update_to_current_email/body.html:4 +#: fittrackee/emails/templates/email_update_to_current_email/body.txt:1 +msgid "" +"You recently requested to change your email address for your FitTrackee " +"account to:" +msgstr "" +"Vous avez récemment demandé la modification de l'adresse email associée à" +" votre compte sur FitTrackee vers :" + +#: fittrackee/emails/templates/email_update_to_current_email/body.html:18 +#: fittrackee/emails/templates/email_update_to_current_email/body.txt:4 +msgid "" +"If this email change wasn't initiated by you, please change your password" +" immediately or contact your administrator if your account is locked." +msgstr "" +"Si vous n'êtes pas à l'origine de cette modification, veuillez changer " +"votre mot de passe immédiatement ou contacter l'administrateur si votre " +"compte est bloqué." + +#: fittrackee/emails/templates/email_update_to_new_email/body.html:2 +#: fittrackee/emails/templates/email_update_to_new_email/subject.txt:1 +msgid "Confirm email change" +msgstr "Confirmer le changement d'adresse email" + +#: fittrackee/emails/templates/email_update_to_new_email/body.html:3 +msgid "Use this link to confirm email change." +msgstr "Confirmer le changement d'adresse email." + +#: fittrackee/emails/templates/email_update_to_new_email/body.html:4 +#: fittrackee/emails/templates/email_update_to_new_email/body.txt:1 +msgid "" +"You recently requested to change your email address for your FitTrackee " +"account." +msgstr "" +"Vous avez récemment demandé la modification de l'adresse email associée à" +" votre compte sur FitTrackee." + +#: fittrackee/emails/templates/email_update_to_new_email/body.html:4 +msgid "Use the button below to confirm this address." +msgstr "Cliquez sur le bouton ci-dessous pour confirmer cette adresse email." + +#: fittrackee/emails/templates/email_update_to_new_email/body.html:18 +#: fittrackee/emails/templates/email_update_to_new_email/body.txt:6 +msgid "If this email change wasn't initiated by you, please ignore this email." +msgstr "" +"Si vous n'êtes pas à l'origine de cette modification, vous pouvez ignorer" +" cet e-mail." + +#: fittrackee/emails/templates/email_update_to_new_email/body.txt:1 +msgid "Use the link below to confirm this address." +msgstr "Cliquez sur le lien ci-dessous pour confirmer cette adresse email." + +#: fittrackee/emails/templates/password_change/body.html:2 +#: fittrackee/emails/templates/password_change/subject.txt:1 +msgid "Password changed" +msgstr "Mot de passe modifié" + +#: fittrackee/emails/templates/password_change/body.html:3 +msgid "Your password has been changed." +msgstr "Votre mot de passe a été modifié." + +#: fittrackee/emails/templates/password_change/body.html:4 +#: fittrackee/emails/templates/password_change/body.txt:1 +msgid "The password for your FitTrackee account has been changed." +msgstr "Le mot de passe de votre compte FitTrackee a été modifié." + +#: fittrackee/emails/templates/password_change/body.html:5 +#: fittrackee/emails/templates/password_change/body.txt:4 +msgid "" +"If this password change wasn't initiated by you, please change your " +"password immediately or contact your administrator if your account is " +"locked." +msgstr "" +"Si vous n'êtes pas à l'origine de cette modification, veuillez changer " +"votre mot de passe immédiatement ou contacter l'administrateur si votre " +"compte est bloqué." + +#: fittrackee/emails/templates/password_reset_request/body.html:2 +#: fittrackee/emails/templates/password_reset_request/subject.txt:1 +msgid "Password reset request" +msgstr "Réinitialiser votre mot de passe" + +#: fittrackee/emails/templates/password_reset_request/body.html:3 +#, python-format +msgid "" +"Use this link to reset your password. The link is only valid for " +"%(expiration_delay)s." +msgstr "" +"Utiliser ce lien pour réinitialiser le mot de passe. Ce lien n'est valide" +" que pendant %(expiration_delay)s." + +#: fittrackee/emails/templates/password_reset_request/body.html:4 +#: fittrackee/emails/templates/password_reset_request/body.txt:1 +msgid "You recently requested to reset your password for your FitTrackee account." +msgstr "" +"Vous avez récemment demandé la réinitialisation du mot de passe de votre " +"compte sur FitTrackee." + +#: fittrackee/emails/templates/password_reset_request/body.html:4 +msgid "Use the button below to reset it." +msgstr "Cliquez sur le bouton pour le réinitialiser." + +#: fittrackee/emails/templates/password_reset_request/body.html:5 +#: fittrackee/emails/templates/password_reset_request/body.txt:2 +#, python-format +msgid "This password reset link is only valid for %(expiration_delay)s." +msgstr "Ce lien n'est valide que pendant %(expiration_delay)s." + +#: fittrackee/emails/templates/password_reset_request/body.html:13 +#: fittrackee/emails/templates/password_reset_request/body.txt:4 +msgid "Reset your password" +msgstr "Réinitialiser le mot de passe" + +#: fittrackee/emails/templates/password_reset_request/body.html:20 +#: fittrackee/emails/templates/password_reset_request/body.txt:7 +msgid "If you did not request a password reset, please ignore this email." +msgstr "" +"Si vous n'avez pas demandé de réinitialisation, vous pouvez ignorer cet " +"e-mail." + +#: fittrackee/emails/templates/password_reset_request/body.txt:1 +msgid "Use the link below to reset it." +msgstr "Cliquez sur le lien ci-dessous pour le réinitialiser." + diff --git a/fittrackee/tests/emails/template_results/email_account_confirmation.py b/fittrackee/tests/emails/template_results/email_account_confirmation.py index 7d8baeef..94a52ad9 100644 --- a/fittrackee/tests/emails/template_results/email_account_confirmation.py +++ b/fittrackee/tests/emails/template_results/email_account_confirmation.py @@ -2,7 +2,8 @@ expected_en_text_body = """Hi test, -You have created an account on FitTrackee. Use the link below to confirm your address email. +You have created an account on FitTrackee. +Use the link below to confirm your address email. Verify your email: http://localhost/account-confirmation?token=xxx @@ -18,7 +19,7 @@ expected_fr_text_body = """Bonjour test, Vous avez créé un compte sur FitTrackee. Cliquez sur le lien ci-dessous pour confirmer votre adresse email. -Vérifier l'adresse email : http://localhost/account-confirmation?token=xxx +Vérifier l'adresse email: http://localhost/account-confirmation?token=xxx Pour vérification, cette demande a été reçue à partir d'un appareil sous Linux, utilisant le navigateur Firefox. Si vous n'êtes pas à l'origine de la création de ce compte, vous pouvez ignorer cet e-mail. @@ -70,7 +71,7 @@ expected_en_html_body = """ @@ -119,9 +120,7 @@ expected_fr_html_body = """