From 0d591dcadc7db41a127100d28c3556e539469692 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Barrag=C3=A1n=20Merino?= Date: Wed, 14 Jan 2015 21:45:15 +0100 Subject: [PATCH] Translate and fix all emails --- requirements.txt | 2 +- settings/common.py | 4 + settings/sr.py | 29 ++ taiga/base/management/commands/test_emails.py | 70 ++- .../{updates.jinja => base-body-html.jinja} | 51 +- .../{hero.jinja => hero-body-html.jinja} | 34 +- .../{base.jinja => updates-body-html.jinja} | 70 ++- .../templates/emails/updates-body-text.jinja | 15 + taiga/export_import/tasks.py | 20 +- .../emails/dump_project-body-html.jinja | 38 +- .../emails/dump_project-body-text.jinja | 12 +- .../emails/dump_project-subject.jinja | 2 +- .../emails/export_error-body-html.jinja | 14 + .../emails/export_error-body-text.jinja | 13 + .../emails/export_error-subject.jinja | 1 + .../export_import_error-body-html.jinja | 14 - .../export_import_error-body-text.jinja | 7 - .../emails/export_import_error-subject.jinja | 1 - .../emails/import_error-body-html.jinja | 13 + .../emails/import_error-body-text.jinja | 12 + .../emails/import_error-subject.jinja | 1 + .../emails/load_dump-body-html.jinja | 36 +- .../emails/load_dump-body-text.jinja | 13 +- .../templates/emails/load_dump-subject.jinja | 2 +- .../feedback_notification-body-html.jinja | 452 +----------------- .../feedback_notification-body-text.jinja | 11 +- .../feedback_notification-subject.jinja | 4 +- .../emails/includes/fields_diff-html.jinja | 42 +- .../emails/includes/fields_diff-text.jinja | 16 +- .../issues/issue-change-body-html.jinja | 51 +- .../issues/issue-change-body-text.jinja | 29 +- .../emails/issues/issue-change-subject.jinja | 6 +- .../issues/issue-create-body-html.jinja | 30 +- .../issues/issue-create-body-text.jinja | 16 +- .../emails/issues/issue-create-subject.jinja | 6 +- .../issues/issue-delete-body-html.jinja | 24 +- .../issues/issue-delete-body-text.jinja | 12 +- .../emails/issues/issue-delete-subject.jinja | 6 +- .../milestone-change-body-html.jinja | 47 +- .../milestone-change-body-text.jinja | 29 +- .../milestones/milestone-change-subject.jinja | 5 +- .../milestone-create-body-html.jinja | 37 +- .../milestone-create-body-text.jinja | 18 +- .../milestones/milestone-create-subject.jinja | 5 +- .../milestone-delete-body-html.jinja | 33 +- .../milestone-delete-body-text.jinja | 14 +- .../milestones/milestone-delete-subject.jinja | 5 +- .../projects/project-change-body-html.jinja | 36 -- .../projects/project-change-body-text.jinja | 17 - .../projects/project-change-subject.jinja | 1 - .../projects/project-create-body-html.jinja | 27 -- .../projects/project-create-body-text.jinja | 7 - .../projects/project-create-subject.jinja | 1 - .../projects/project-delete-body-html.jinja | 24 - .../projects/project-delete-body-text.jinja | 2 - .../projects/project-delete-subject.jinja | 1 - .../emails/tasks/task-change-body-html.jinja | 51 +- .../emails/tasks/task-change-body-text.jinja | 30 +- .../emails/tasks/task-change-subject.jinja | 6 +- .../emails/tasks/task-create-body-html.jinja | 31 +- .../emails/tasks/task-create-body-text.jinja | 16 +- .../emails/tasks/task-create-subject.jinja | 6 +- .../emails/tasks/task-delete-body-html.jinja | 24 +- .../emails/tasks/task-delete-body-text.jinja | 13 +- .../emails/tasks/task-delete-subject.jinja | 6 +- .../userstory-change-body-html.jinja | 51 +- .../userstory-change-body-text.jinja | 29 +- .../userstory-change-subject.jinja | 6 +- .../userstory-create-body-html.jinja | 30 +- .../userstory-create-body-text.jinja | 17 +- .../userstory-create-subject.jinja | 6 +- .../userstory-delete-body-html.jinja | 25 +- .../userstory-delete-body-text.jinja | 14 +- .../userstory-delete-subject.jinja | 6 +- .../wiki/wikipage-change-body-html.jinja | 51 +- .../wiki/wikipage-change-body-text.jinja | 26 +- .../emails/wiki/wikipage-change-subject.jinja | 4 +- .../wiki/wikipage-create-body-html.jinja | 29 +- .../wiki/wikipage-create-body-text.jinja | 17 +- .../emails/wiki/wikipage-create-subject.jinja | 4 +- .../wiki/wikipage-delete-body-html.jinja | 11 +- .../wiki/wikipage-delete-body-text.jinja | 13 +- .../emails/wiki/wikipage-delete-subject.jinja | 4 +- .../membership_invitation-body-html.jinja | 40 +- .../membership_invitation-body-text.jinja | 29 +- .../membership_invitation-subject.jinja | 4 +- .../membership_notification-body-html.jinja | 25 +- .../membership_notification-body-text.jinja | 10 +- .../membership_notification-subject.jinja | 4 +- .../emails/change_email-body-html.jinja | 23 +- .../emails/change_email-body-text.jinja | 7 +- .../emails/change_email-subject.jinja | 2 +- .../emails/password_recovery-body-html.jinja | 24 +- .../emails/password_recovery-body-text.jinja | 7 +- .../emails/password_recovery-subject.jinja | 2 +- .../emails/registered_user-body-html.jinja | 24 +- .../emails/registered_user-body-text.jinja | 13 +- .../emails/registered_user-subject.jinja | 2 +- 98 files changed, 863 insertions(+), 1367 deletions(-) create mode 100644 settings/sr.py rename taiga/base/templates/emails/{updates.jinja => base-body-html.jinja} (87%) rename taiga/base/templates/emails/{hero.jinja => hero-body-html.jinja} (85%) rename taiga/base/templates/emails/{base.jinja => updates-body-html.jinja} (74%) create mode 100644 taiga/base/templates/emails/updates-body-text.jinja create mode 100644 taiga/export_import/templates/emails/export_error-body-html.jinja create mode 100644 taiga/export_import/templates/emails/export_error-body-text.jinja create mode 100644 taiga/export_import/templates/emails/export_error-subject.jinja delete mode 100644 taiga/export_import/templates/emails/export_import_error-body-html.jinja delete mode 100644 taiga/export_import/templates/emails/export_import_error-body-text.jinja delete mode 100644 taiga/export_import/templates/emails/export_import_error-subject.jinja create mode 100644 taiga/export_import/templates/emails/import_error-body-html.jinja create mode 100644 taiga/export_import/templates/emails/import_error-body-text.jinja create mode 100644 taiga/export_import/templates/emails/import_error-subject.jinja delete mode 100644 taiga/projects/notifications/templates/emails/projects/project-change-body-html.jinja delete mode 100644 taiga/projects/notifications/templates/emails/projects/project-change-body-text.jinja delete mode 100644 taiga/projects/notifications/templates/emails/projects/project-change-subject.jinja delete mode 100644 taiga/projects/notifications/templates/emails/projects/project-create-body-html.jinja delete mode 100644 taiga/projects/notifications/templates/emails/projects/project-create-body-text.jinja delete mode 100644 taiga/projects/notifications/templates/emails/projects/project-create-subject.jinja delete mode 100644 taiga/projects/notifications/templates/emails/projects/project-delete-body-html.jinja delete mode 100644 taiga/projects/notifications/templates/emails/projects/project-delete-body-text.jinja delete mode 100644 taiga/projects/notifications/templates/emails/projects/project-delete-subject.jinja diff --git a/requirements.txt b/requirements.txt index 3b91231c..71fb578a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -19,7 +19,7 @@ Markdown==2.4.1 fn==0.2.13 diff-match-patch==20121119 requests==2.4.1 - +django-sr==0.0.4 easy-thumbnails==2.1 celery==3.1.17 redis==2.10.3 diff --git a/settings/common.py b/settings/common.py index 76c6b14b..f6ec3a8a 100644 --- a/settings/common.py +++ b/settings/common.py @@ -203,6 +203,7 @@ INSTALLED_APPS = [ "djmail", "django_jinja", "django_jinja.contrib._humanize", + "sr", "easy_thumbnails", "raven.contrib.django.raven_compat", "django_transactional_cleanup", @@ -370,6 +371,9 @@ EXPORTS_TTL = 60 * 60 * 24 # 24 hours CELERY_ENABLED = False WEBHOOKS_ENABLED = False +from .sr import * + + # NOTE: DON'T INSERT MORE SETTINGS AFTER THIS LINE TEST_RUNNER="django.test.runner.DiscoverRunner" diff --git a/settings/sr.py b/settings/sr.py new file mode 100644 index 00000000..cd1bc113 --- /dev/null +++ b/settings/sr.py @@ -0,0 +1,29 @@ +# Copyright (C) 2015 Andrey Antukh +# Copyright (C) 2015 Jesús Espino +# Copyright (C) 2015 David Barragán +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + + +SR = { + "taigaio_url": "https://taiga.io", + "social": { + "twitter_url": "https://twitter.com/taigaio", + "github_url": "https://github.com/taigaio", + }, + "support": { + "url": "https://taiga.io/support", + "email": "support@taiga.io", + "mailing_list": "https://groups.google.com/forum/#!forum/taigaio", + } +} diff --git a/taiga/base/management/commands/test_emails.py b/taiga/base/management/commands/test_emails.py index d8e021cd..fbe7a7dd 100644 --- a/taiga/base/management/commands/test_emails.py +++ b/taiga/base/management/commands/test_emails.py @@ -16,6 +16,7 @@ import datetime +from django.db.models.loading import get_model from django.core.management.base import BaseCommand, CommandError from django.utils import timezone @@ -23,6 +24,7 @@ from djmail.template_mail import MagicMailBuilder, InlineCSSTemplateMail from taiga.projects.models import Project, Membership from taiga.projects.history.models import HistoryEntry +from taiga.projects.history.services import get_history_queryset_by_model_instance from taiga.users.models import User @@ -45,7 +47,11 @@ class Command(BaseCommand): email.send() # Membership invitation - context = {"membership": Membership.objects.order_by("?").filter(user__isnull=True).first()} + membership = Membership.objects.order_by("?").filter(user__isnull=True).first() + membership.invited_by = User.objects.all().order_by("?").first() + membership.invitation_extra_text = "Text example, Text example,\nText example,\n\nText example" + + context = {"membership": membership} email = mbuilder.membership_invitation(test_email, context) email.send() @@ -82,10 +88,13 @@ class Command(BaseCommand): # Export/Import emails context = { "user": User.objects.all().order_by("?").first(), + "project": Project.objects.all().order_by("?").first(), "error_subject": "Error generating project dump", "error_message": "Error generating project dump", } - email = mbuilder.export_import_error(test_email, context) + email = mbuilder.export_error(test_email, context) + email.send() + email = mbuilder.import_error(test_email, context) email.send() deletion_date = timezone.now() + datetime.timedelta(seconds=60*60*24) @@ -107,28 +116,24 @@ class Command(BaseCommand): # Notification emails notification_emails = [ - "issues/issue-change", - "issues/issue-create", - "issues/issue-delete", - "milestones/milestone-change", - "milestones/milestone-create", - "milestones/milestone-delete", - "projects/project-change", - "projects/project-create", - "projects/project-delete", - "tasks/task-change", - "tasks/task-create", - "tasks/task-delete", - "userstories/userstory-change", - "userstories/userstory-create", - "userstories/userstory-delete", - "wiki/wikipage-change", - "wiki/wikipage-create", - "wiki/wikipage-delete", + ("issues.Issue", "issues/issue-change"), + ("issues.Issue", "issues/issue-create"), + ("issues.Issue", "issues/issue-delete"), + ("tasks.Task", "tasks/task-change"), + ("tasks.Task", "tasks/task-create"), + ("tasks.Task", "tasks/task-delete"), + ("userstories.UserStory", "userstories/userstory-change"), + ("userstories.UserStory", "userstories/userstory-create"), + ("userstories.UserStory", "userstories/userstory-delete"), + ("milestones.Milestone", "milestones/milestone-change"), + ("milestones.Milestone", "milestones/milestone-create"), + ("milestones.Milestone", "milestones/milestone-delete"), + ("wiki.WikiPage", "wiki/wikipage-change"), + ("wiki.WikiPage", "wiki/wikipage-create"), + ("wiki.WikiPage", "wiki/wikipage-delete"), ] context = { - "snapshot": HistoryEntry.objects.filter(is_snapshot=True).order_by("?")[0].snapshot, "project": Project.objects.all().order_by("?").first(), "changer": User.objects.all().order_by("?").first(), "history_entries": HistoryEntry.objects.all().order_by("?")[0:5], @@ -136,6 +141,27 @@ class Command(BaseCommand): } for notification_email in notification_emails: - cls = type("InlineCSSTemplateMail", (InlineCSSTemplateMail,), {"name": notification_email}) + model = get_model(*notification_email[0].split(".")) + snapshot = { + "subject": "Tests subject", + "ref": 123123, + "name": "Tests name", + "slug": "test-slug" + } + queryset = model.objects.all().order_by("?") + for obj in queryset: + end = False + entries = get_history_queryset_by_model_instance(obj).filter(is_snapshot=True).order_by("?") + + for entry in entries: + if entry.snapshot: + snapshot = entry.snapshot + end = True + break + if end: + break + context["snapshot"] = snapshot + + cls = type("InlineCSSTemplateMail", (InlineCSSTemplateMail,), {"name": notification_email[1]}) email = cls() email.send(test_email, context) diff --git a/taiga/base/templates/emails/updates.jinja b/taiga/base/templates/emails/base-body-html.jinja similarity index 87% rename from taiga/base/templates/emails/updates.jinja rename to taiga/base/templates/emails/base-body-html.jinja index 65a16fa2..1f6c23a1 100644 --- a/taiga/base/templates/emails/updates.jinja +++ b/taiga/base/templates/emails/base-body-html.jinja @@ -1,11 +1,9 @@ -{% set home_url = resolve_front_url("home") %} -{% set home_url_name = "Taiga" %} - [Taiga] Jesús Espino updated the US #1680 "Rediseño de emails" + {{ _("Taiga") }} - - -
- - - - -
- - - - - - - - -
- - - - - -
- - - Taiga logo - +{% extends "emails/base-body-html.jinja" %} +{% block body %} + {% trans full_name=feedback_entry.full_name|safe, email=feedback_entry.email %}

Feedback

-

Taiga has received feedback from {{ feedback_entry.full_name }} <{{ feedback_entry.email }}>

+

Taiga has received feedback from {{ full_name }} <{{ email }}>

+ {% endtrans %} + + {% trans comment=feedback_entry.comment|linebreaksbr %} +

Comment

+

{{ comment }}

+ {% endtrans %} + + {% if extra %} - - - - - {% if extra %} - {% endif %}
-

Comment

-

{{ feedback_entry.comment }}

-
-

Extra:

+

{{ _("Extra info") }}

{% for k, v in extra.items() %}
{{ k }}
@@ -417,35 +24,6 @@
- -
- -
- - - - - -
- - - -
- -
- -
-
- - + {% endif %} +{% endblock %} diff --git a/taiga/feedback/templates/emails/feedback_notification-body-text.jinja b/taiga/feedback/templates/emails/feedback_notification-body-text.jinja index fd23785b..414501ae 100644 --- a/taiga/feedback/templates/emails/feedback_notification-body-text.jinja +++ b/taiga/feedback/templates/emails/feedback_notification-body-text.jinja @@ -1,10 +1,11 @@ ---------- -- From: {{ feedback_entry.full_name }} [{{ feedback_entry.email }}] +{% trans full_name=feedback_entry.full_name|safe, email=feedback_entry.email, comment=feedback_entry.comment %}--------- +- From: {{ full_name }} <{{ email }}> --------- - Comment: -{{ feedback_entry.comment }} ----------{% if extra %} -- Extra: +{{ comment }} +---------{% endtrans %} +{% if extra %} +{{ _("- Extra info:") }} {% for k, v in extra.items() %} - {{ k }}: {{ v }} {% endfor %} diff --git a/taiga/feedback/templates/emails/feedback_notification-subject.jinja b/taiga/feedback/templates/emails/feedback_notification-subject.jinja index 8f0f4b9c..e93fdbd1 100644 --- a/taiga/feedback/templates/emails/feedback_notification-subject.jinja +++ b/taiga/feedback/templates/emails/feedback_notification-subject.jinja @@ -1 +1,3 @@ -[Taiga] Feedback from {{ feedback_entry.full_name }} <{{ feedback_entry.email }}> +{% trans full_name=feedback_entry.full_name|safe, email=feedback_entry.email %} +[Taiga] Feedback from {{ full_name }} <{{ email }}> +{% endtrans %} diff --git a/taiga/projects/history/templates/emails/includes/fields_diff-html.jinja b/taiga/projects/history/templates/emails/includes/fields_diff-html.jinja index 91484315..6d3728e4 100644 --- a/taiga/projects/history/templates/emails/includes/fields_diff-html.jinja +++ b/taiga/projects/history/templates/emails/includes/fields_diff-html.jinja @@ -16,16 +16,16 @@ {% for role, points in values.items() %} -

{{ role }} role points

+

{% trans role=role %}{{ role }} role points{% endtrans %}

- from
+ {{ _("from") }}
{{ points.1 }} - to
+ {{ _("to") }}
{{ points.0 }} @@ -40,11 +40,11 @@

{{ _("Added new attachment") }}

- {{ att.filename|linebreaksbr }} + {{ att.filename }}

{% if att.description %} -

{{ att.description|linebreaksbr }}

+

{{ att.description }}

{% endif %} @@ -61,9 +61,9 @@ {{ att.filename|linebreaksbr }} {% if att.changes.is_deprecated %} {% if att.changes.is_deprecated.1 %} - [deprecated] + [{{ _("deprecated") }}] {% else %} - [not deprecated] + [{{ _("not deprecated") }}] {% endif %} {% endif %} @@ -94,21 +94,21 @@

{{ field_name }}

- from
- {{ ', '.join(values.0)|linebreaksbr }} + {{ _("from") }}
+ {{ ', '.join(values.0) }} - to
- {{ ', '.join(values.1)|linebreaksbr }} + {{ _("to") }}
+ {{ ', '.join(values.1) }} {# DESCRIPTIONS #} {% elif field_name in ["description_diff"] %} -

Description diff

+

{{ _("Description diff") }}

{{ mdrender(project, values.1) }}

@@ -116,7 +116,7 @@ {% elif field_name in ["content_diff"] %} -

Content diff

+

{{ _("Content diff") }}

{{ mdrender(project, values.1) }}

@@ -128,10 +128,10 @@ {% if values.0 != None and values.0 != "" %} - from
- {{ values.0|linebreaksbr }} + {{ _("from") }}
+ {{ values.0 }} {% else %} - from
+ {{ _("from") }}
{{ _("Unassigned") }} {% endif %} @@ -139,10 +139,10 @@ {% if values.1 != None and values.1 != "" %} - to
- {{ values.1|linebreaksbr }} + {{ _("to") }}
+ {{ values.1 }} {% else %} - to
+ {{ _("to") }}
{{ _("Unassigned") }} {% endif %} @@ -155,13 +155,13 @@

{{ field_name }}

- from
+ {{ _("from") }}
{{ values.1|linebreaksbr }} - to
+ {{ _("to") }}
{{ values.0|linebreaksbr }} diff --git a/taiga/projects/history/templates/emails/includes/fields_diff-text.jinja b/taiga/projects/history/templates/emails/includes/fields_diff-text.jinja index 88d80fbc..d53a205b 100644 --- a/taiga/projects/history/templates/emails/includes/fields_diff-text.jinja +++ b/taiga/projects/history/templates/emails/includes/fields_diff-text.jinja @@ -14,43 +14,43 @@ {# POINTS #} {% if field_name == "points" %} {% for role, points in values.items() %} - * {{ role }} to: {{ points.1|linebreaksbr }} from: {{ points.0|linebreaksbr }} + * {{ role }} {{ _("to:") }} {{ points.1 }} {{ _("from:") }} {{ points.0 }} {% endfor %} {# ATTACHMENTS #} {% elif field_name == "attachments" %} {% if values.new %} * {{ _("Added") }}: {% for att in values['new']%} - - {{ att.filename|linebreaksbr }} + - {{ att.filename }} {% endfor %} {% endif %} {% if values.changed %} * {{ _("Changed") }} {% for att in values['changed'] %} - - {{ att.filename|linebreaksbr }} + - {{ att.filename }} {% endfor %} {% endif %} {% if values.deleted %} * {{ _("Deleted") }} {% for att in values['deleted']%} - - {{ att.filename|linebreaksbr }} + - {{ att.filename }} {% endfor %} {% endif %} {# TAGS AND WATCHERS #} {% elif field_name in ["tags", "watchers"] %} - * to: {{ ', '.join(values.1)|linebreaksbr }} + * {{ _("to:") }} {{ ', '.join(values.1) }} {% if values.0 %} - * from: {{ ', '.join(values.0)|linebreaksbr }} + * {{ _("from:") }} {{ ', '.join(values.0) }} {% endif %} {# * #} {% else %} {% if values.1 != None and values.1 != "" %} - * to: {{ values.1|linebreaksbr }} + * {{ _("to:") }} {{ values.1|linebreaksbr }} {% endif %} {% if values.0 != None and values.0 != "" %} - * from: {{ values.0|linebreaksbr }} + * {{ _("from:") }} {{ values.0|linebreaksbr }} {% endif %} {% endif %} {% endif %} diff --git a/taiga/projects/notifications/templates/emails/issues/issue-change-body-html.jinja b/taiga/projects/notifications/templates/emails/issues/issue-change-body-html.jinja index 15d72016..12c1178d 100644 --- a/taiga/projects/notifications/templates/emails/issues/issue-change-body-html.jinja +++ b/taiga/projects/notifications/templates/emails/issues/issue-change-body-html.jinja @@ -1,42 +1,15 @@ -{% extends "emails/updates.jinja" %} - -{% set final_url = resolve_front_url("issue", project.slug, snapshot.ref) %} -{% set final_url_name = "Taiga - View issue #{0}".format(snapshot.ref) %} +{% extends "emails/updates-body-html.jinja" %} {% block head %} -

Issue #{{ snapshot.ref }} {{ snapshot.subject }} updated

-

Hello {{ user.get_full_name() }},
{{ changer.get_full_name() }} has updated an issue on {{ project.name }}

- See Issue -{% endblock %} - -{% block body %} - -

Updates

- - {% for entry in history_entries%} - {% if entry.comment %} - - -

Comment

-

{{ mdrender(project, entry.comment) }}

- - - {% endif %} - {% set changed_fields = entry.values_diff %} - {% if changed_fields %} - {% include "emails/includes/fields_diff-html.jinja" %} - {% endif %} - {% endfor %} -{% endblock %} - -{% block footer %} - Copyright © 2014 Taiga Agile, LLC, All rights reserved. -
- Contact us: -
- Support: - support@taiga.io -
- Our mailing address is: - https://groups.google.com/forum/#!forum/taigaio + {% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe, + url=resolve_front_url("issue", project.slug, snapshot.ref) %} +

Issue updated

+

Hello {{ user }},
{{ changer }} has updated an issue on {{ project }}

+

Issue #{{ ref }} {{ subject }}

+ See issue + {% endtrans %} {% endblock %} diff --git a/taiga/projects/notifications/templates/emails/issues/issue-change-body-text.jinja b/taiga/projects/notifications/templates/emails/issues/issue-change-body-text.jinja index 8c2ddbff..98935cea 100644 --- a/taiga/projects/notifications/templates/emails/issues/issue-change-body-text.jinja +++ b/taiga/projects/notifications/templates/emails/issues/issue-change-body-text.jinja @@ -1,16 +1,13 @@ -{% set final_url = resolve_front_url("issue", project.slug, snapshot.ref) %} -{% set final_url_name = "Taiga - View issue #{0}".format(snapshot.ref) %} - -Issue #{{ snapshot.ref }} {{ snapshot.subject }} updated -Hello {{ user.get_full_name() }}, {{ changer.get_full_name() }} has updated an issue on {{ project.name }} -See issue in Taiga {{ final_url_name }} ({{ final_url }}) - -{% for entry in history_entries%} - {% if entry.comment %} - Comment: {{ entry.comment|linebreaksbr }} - {% endif %} - {% set changed_fields = entry.values_diff %} - {% if changed_fields %} - {% include "emails/includes/fields_diff-text.jinja" %} - {% endif %} -{% endfor %} +{% extends "emails/updates-body-text.jinja" %} +{% block head %} +{% trans user=user.get_full_name(), + changer=changer.get_full_name()|safe, + project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe, + url=resolve_front_url("issue", project.slug, snapshot.ref) %} +Issue updated +Hello {{ user }}, {{ changer }} has updated an issue on {{ project }} +See issue #{{ ref }} {{ subject }} at {{ url }} +{% endtrans %} +{% endblock %} diff --git a/taiga/projects/notifications/templates/emails/issues/issue-change-subject.jinja b/taiga/projects/notifications/templates/emails/issues/issue-change-subject.jinja index e6f72cb8..ec535a22 100644 --- a/taiga/projects/notifications/templates/emails/issues/issue-change-subject.jinja +++ b/taiga/projects/notifications/templates/emails/issues/issue-change-subject.jinja @@ -1 +1,5 @@ -[{{ project.name|safe }}] Updated the issue #{{ snapshot.ref|safe }} "{{ snapshot.subject|safe }}" +{% trans project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe %} +[{{ project }}] Updated the issue #{{ ref }} "{{ subject }}" +{% endtrans %} diff --git a/taiga/projects/notifications/templates/emails/issues/issue-create-body-html.jinja b/taiga/projects/notifications/templates/emails/issues/issue-create-body-html.jinja index 182d31de..63ae6018 100644 --- a/taiga/projects/notifications/templates/emails/issues/issue-create-body-html.jinja +++ b/taiga/projects/notifications/templates/emails/issues/issue-create-body-html.jinja @@ -1,24 +1,16 @@ -{% extends "emails/base.jinja" %} - -{% set final_url = resolve_front_url("issue", project.slug, snapshot.ref) %} -{% set final_url_name = "Taiga - View issue #{0}".format(snapshot.ref) %} +{% extends "emails/base-body-html.jinja" %} {% block body %} + {% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe, + url=resolve_front_url("issue", project.slug, snapshot.ref) %}

New issue created

-

Hello {{ user.get_full_name() }},
{{ changer.get_full_name() }} has created a new issue on {{ project.name }}

-

Issue #{{ snapshot.ref }} {{ snapshot.subject }}

- See issue +

Hello {{ user }},
{{ changer }} has created a new issue on {{ project }}

+

Issue #{{ ref }} {{ subject }}

+ See issue

The Taiga Team

-{% endblock %} - -{% block footer %} - Copyright © 2014 Taiga Agile, LLC, All rights reserved. -
- Contact us: -
- Support: - support@taiga.io -
- Our mailing address is: - https://groups.google.com/forum/#!forum/taigaio + {% endtrans %} {% endblock %} diff --git a/taiga/projects/notifications/templates/emails/issues/issue-create-body-text.jinja b/taiga/projects/notifications/templates/emails/issues/issue-create-body-text.jinja index 1f67040e..0a64b921 100644 --- a/taiga/projects/notifications/templates/emails/issues/issue-create-body-text.jinja +++ b/taiga/projects/notifications/templates/emails/issues/issue-create-body-text.jinja @@ -1,7 +1,13 @@ -{% set final_url = resolve_front_url("issue", project.slug, snapshot.ref) %} -{% set final_url_name = "Taiga - View issue #{0}".format(snapshot.ref) %} - +{% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe, + url=resolve_front_url("issue", project.slug, snapshot.ref) %} New issue created -Hello {{ user.get_full_name() }}, {{ changer.get_full_name() }} has created a new issue on {{ project.name }} -See issue #{{ snapshot.ref }} {{ snapshot.subject }} at {{ final_url_name }} ({{ final_url }}) +Hello {{ user }}, {{ changer }} has created a new issue on {{ project }} +See issue #{{ ref }} {{ subject }} at {{ url }} + +--- The Taiga Team +{% endtrans %} diff --git a/taiga/projects/notifications/templates/emails/issues/issue-create-subject.jinja b/taiga/projects/notifications/templates/emails/issues/issue-create-subject.jinja index 93ea5b7d..315ecf1f 100644 --- a/taiga/projects/notifications/templates/emails/issues/issue-create-subject.jinja +++ b/taiga/projects/notifications/templates/emails/issues/issue-create-subject.jinja @@ -1 +1,5 @@ -[{{ project.name|safe }}] Created the issue #{{ snapshot.ref|safe }} "{{ snapshot.subject|safe }}" +{% trans project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe %} +[{{ project }}] Created the issue #{{ ref }} "{{ subject }}" +{% endtrans %} diff --git a/taiga/projects/notifications/templates/emails/issues/issue-delete-body-html.jinja b/taiga/projects/notifications/templates/emails/issues/issue-delete-body-html.jinja index d50874be..1c832091 100644 --- a/taiga/projects/notifications/templates/emails/issues/issue-delete-body-html.jinja +++ b/taiga/projects/notifications/templates/emails/issues/issue-delete-body-html.jinja @@ -1,20 +1,14 @@ -{% extends "emails/base.jinja" %} +{% extends "emails/base-body-html.jinja" %} {% block body %} + {% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe %}

Issue deleted

-

Hello {{ user.get_full_name() }},
{{ changer.get_full_name() }} has deleted an issue on {{ project.name }}

-

Issue #{{ snapshot.ref }} {{ snapshot.subject }}

+

Hello {{ user }},
{{ changer }} has deleted an issue on {{ project }}

+

Issue #{{ ref }} {{ subject }}

The Taiga Team

-{% endblock %} - -{% block footer %} - Copyright © 2014 Taiga Agile, LLC, All rights reserved. -
- Contact us: -
- Support: - support@taiga.io -
- Our mailing address is: - https://groups.google.com/forum/#!forum/taigaio + {% endtrans %} {% endblock %} diff --git a/taiga/projects/notifications/templates/emails/issues/issue-delete-body-text.jinja b/taiga/projects/notifications/templates/emails/issues/issue-delete-body-text.jinja index 26dd8ef8..dd4d6cda 100644 --- a/taiga/projects/notifications/templates/emails/issues/issue-delete-body-text.jinja +++ b/taiga/projects/notifications/templates/emails/issues/issue-delete-body-text.jinja @@ -1,4 +1,12 @@ +{% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe %} Issue deleted -Hello {{ user.get_full_name() }}, {{ changer.get_full_name() }} has deleted an issue on {{ project.name }} -Issue #{{ snapshot.ref }} {{ snapshot.subject }} +Hello {{ user }}, {{ changer }} has deleted an issue on {{ project }} +Issue #{{ ref }} {{ subject }} + +--- The Taiga Team +{% endtrans %} diff --git a/taiga/projects/notifications/templates/emails/issues/issue-delete-subject.jinja b/taiga/projects/notifications/templates/emails/issues/issue-delete-subject.jinja index 87d1c86a..b736414e 100644 --- a/taiga/projects/notifications/templates/emails/issues/issue-delete-subject.jinja +++ b/taiga/projects/notifications/templates/emails/issues/issue-delete-subject.jinja @@ -1 +1,5 @@ -[{{ project.name|safe }}] Deleted the issue #{{ snapshot.ref|safe }} "{{ snapshot.subject|safe }}" +{% trans project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe %} +[{{ project }}] Deleted the issue #{{ ref }} "{{ subject }}" +{% endtrans %} diff --git a/taiga/projects/notifications/templates/emails/milestones/milestone-change-body-html.jinja b/taiga/projects/notifications/templates/emails/milestones/milestone-change-body-html.jinja index f0e3f152..2d96fa61 100644 --- a/taiga/projects/notifications/templates/emails/milestones/milestone-change-body-html.jinja +++ b/taiga/projects/notifications/templates/emails/milestones/milestone-change-body-html.jinja @@ -1,37 +1,14 @@ -{% extends "emails/updates.jinja" %} +{% extends "emails/updates-body-html.jinja" %} -{% set final_url = resolve_front_url("taskboard", project.slug, snapshot.slug) %} -{% set final_url_name = "Taiga - View milestone #{0}".format(snapshot.slug) %} - -{% block body %} - - - - -
-

Project: {{ project.name }}

-

Milestone #{{ snapshot.slug }}: {{ snapshot.name }}

-

Updated by {{ changer.get_full_name() }}.

- {% for entry in history_entries%} - {% if entry.comment %} -

Comment {{ entry.comment|linebreaksbr }}

- {% endif %} - {% set changed_fields = entry.values_diff %} - {% if changed_fields %} - {% include "emails/includes/fields_diff-html.jinja" %} - {% endif %} - {% endfor %} -
-{% endblock %} - -{% block footer %} - Copyright © 2014 Taiga Agile, LLC, All rights reserved. -
- Contact us: -
- Support: - support@taiga.io -
- Our mailing address is: - https://groups.google.com/forum/#!forum/taigaio +{% block head %} + {% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + name=snapshot.name|safe, + url=resolve_front_url("taskboard", project.slug, snapshot.slug) %} +

Sprint updated

+

Hello {{ user }},
{{ changer }} has updated an sprint on {{ project }}

+

Sprint {{ name }}

+ See sprint + {% endtrans %} {% endblock %} diff --git a/taiga/projects/notifications/templates/emails/milestones/milestone-change-body-text.jinja b/taiga/projects/notifications/templates/emails/milestones/milestone-change-body-text.jinja index ff4f4ea2..26dc3849 100644 --- a/taiga/projects/notifications/templates/emails/milestones/milestone-change-body-text.jinja +++ b/taiga/projects/notifications/templates/emails/milestones/milestone-change-body-text.jinja @@ -1,17 +1,12 @@ -{% set final_url = resolve_front_url("taskboard", project.slug, snapshot.slug) %} -{% set final_url_name = "Taiga - View milestone #{0}".format(snapshot.slug) %} - -- Project: {{ project.name }} -- Milestone #{{ snapshot.slug }}: {{ snapshot.name }} -- Updated by {{ changer.get_full_name() }} -{% for entry in history_entries%} - {% if entry.comment %} - Comment: {{ entry.comment|linebreaksbr }} - {% endif %} - {% set changed_fields = entry.values_diff %} - {% if changed_fields %} - {% include "emails/includes/fields_diff-text.jinja" %} - {% endif %} -{% endfor %} - -** More info at {{ final_url_name }} ({{ final_url }}) ** +{% extends "emails/updates-body-text.jinja" %} +{% block head %} +{% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + name=snapshot.name|safe, + url=resolve_front_url("task", project.slug, snapshot.slug) %} +Sprint updated +Hello {{ user }}, {{ changer }} has updated a sprint on {{ project }} +See sprint {{ subject }} at {{ url }} +{% endtrans %} +{% endblock %} diff --git a/taiga/projects/notifications/templates/emails/milestones/milestone-change-subject.jinja b/taiga/projects/notifications/templates/emails/milestones/milestone-change-subject.jinja index 1249eb83..6a2d85e8 100644 --- a/taiga/projects/notifications/templates/emails/milestones/milestone-change-subject.jinja +++ b/taiga/projects/notifications/templates/emails/milestones/milestone-change-subject.jinja @@ -1 +1,4 @@ -[{{ project.name|safe }}] Updated the milestone #{{ snapshot.slug|safe }} "{{ snapshot.name|safe }}" +{% trans project=project.name|safe, + milestone=snapshot.name|safe %} +[{{ project }}] Updated the sprint "{{ milestone }}" +{% endtrans %} diff --git a/taiga/projects/notifications/templates/emails/milestones/milestone-create-body-html.jinja b/taiga/projects/notifications/templates/emails/milestones/milestone-create-body-html.jinja index fc9accae..4f9b81b8 100644 --- a/taiga/projects/notifications/templates/emails/milestones/milestone-create-body-html.jinja +++ b/taiga/projects/notifications/templates/emails/milestones/milestone-create-body-html.jinja @@ -1,28 +1,15 @@ -{% extends "emails/base.jinja" %} - -{% set final_url = resolve_front_url("taskboard", project.slug, snapshot.slug) %} -{% set final_url_name = "Taiga - View milestone #{0}".format(snapshot.slug) %} +{% extends "emails/base-body-html.jinja" %} {% block body %} - - - - -
-

Project: {{ project.name }}

-

Milestone #{{ snapshot.slug }}: {{ snapshot.name }}

-

Created by {{ changer.get_full_name() }}.

-
-{% endblock %} - -{% block footer %} - Copyright © 2014 Taiga Agile, LLC, All rights reserved. -
- Contact us: -
- Support: - support@taiga.io -
- Our mailing address is: - https://groups.google.com/forum/#!forum/taigaio + {% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + name=snapshot.name|safe, + url=resolve_front_url("taskboard", project.slug, snapshot.slug) %} +

New sprint created

+

Hello {{ user }},
{{ changer }} has created a new sprint on {{ project }}

+

Sprint {{ name }}

+ See sprint +

The Taiga Team

+ {% endtrans %} {% endblock %} diff --git a/taiga/projects/notifications/templates/emails/milestones/milestone-create-body-text.jinja b/taiga/projects/notifications/templates/emails/milestones/milestone-create-body-text.jinja index 300c8059..98cb5d73 100644 --- a/taiga/projects/notifications/templates/emails/milestones/milestone-create-body-text.jinja +++ b/taiga/projects/notifications/templates/emails/milestones/milestone-create-body-text.jinja @@ -1,8 +1,12 @@ -{% set final_url = resolve_front_url("taskboard", project.slug, snapshot.slug) %} -{% set final_url_name = "Taiga - View milestone #{0}".format(snapshot.slug) %} +{% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + name=snapshot.name|safe, + url=resolve_front_url("taskboard", project.slug, snapshot.slug) %} +New sprint created +Hello {{ user }}, {{ changer }} has created a new sprint on {{ project }} +See sprint {{ subject }} at {{ url }} -- Project: {{ project.name }} -- Milestone #{{ snapshot.slug }}: {{ snapshot.name }} -- Created by {{ changer.get_full_name() }} - -** More info at {{ final_url_name }} ({{ final_url }}) ** +--- +The Taiga Team +{% endtrans %} diff --git a/taiga/projects/notifications/templates/emails/milestones/milestone-create-subject.jinja b/taiga/projects/notifications/templates/emails/milestones/milestone-create-subject.jinja index 28704d3e..33c1aac2 100644 --- a/taiga/projects/notifications/templates/emails/milestones/milestone-create-subject.jinja +++ b/taiga/projects/notifications/templates/emails/milestones/milestone-create-subject.jinja @@ -1 +1,4 @@ -[{{ project.name|safe }}] Created the milestone #{{ snapshot.slug|safe }} "{{ snapshot.name|safe }}" +{% trans project=project.name|safe, + milestone=snapshot.name|safe %} +[{{ project }}] Created the sprint "{{ milestone }}" +{% endtrans %} diff --git a/taiga/projects/notifications/templates/emails/milestones/milestone-delete-body-html.jinja b/taiga/projects/notifications/templates/emails/milestones/milestone-delete-body-html.jinja index dae36cfa..10dbfacc 100644 --- a/taiga/projects/notifications/templates/emails/milestones/milestone-delete-body-html.jinja +++ b/taiga/projects/notifications/templates/emails/milestones/milestone-delete-body-html.jinja @@ -1,25 +1,14 @@ -{% extends "emails/base.jinja" %} +{% extends "emails/base-body-html.jinja" %} {% block body %} - - - - -
-

{{ project.name }}

-

Milestone #{{ snapshot.slug }}: {{ snapshot.name }}

-

Deleted by {{ changer.get_full_name() }}

-
-{% endblock %} - -{% block footer %} - Copyright © 2014 Taiga Agile, LLC, All rights reserved. -
- Contact us: -
- Support: - support@taiga.io -
- Our mailing address is: - https://groups.google.com/forum/#!forum/taigaio + {% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + ref=snapshot.ref, + name=snapshot.name|safe %} +

Sprint deleted

+

Hello {{ user }},
{{ changer }} has deleted an sprint on {{ project }}

+

Sprint {{ name }}

+

The Taiga Team

+ {% endtrans %} {% endblock %} diff --git a/taiga/projects/notifications/templates/emails/milestones/milestone-delete-body-text.jinja b/taiga/projects/notifications/templates/emails/milestones/milestone-delete-body-text.jinja index 2916ae80..41c3b22b 100644 --- a/taiga/projects/notifications/templates/emails/milestones/milestone-delete-body-text.jinja +++ b/taiga/projects/notifications/templates/emails/milestones/milestone-delete-body-text.jinja @@ -1,3 +1,11 @@ -- Project: {{ project.name }} -- Milestone #{{ snapshot.slug }}: {{ snapshot.name }} -- Deleted by {{ changer.get_full_name() }} +{% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + name=snapshot.name|safe %} +Sprint deleted +Hello {{ user }}, {{ changer }} has deleted an sprint on {{ project }} +Sprint {{ name }} + +--- +The Taiga Team +{% endtrans %} diff --git a/taiga/projects/notifications/templates/emails/milestones/milestone-delete-subject.jinja b/taiga/projects/notifications/templates/emails/milestones/milestone-delete-subject.jinja index 54221a8c..496f517a 100644 --- a/taiga/projects/notifications/templates/emails/milestones/milestone-delete-subject.jinja +++ b/taiga/projects/notifications/templates/emails/milestones/milestone-delete-subject.jinja @@ -1 +1,4 @@ -[{{ project.name|safe }}] Deleted the milestone #{{ snapshot.slug|safe }} "{{ snapshot.name|safe }}" +{% trans project=project.name|safe, + milestone=snapshot.name|safe %} +[{{ project }}] Deleted the Sprint "{{ milestone }}" +{% endtrans %} diff --git a/taiga/projects/notifications/templates/emails/projects/project-change-body-html.jinja b/taiga/projects/notifications/templates/emails/projects/project-change-body-html.jinja deleted file mode 100644 index 41ae8ea0..00000000 --- a/taiga/projects/notifications/templates/emails/projects/project-change-body-html.jinja +++ /dev/null @@ -1,36 +0,0 @@ -{% extends "emails/updates.jinja" %} - -{% set final_url = resolve_front_url("project-admin", snapshot.slug) %} -{% set final_url_name = "Taiga - View Project #{0}".format(snapshot.slug) %} - -{% block body %} - - - - -
-

Project #{{ snapshot.slug }}: {{ snapshot.name }}

-

Updated by {{ changer.get_full_name() }}.

- {% for entry in history_entries%} - {% if entry.comment %} -

Comment {{ entry.comment|linebreaksbr }}

- {% endif %} - {% set changed_fields = entry.values_diff %} - {% if changed_fields %} - {% include "emails/includes/fields_diff-html.jinja" %} - {% endif %} - {% endfor %} -
-{% endblock %} - -{% block footer %} - Copyright © 2014 Taiga Agile, LLC, All rights reserved. -
- Contact us: -
- Support: - support@taiga.io -
- Our mailing address is: - https://groups.google.com/forum/#!forum/taigaio -{% endblock %} diff --git a/taiga/projects/notifications/templates/emails/projects/project-change-body-text.jinja b/taiga/projects/notifications/templates/emails/projects/project-change-body-text.jinja deleted file mode 100644 index 0d14754d..00000000 --- a/taiga/projects/notifications/templates/emails/projects/project-change-body-text.jinja +++ /dev/null @@ -1,17 +0,0 @@ -{% set final_url = resolve_front_url("project-admin", snapshot.slug) %} -{% set final_url_name = "Taiga - View Project #{0}".format(snapshot.slug) %} - -- Project #{{ snapshot.slug }}: {{ snapshot.name }} -- Updated by {{ changer.get_full_name() }} -{% for entry in history_entries%} - {% if entry.comment %} - Comment: {{ entry.comment|linebreaksbr }} - {% endif %} - - {% set changed_fields = entry.values_diff %} - {% for field_name, values in changed_fields.items() %} - * {{ verbose_name(object, field_name) }}: from '{{ values.0 }}' to '{{ values.1 }}'. - {% endfor %} -{% endfor %} - -** More info at {{ final_url_name }} ({{ final_url }}) ** diff --git a/taiga/projects/notifications/templates/emails/projects/project-change-subject.jinja b/taiga/projects/notifications/templates/emails/projects/project-change-subject.jinja deleted file mode 100644 index 25d9943b..00000000 --- a/taiga/projects/notifications/templates/emails/projects/project-change-subject.jinja +++ /dev/null @@ -1 +0,0 @@ -[{{ snapshot.name|safe }}] Updated the project #{{ snapshot.slug|safe }} diff --git a/taiga/projects/notifications/templates/emails/projects/project-create-body-html.jinja b/taiga/projects/notifications/templates/emails/projects/project-create-body-html.jinja deleted file mode 100644 index 4207a4cb..00000000 --- a/taiga/projects/notifications/templates/emails/projects/project-create-body-html.jinja +++ /dev/null @@ -1,27 +0,0 @@ -{% extends "emails/hero.jinja" %} - -{% set final_url = resolve_front_url("project-admin", snapshot.slug) %} -{% set final_url_name = "Taiga - View Project #{0}".format(snapshot.slug) %} - -{% block body %} - - - - -
-

Project: {{ project.name }}

-

Project #{{ snapshot.slug }}: {{ snapshot.name }}

-

Created by {{ changer.get_full_name() }}.

-
-{% endblock %} -{% block footer %} - Copyright © 2014 Taiga Agile, LLC, All rights reserved. -
- Contact us: -
- Support: - support@taiga.io -
- Our mailing address is: - https://groups.google.com/forum/#!forum/taigaio -{% endblock %} diff --git a/taiga/projects/notifications/templates/emails/projects/project-create-body-text.jinja b/taiga/projects/notifications/templates/emails/projects/project-create-body-text.jinja deleted file mode 100644 index c66430fc..00000000 --- a/taiga/projects/notifications/templates/emails/projects/project-create-body-text.jinja +++ /dev/null @@ -1,7 +0,0 @@ -{% set final_url = resolve_front_url("project-admin", snapshot.slug) %} -{% set final_url_name = "Taiga - View Project #{0}".format(snapshot.slug) %} - -- Project #{{ snapshot.slug }}: {{ snapshot.name }} -- Created by {{ changer.get_full_name() }} - -** More info at {{ final_url_name }} ({{ final_url }}) ** diff --git a/taiga/projects/notifications/templates/emails/projects/project-create-subject.jinja b/taiga/projects/notifications/templates/emails/projects/project-create-subject.jinja deleted file mode 100644 index 06ed271b..00000000 --- a/taiga/projects/notifications/templates/emails/projects/project-create-subject.jinja +++ /dev/null @@ -1 +0,0 @@ -[{{ snapshot.name|safe }}] Created the project #{{ snapshot.slug|safe }} diff --git a/taiga/projects/notifications/templates/emails/projects/project-delete-body-html.jinja b/taiga/projects/notifications/templates/emails/projects/project-delete-body-html.jinja deleted file mode 100644 index 53dfc6e8..00000000 --- a/taiga/projects/notifications/templates/emails/projects/project-delete-body-html.jinja +++ /dev/null @@ -1,24 +0,0 @@ -{% extends "emails/base.jinja" %} - -{% block body %} - - - - -
-

Project #{{ snapshot.slug }}: {{ snapshot.name }}

-

Deleted by {{ changer.get_full_name() }}

-
-{% endblock %} - -{% block footer %} - Copyright © 2014 Taiga Agile, LLC, All rights reserved. -
- Contact us: -
- Support: - support@taiga.io -
- Our mailing address is: - https://groups.google.com/forum/#!forum/taigaio -{% endblock %} diff --git a/taiga/projects/notifications/templates/emails/projects/project-delete-body-text.jinja b/taiga/projects/notifications/templates/emails/projects/project-delete-body-text.jinja deleted file mode 100644 index 39935515..00000000 --- a/taiga/projects/notifications/templates/emails/projects/project-delete-body-text.jinja +++ /dev/null @@ -1,2 +0,0 @@ -- Project #{{ snapshot.slug }}: {{ snapshot.name }} -- Deleted by {{ changer.get_full_name() }} diff --git a/taiga/projects/notifications/templates/emails/projects/project-delete-subject.jinja b/taiga/projects/notifications/templates/emails/projects/project-delete-subject.jinja deleted file mode 100644 index cf0adf31..00000000 --- a/taiga/projects/notifications/templates/emails/projects/project-delete-subject.jinja +++ /dev/null @@ -1 +0,0 @@ -[{{ snapshot.name|safe }}] Deleted the project #{{ snapshot.slug|safe }} diff --git a/taiga/projects/notifications/templates/emails/tasks/task-change-body-html.jinja b/taiga/projects/notifications/templates/emails/tasks/task-change-body-html.jinja index ada43d22..790cd752 100644 --- a/taiga/projects/notifications/templates/emails/tasks/task-change-body-html.jinja +++ b/taiga/projects/notifications/templates/emails/tasks/task-change-body-html.jinja @@ -1,42 +1,15 @@ -{% extends "emails/updates.jinja" %} - -{% set final_url = resolve_front_url("task", project.slug, snapshot.ref) %} -{% set final_url_name = "Taiga - View task #{0}".format(snapshot.ref) %} +{% extends "emails/updates-body-html.jinja" %} {% block head %} -

Task #{{ snapshot.ref }} {{ snapshot.subject }} updated

-

Hello {{ user.get_full_name() }},
{{ changer.get_full_name() }} has updated a task on {{ project.name }}

- See task -{% endblock %} - -{% block body %} - -

Updates

- - {% for entry in history_entries%} - {% if entry.comment %} - - -

Comment

-

{{ mdrender(project, entry.comment) }}

- - - {% endif %} - {% set changed_fields = entry.values_diff %} - {% if changed_fields %} - {% include "emails/includes/fields_diff-html.jinja" %} - {% endif %} - {% endfor %} -{% endblock %} - -{% block footer %} - Copyright © 2014 Taiga Agile, LLC, All rights reserved. -
- Contact us: -
- Support: - support@taiga.io -
- Our mailing address is: - https://groups.google.com/forum/#!forum/taigaio + {% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe, + url=resolve_front_url("task", project.slug, snapshot.ref) %} +

Task updated

+

Hello {{ user }},
{{ changer }} has updated a task on {{ project }}

+

Task #{{ ref }} {{ subject }}

+ See task + {% endtrans %} {% endblock %} diff --git a/taiga/projects/notifications/templates/emails/tasks/task-change-body-text.jinja b/taiga/projects/notifications/templates/emails/tasks/task-change-body-text.jinja index 90e38aa6..52d7d258 100644 --- a/taiga/projects/notifications/templates/emails/tasks/task-change-body-text.jinja +++ b/taiga/projects/notifications/templates/emails/tasks/task-change-body-text.jinja @@ -1,17 +1,13 @@ -{% set final_url = resolve_front_url("task", project.slug, snapshot.ref) %} -{% set final_url_name = "Taiga - View task #{0}".format(snapshot.ref) %} - -Task #{{ snapshot.ref }} {{ snapshot.subject }} updated -Hello {{ user.get_full_name() }}, {{ changer.get_full_name() }} has updated a task on {{ project.name }} - -See task at {{ final_url_name }} ({{ final_url }}) - -{% for entry in history_entries%} - {% if entry.comment %} - Comment: {{ entry.comment|linebreaksbr }} - {% endif %} - {% set changed_fields = entry.values_diff %} - {% if changed_fields %} - {% include "emails/includes/fields_diff-text.jinja" %} - {% endif %} -{% endfor %} +{% extends "emails/updates-body-text.jinja" %} +{% block head %} +{% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe, + url=resolve_front_url("task", project.slug, snapshot.ref) %} +Task updated +Hello {{ user }}, {{ changer }} has updated a task on {{ project }} +See task #{{ ref }} {{ subject }} at {{ url }} +{% endtrans %} +{% endblock %} diff --git a/taiga/projects/notifications/templates/emails/tasks/task-change-subject.jinja b/taiga/projects/notifications/templates/emails/tasks/task-change-subject.jinja index ddd26e48..ced8c417 100644 --- a/taiga/projects/notifications/templates/emails/tasks/task-change-subject.jinja +++ b/taiga/projects/notifications/templates/emails/tasks/task-change-subject.jinja @@ -1 +1,5 @@ -[{{ project.name|safe }}] Updated the task #{{ snapshot.ref }} "{{ snapshot.subject|safe }}" +{% trans project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe %} +[{{ project }}] Updated the task #{{ ref }} "{{ subject }}" +{% endtrans %} diff --git a/taiga/projects/notifications/templates/emails/tasks/task-create-body-html.jinja b/taiga/projects/notifications/templates/emails/tasks/task-create-body-html.jinja index d153199a..969ee9e0 100644 --- a/taiga/projects/notifications/templates/emails/tasks/task-create-body-html.jinja +++ b/taiga/projects/notifications/templates/emails/tasks/task-create-body-html.jinja @@ -1,25 +1,16 @@ -{% extends "emails/base.jinja" %} - -{% set final_url = resolve_front_url("task", project.slug, snapshot.ref) %} -{% set final_url_name = "Taiga - View task #{0}".format(snapshot.ref) %} +{% extends "emails/base-body-html.jinja" %} {% block body %} + {% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe, + url=resolve_front_url("task", project.slug, snapshot.ref) %}

New task created

-

Hello {{ user.get_full_name() }},
{{ changer.get_full_name() }} has created a new task on {{ project.name }}

-

Task #{{ snapshot.ref }} {{ snapshot.subject }}

- See task +

Hello {{ user }},
{{ changer }} has created a new task on {{ project }}

+

Task #{{ ref }} {{ subject }}

+ See task

The Taiga Team

+ {% endtrans %} {% endblock %} - -{% block footer %} - Copyright © 2014 Taiga Agile, LLC, All rights reserved. -
- Contact us: -
- Support: - support@taiga.io -
- Our mailing address is: - https://groups.google.com/forum/#!forum/taigaio -{% endblock %} - diff --git a/taiga/projects/notifications/templates/emails/tasks/task-create-body-text.jinja b/taiga/projects/notifications/templates/emails/tasks/task-create-body-text.jinja index abe81ecc..88ed278f 100644 --- a/taiga/projects/notifications/templates/emails/tasks/task-create-body-text.jinja +++ b/taiga/projects/notifications/templates/emails/tasks/task-create-body-text.jinja @@ -1,7 +1,13 @@ -{% set final_url = resolve_front_url("task", project.slug, snapshot.ref) %} -{% set final_url_name = "Taiga - View task #{0}".format(snapshot.ref) %} +{% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe, + url=resolve_front_url("task", project.slug, snapshot.ref) %} +New created +Hello {{ user }}, {{ changer }} has created a new task on {{ project }} +See task #{{ ref }} {{ subject }} at {{ url }} -New task created -Hello {{ user.get_full_name() }}, {{ changer.get_full_name() }} has created a new task on {{ project.name }} -See task #{{ snapshot.ref }} {{ snapshot.subject }} at {{ final_url_name }} ({{ final_url }}) +--- The Taiga Team +{% endtrans %} diff --git a/taiga/projects/notifications/templates/emails/tasks/task-create-subject.jinja b/taiga/projects/notifications/templates/emails/tasks/task-create-subject.jinja index c83009d4..6931764f 100644 --- a/taiga/projects/notifications/templates/emails/tasks/task-create-subject.jinja +++ b/taiga/projects/notifications/templates/emails/tasks/task-create-subject.jinja @@ -1 +1,5 @@ -[{{ project.name|safe }}] Created the task #{{ snapshot.ref }} "{{ snapshot.subject|safe }}" +{% trans project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe %} +[{{ project }}] Created the task #{{ ref }} "{{ subject }}" +{% endtrans %} diff --git a/taiga/projects/notifications/templates/emails/tasks/task-delete-body-html.jinja b/taiga/projects/notifications/templates/emails/tasks/task-delete-body-html.jinja index ba2804bc..05d1f493 100644 --- a/taiga/projects/notifications/templates/emails/tasks/task-delete-body-html.jinja +++ b/taiga/projects/notifications/templates/emails/tasks/task-delete-body-html.jinja @@ -1,21 +1,15 @@ -{% extends "emails/base.jinja" %} +{% extends "emails/base-body-html.jinja" %} {% block body %} + {% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe %}

Task deleted

-

Hello {{ user.get_full_name() }},
{{ changer.get_full_name() }} has deleted a task on {{ project.name }}

-

Task #{{ snapshot.ref }} {{ snapshot.subject }}

+

Hello {{ user }},
{{ changer }} has deleted a task on {{ project }}

+

Task #{{ ref }} {{ subject }}

The Taiga Team

-{% endblock %} - -{% block footer %} - Copyright © 2014 Taiga Agile, LLC, All rights reserved. -
- Contact us: -
- Support: - support@taiga.io -
- Our mailing address is: - https://groups.google.com/forum/#!forum/taigaio + {% endtrans %} {% endblock %} diff --git a/taiga/projects/notifications/templates/emails/tasks/task-delete-body-text.jinja b/taiga/projects/notifications/templates/emails/tasks/task-delete-body-text.jinja index 22e8c043..acf9bfc3 100644 --- a/taiga/projects/notifications/templates/emails/tasks/task-delete-body-text.jinja +++ b/taiga/projects/notifications/templates/emails/tasks/task-delete-body-text.jinja @@ -1,3 +1,12 @@ +{% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe %} Task deleted -Hello {{ user.get_full_name() }}, {{ changer.get_full_name() }} has deleted a task on {{ project.name }} -Task #{{ snapshot.ref }} {{ snapshot.subject }} +Hello {{ user }}, {{ changer }} has deleted a task on {{ project }} +Task #{{ ref }} {{ subject }} + +--- +The Taiga Team +{% endtrans %} diff --git a/taiga/projects/notifications/templates/emails/tasks/task-delete-subject.jinja b/taiga/projects/notifications/templates/emails/tasks/task-delete-subject.jinja index 5a411013..1807e6a5 100644 --- a/taiga/projects/notifications/templates/emails/tasks/task-delete-subject.jinja +++ b/taiga/projects/notifications/templates/emails/tasks/task-delete-subject.jinja @@ -1 +1,5 @@ -[{{ project.name|safe }}] Deleted the task #{{ snapshot.ref }} "{{ snapshot.subject|safe }}" +{% trans project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe %} +[{{ project }}] Deleted the task #{{ ref }} "{{ subject }}" +{% endtrans %} diff --git a/taiga/projects/notifications/templates/emails/userstories/userstory-change-body-html.jinja b/taiga/projects/notifications/templates/emails/userstories/userstory-change-body-html.jinja index 37777be0..756a8260 100644 --- a/taiga/projects/notifications/templates/emails/userstories/userstory-change-body-html.jinja +++ b/taiga/projects/notifications/templates/emails/userstories/userstory-change-body-html.jinja @@ -1,42 +1,15 @@ -{% extends "emails/updates.jinja" %} - -{% set final_url = resolve_front_url("userstory", project.slug, snapshot.ref) %} -{% set final_url_name = "Taiga - View US #{0}".format(snapshot.ref) %} +{% extends "emails/updates-body-html.jinja" %} {% block head %} -

User story #{{ snapshot.ref }} {{ snapshot.subject }} updated

-

Hello {{ user.get_full_name() }},
{{ changer.get_full_name() }} has updated a user story on {{ project.name }}

- See Issue -{% endblock %} - -{% block body %} - -

Updates

- - {% for entry in history_entries%} - {% if entry.comment %} - - -

Comment

-

{{ mdrender(project, entry.comment) }}

- - - {% endif %} - {% set changed_fields = entry.values_diff %} - {% if changed_fields %} - {% include "emails/includes/fields_diff-html.jinja" %} - {% endif %} - {% endfor %} -{% endblock %} - -{% block footer %} - Copyright © 2014 Taiga Agile, LLC, All rights reserved. -
- Contact us: -
- Support: - support@taiga.io -
- Our mailing address is: - https://groups.google.com/forum/#!forum/taigaio + {% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe, + url=resolve_front_url("userstory", project.slug, snapshot.ref) %} +

User Story updated

+

Hello {{ user }},
{{ changer }} has updated a user story on {{ project }}

+

User Story #{{ ref }} {{ subject }}

+ See user story + {% endtrans %} {% endblock %} diff --git a/taiga/projects/notifications/templates/emails/userstories/userstory-change-body-text.jinja b/taiga/projects/notifications/templates/emails/userstories/userstory-change-body-text.jinja index c6138a12..79eaa5fa 100644 --- a/taiga/projects/notifications/templates/emails/userstories/userstory-change-body-text.jinja +++ b/taiga/projects/notifications/templates/emails/userstories/userstory-change-body-text.jinja @@ -1,16 +1,13 @@ -{% set final_url = resolve_front_url("userstory", project.slug, snapshot.ref) %} -{% set final_url_name = "Taiga - View US #{0}".format(snapshot.ref) %} - -User story #{{ snapshot.ref }} {{ snapshot.subject }} updated -Hello {{ user.get_full_name() }}, {{ changer.get_full_name() }} has updated a user story on {{ project.name }} -See user story in Taiga {{ final_url_name }} ({{ final_url }}) - -{% for entry in history_entries%} - {% if entry.comment %} - Comment: {{ entry.comment|linebreaksbr }} - {% endif %} - {% set changed_fields = entry.values_diff %} - {% if changed_fields %} - {% include "emails/includes/fields_diff-text.jinja" %} - {% endif %} -{% endfor %} +{% extends "emails/updates-body-text.jinja" %} +{% block head %} +{% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe, + url=resolve_front_url("userstory", project.slug, snapshot.ref) %} +User story updated +Hello {{ user }}, {{ changer }} has updated a user story on {{ project }} +See user story #{{ ref }} {{ subject }} at {{ url }} +{% endtrans %} +{% endblock %} diff --git a/taiga/projects/notifications/templates/emails/userstories/userstory-change-subject.jinja b/taiga/projects/notifications/templates/emails/userstories/userstory-change-subject.jinja index 5c66b14f..a362b076 100644 --- a/taiga/projects/notifications/templates/emails/userstories/userstory-change-subject.jinja +++ b/taiga/projects/notifications/templates/emails/userstories/userstory-change-subject.jinja @@ -1 +1,5 @@ -[{{ project.name|safe }}] Updated the US #{{ snapshot.ref }} "{{ snapshot.subject|safe }}" +{% trans project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe %} +[{{ project }}] Updated the US #{{ ref }} "{{ subject }}" +{% endtrans %} diff --git a/taiga/projects/notifications/templates/emails/userstories/userstory-create-body-html.jinja b/taiga/projects/notifications/templates/emails/userstories/userstory-create-body-html.jinja index bd95b4ca..1735950e 100644 --- a/taiga/projects/notifications/templates/emails/userstories/userstory-create-body-html.jinja +++ b/taiga/projects/notifications/templates/emails/userstories/userstory-create-body-html.jinja @@ -1,24 +1,16 @@ -{% extends "emails/base.jinja" %} - -{% set final_url = resolve_front_url("userstory", project.slug, snapshot.ref) %} -{% set final_url_name = "Taiga - View US #{0}".format(snapshot.ref) %} +{% extends "emails/base-body-html.jinja" %} {% block body %} + {% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe, + url=resolve_front_url("userstory", project.slug, snapshot.ref) %}

New user story created

-

Hello {{ user.get_full_name() }},
{{ changer.get_full_name() }} has created a new user story on {{ project.name }}

-

User story #{{ snapshot.ref }} {{ snapshot.subject }}

- See user story +

Hello {{ user }},
{{ changer }} has created a new user story on {{ project }}

+

User Story #{{ ref }} {{ subject }}

+ See user story

The Taiga Team

-{% endblock %} - -{% block footer %} - Copyright © 2014 Taiga Agile, LLC, All rights reserved. -
- Contact us: -
- Support: - support@taiga.io -
- Our mailing address is: - https://groups.google.com/forum/#!forum/taigaio + {% endtrans %} {% endblock %} diff --git a/taiga/projects/notifications/templates/emails/userstories/userstory-create-body-text.jinja b/taiga/projects/notifications/templates/emails/userstories/userstory-create-body-text.jinja index 9d161906..3d5aa92f 100644 --- a/taiga/projects/notifications/templates/emails/userstories/userstory-create-body-text.jinja +++ b/taiga/projects/notifications/templates/emails/userstories/userstory-create-body-text.jinja @@ -1,8 +1,13 @@ -{% set final_url = resolve_front_url("userstory", project.slug, snapshot.ref) %} -{% set final_url_name = "Taiga - View US #{0}".format(snapshot.ref) %} - +{% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe, + url=resolve_front_url("userstory", project.slug, snapshot.ref) %} New user story created -Hello {{ user.get_full_name() }}, {{ changer.get_full_name() }} has created a new user story on {{ project.name }} -User story #{{ snapshot.ref }} {{ snapshot.subject }} -More info at {{ final_url_name }} ({{ final_url }}) +Hello {{ user }}, {{ changer }} has created a new user story on {{ project }} +See user story #{{ ref }} {{ subject }} at {{ url }} + +--- The Taiga Team +{% endtrans %} diff --git a/taiga/projects/notifications/templates/emails/userstories/userstory-create-subject.jinja b/taiga/projects/notifications/templates/emails/userstories/userstory-create-subject.jinja index 59f4b8db..549a6129 100644 --- a/taiga/projects/notifications/templates/emails/userstories/userstory-create-subject.jinja +++ b/taiga/projects/notifications/templates/emails/userstories/userstory-create-subject.jinja @@ -1 +1,5 @@ -[{{ project.name|safe }}] Created the US #{{ snapshot.ref }} "{{ snapshot.subject|safe }}" +{% trans project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe %} +[{{ project }}] Created the US #{{ ref }} "{{ subject }}" +{% endtrans %} diff --git a/taiga/projects/notifications/templates/emails/userstories/userstory-delete-body-html.jinja b/taiga/projects/notifications/templates/emails/userstories/userstory-delete-body-html.jinja index 2e98392f..24aadddc 100644 --- a/taiga/projects/notifications/templates/emails/userstories/userstory-delete-body-html.jinja +++ b/taiga/projects/notifications/templates/emails/userstories/userstory-delete-body-html.jinja @@ -1,20 +1,15 @@ -{% extends "emails/base.jinja" %} +{% extends "emails/base-body-html.jinja" %} {% block body %} -

User story deleted

-

Hello {{ user.get_full_name() }},
{{ changer.get_full_name() }} has deleted a user story on {{ project.name }}

-

User story #{{ snapshot.ref }} {{ snapshot.subject }}

+ {% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe %} +

User Story deleted

+

Hello {{ user }},
{{ changer }} has deleted a user story on {{ project }}

+

User Story #{{ ref }} {{ subject }}

The Taiga Team

+ {% endtrans %} {% endblock %} -{% block footer %} - Copyright © 2014 Taiga Agile, LLC, All rights reserved. -
- Contact us: -
- Support: - support@taiga.io -
- Our mailing address is: - https://groups.google.com/forum/#!forum/taigaio -{% endblock %} diff --git a/taiga/projects/notifications/templates/emails/userstories/userstory-delete-body-text.jinja b/taiga/projects/notifications/templates/emails/userstories/userstory-delete-body-text.jinja index d4af94d3..22a67c97 100644 --- a/taiga/projects/notifications/templates/emails/userstories/userstory-delete-body-text.jinja +++ b/taiga/projects/notifications/templates/emails/userstories/userstory-delete-body-text.jinja @@ -1,4 +1,12 @@ -User story deleted -Hello {{ user.get_full_name() }}, {{ changer.get_full_name() }} hasdeleted a user story on {{ project.name }} -User story #{{ snapshot.ref }} {{ snapshot.subject }} +{% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe %} +User Story deleted +Hello {{ user }}, {{ changer }} has deleted a user story on {{ project }} +User Story #{{ ref }} {{ subject }} + +--- The Taiga Team +{% endtrans %} diff --git a/taiga/projects/notifications/templates/emails/userstories/userstory-delete-subject.jinja b/taiga/projects/notifications/templates/emails/userstories/userstory-delete-subject.jinja index 1b315744..3c2d6ed9 100644 --- a/taiga/projects/notifications/templates/emails/userstories/userstory-delete-subject.jinja +++ b/taiga/projects/notifications/templates/emails/userstories/userstory-delete-subject.jinja @@ -1 +1,5 @@ -[{{ project.name|safe }}] Deleted the US #{{ snapshot.ref }} "{{ snapshot.subject|safe }}" +{% trans project=project.name|safe, + ref=snapshot.ref, + subject=snapshot.subject|safe %} +[{{ project }}] Deleted the US #{{ ref }} "{{ subject }}" +{% endtrans %} diff --git a/taiga/projects/notifications/templates/emails/wiki/wikipage-change-body-html.jinja b/taiga/projects/notifications/templates/emails/wiki/wikipage-change-body-html.jinja index 4d4bd4b7..65f4aa1c 100644 --- a/taiga/projects/notifications/templates/emails/wiki/wikipage-change-body-html.jinja +++ b/taiga/projects/notifications/templates/emails/wiki/wikipage-change-body-html.jinja @@ -1,43 +1,14 @@ -{% extends "emails/updates.jinja" %} - -{% set final_url = resolve_front_url("wiki", project.slug, snapshot.slug) %} -{% set final_url_name = "Taiga - View Wiki Page '{0}'".format(snapshot.slug) %} +{% extends "emails/updates-body-html.jinja" %} {% block head %} -

Wiki Page {{ snapshot.slug }} updated

-

Hello {{ user.get_full_name() }},
{{ changer.get_full_name() }} has updated a wiki page on {{ project.name }}

- See Wiki -{% endblock %} - - -{% block body %} - -

Updates

- - {% for entry in history_entries%} - {% if entry.comment %} - - -

Comment

-

{{ mdrender(project, entry.comment) }}

- - - {% endif %} - {% set changed_fields = entry.values_diff %} - {% if changed_fields %} - {% include "emails/includes/fields_diff-html.jinja" %} - {% endif %} - {% endfor %} -{% endblock %} - -{% block footer %} - Copyright © 2014 Taiga Agile, LLC, All rights reserved. -
- Contact us: -
- Support: - support@taiga.io -
- Our mailing address is: - https://groups.google.com/forum/#!forum/taigaio + {% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + page=snapshot.slug, + url=resolve_front_url("wiki", project.slug, snapshot.slug) %} +

Wiki Page updated

+

Hello {{ user }},
{{ changer }} has updated a wiki page on {{ project }}

+

Wiki page {{ page }}

+ See Wiki Page + {% endtrans %} {% endblock %} diff --git a/taiga/projects/notifications/templates/emails/wiki/wikipage-change-body-text.jinja b/taiga/projects/notifications/templates/emails/wiki/wikipage-change-body-text.jinja index b9eb44f2..9d284cc8 100644 --- a/taiga/projects/notifications/templates/emails/wiki/wikipage-change-body-text.jinja +++ b/taiga/projects/notifications/templates/emails/wiki/wikipage-change-body-text.jinja @@ -1,16 +1,14 @@ -{% set final_url = resolve_front_url("wiki", project.slug, snapshot.slug) %} -{% set final_url_name = "Taiga - View Wiki Page '{0}'".format(snapshot.slug) %} +{% extends "emails/updates-body-text.jinja" %} +{% block head %} +{% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + page=snapshot.slug, + url=resolve_front_url("wiki", project.slug, snapshot.slug) %} +Wiki Page updated -Wiki Page {{ snapshot.slug }} updated -Hello {{ user.get_full_name() }}, {{ changer.get_full_name() }} has updated a wiki page on {{ project.name }} -See wiki page in Taiga {{ final_url_name }} ({{ final_url }}) +Hello {{ user }}, {{ changer }} has updated a wiki page on {{ project }} -{% for entry in history_entries%} - {% if entry.comment %} - Comment: {{ entry.comment|linebreaksbr }} - {% endif %} - {% set changed_fields = entry.values_diff %} - {% if changed_fields %} - {% include "emails/includes/fields_diff-text.jinja" %} - {% endif %} -{% endfor %} +See wiki page {{ page }} at {{ url }} +{% endtrans %} +{% endblock %} diff --git a/taiga/projects/notifications/templates/emails/wiki/wikipage-change-subject.jinja b/taiga/projects/notifications/templates/emails/wiki/wikipage-change-subject.jinja index 024d566e..251a5adb 100644 --- a/taiga/projects/notifications/templates/emails/wiki/wikipage-change-subject.jinja +++ b/taiga/projects/notifications/templates/emails/wiki/wikipage-change-subject.jinja @@ -1 +1,3 @@ -[{{ project.name|safe }}] Updated the Wiki Page "{{ snapshot.slug }}" +{% trans project=project.name|safe, page=snapshot.slug %} +[{{ project }}] Updated the Wiki Page "{{ page }}" +{% endtrans %} diff --git a/taiga/projects/notifications/templates/emails/wiki/wikipage-create-body-html.jinja b/taiga/projects/notifications/templates/emails/wiki/wikipage-create-body-html.jinja index cba2b5b0..f9642cb9 100644 --- a/taiga/projects/notifications/templates/emails/wiki/wikipage-create-body-html.jinja +++ b/taiga/projects/notifications/templates/emails/wiki/wikipage-create-body-html.jinja @@ -1,24 +1,15 @@ -{% extends "emails/base.jinja" %} - -{% set final_url = resolve_front_url("wiki", project.slug, snapshot.slug) %} -{% set final_url_name = "Taiga - View Wiki Page '{0}'".format(snapshot.slug) %} +{% extends "emails/base-body-html.jinja" %} {% block body %} + {% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + page=snapshot.slug, + url=resolve_front_url("wiki", project.slug, snapshot.slug) %}

New wiki page created

-

Hello {{ user.get_full_name() }},
{{ changer.get_full_name() }} has created a new wiki page on {{ project.name }}

-

Wiki page {{ snapshot.slug }}

- See wiki page +

Hello {{ user }},
{{ changer }} has created a new wiki page on {{ project }}

+

Wiki page {{ page }}

+ See wiki page

The Taiga Team

-{% endblock %} - -{% block footer %} - Copyright © 2014 Taiga Agile, LLC, All rights reserved. -
- Contact us: -
- Support: - support@taiga.io -
- Our mailing address is: - https://groups.google.com/forum/#!forum/taigaio + {% endtrans %} {% endblock %} diff --git a/taiga/projects/notifications/templates/emails/wiki/wikipage-create-body-text.jinja b/taiga/projects/notifications/templates/emails/wiki/wikipage-create-body-text.jinja index 8f6f4020..89177038 100644 --- a/taiga/projects/notifications/templates/emails/wiki/wikipage-create-body-text.jinja +++ b/taiga/projects/notifications/templates/emails/wiki/wikipage-create-body-text.jinja @@ -1,7 +1,14 @@ -{% set final_url = resolve_front_url("wiki", project.slug, snapshot.slug) %} -{% set final_url_name = "Taiga - View Wiki Page '{0}'".format(snapshot.slug) %} - +{% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + page=snapshot.slug, + url=resolve_front_url("wiki", project.slug, snapshot.slug) %} New wiki page created -Hello {{ user.get_full_name() }}, {{ changer.get_full_name() }} has created a new wiki page on {{ project.name }} -See wiki page {{ snapshot.slug }} at {{ final_url_name }} ({{ final_url }}) + +Hello {{ user }}, {{ changer }} has created a new wiki page on {{ project }} + +See wiki page {{ page }} at {{ url }} + +--- The Taiga Team +{% endtrans %} diff --git a/taiga/projects/notifications/templates/emails/wiki/wikipage-create-subject.jinja b/taiga/projects/notifications/templates/emails/wiki/wikipage-create-subject.jinja index af4ca48d..ac5a6ddf 100644 --- a/taiga/projects/notifications/templates/emails/wiki/wikipage-create-subject.jinja +++ b/taiga/projects/notifications/templates/emails/wiki/wikipage-create-subject.jinja @@ -1 +1,3 @@ -[{{ project.name|safe }}] Created the Wiki Page "{{ snapshot.slug }}" +{% trans project=project.name|safe, page=snapshot.slug %} +[{{ project }}] Created the Wiki Page "{{ page }}" +{% endtrans %} diff --git a/taiga/projects/notifications/templates/emails/wiki/wikipage-delete-body-html.jinja b/taiga/projects/notifications/templates/emails/wiki/wikipage-delete-body-html.jinja index 46bdc60c..b8f07630 100644 --- a/taiga/projects/notifications/templates/emails/wiki/wikipage-delete-body-html.jinja +++ b/taiga/projects/notifications/templates/emails/wiki/wikipage-delete-body-html.jinja @@ -1,8 +1,13 @@ -{% extends "emails/base.jinja" %} +{% extends "emails/base-body-html.jinja" %} {% block body %} + {% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + page=snapshot.slug %}

Wiki page deleted

-

Hello {{ user.get_full_name() }},
{{ changer.get_full_name() }} has deleted a wiki page on {{ project.name }}

-

Wiki page {{ snapshot.slug }}

+

Hello {{ user }},
{{ changer }} has deleted a wiki page on {{ project }}

+

Wiki page {{ page }}

The Taiga Team

+ {% endtrans %} {% endblock %} diff --git a/taiga/projects/notifications/templates/emails/wiki/wikipage-delete-body-text.jinja b/taiga/projects/notifications/templates/emails/wiki/wikipage-delete-body-text.jinja index caecd953..46f5fb2e 100644 --- a/taiga/projects/notifications/templates/emails/wiki/wikipage-delete-body-text.jinja +++ b/taiga/projects/notifications/templates/emails/wiki/wikipage-delete-body-text.jinja @@ -1,4 +1,13 @@ +{% trans user=user.get_full_name()|safe, + changer=changer.get_full_name()|safe, + project=project.name|safe, + page=snapshot.slug %} Wiki page deleted -Hello {{ user.get_full_name() }}, {{ changer.get_full_name() }} has deleted a wiki page on {{ project.name }} -Wiki page {{ snapshot.slug }} + +Hello {{ user }}, {{ changer }} has deleted a wiki page on {{ project }} + +Wiki page {{ page }} + +--- The Taiga Team +{% endtrans %} diff --git a/taiga/projects/notifications/templates/emails/wiki/wikipage-delete-subject.jinja b/taiga/projects/notifications/templates/emails/wiki/wikipage-delete-subject.jinja index a496edc2..d73de78f 100644 --- a/taiga/projects/notifications/templates/emails/wiki/wikipage-delete-subject.jinja +++ b/taiga/projects/notifications/templates/emails/wiki/wikipage-delete-subject.jinja @@ -1 +1,3 @@ -[{{ project.name|safe }}] Deleted the Wiki Page "{{ snapshot.slug }}" +{% trans project=project.name|safe, page=snapshot.slug %} +[{{ project }}] Deleted the Wiki Page "{{ page }}" +{% endtrans %} diff --git a/taiga/projects/templates/emails/membership_invitation-body-html.jinja b/taiga/projects/templates/emails/membership_invitation-body-html.jinja index 3b426178..ad8c019e 100644 --- a/taiga/projects/templates/emails/membership_invitation-body-html.jinja +++ b/taiga/projects/templates/emails/membership_invitation-body-html.jinja @@ -1,28 +1,20 @@ -{% extends "emails/hero.jinja" %} - -{% set final_url = resolve_front_url("invitation", membership.token) %} -{% set final_url_name = "Taiga - Invitation to join on {0} project.".format(membership.project) %} +{% extends "emails/hero-body-html.jinja" %} {% block body %} -

You, or someone you know, has invited you to Taiga

-

The Taiga.io Deputy System Admin is commanded by His Highness The Chief Lord Oompa Loompa to extend a membership invitation to
{{ membership.email}}
and delights in the pleasure of welcoming you to join {{ membership.invited_by.full_name }} and others in the team as a new and right honorable member in good standing of the project titled: '{{ membership.project }}'.

-You may indicate your humble desire to accept this invitation by gently clicking here -Accept your invitation -{% if membership.invitation_extra_text %} -

And now some words from the jolly good fellow or sistren who thought so kindly as to invite you:

-

{{ membership.invitation_extra_text }}

-{% endif %} -

Dress: Morning Suit, Uniform, Lounge Suit, Birthday Suit or hoodie.

-{% endblock %} + {% trans full_name=membership.invited_by.get_full_name(), + project=membership.project %} +

You, or someone you know, has invited you to Taiga

+

Hi! {{ full_name }} has sent you an invitation to join a project called {{ project }} which is being managed on Taiga, a Free, open Source Agile Project Management Tool.

+ {% endtrans %} -{% block footer %} -Copyright © 2014 Taiga Agile, LLC, All rights reserved. -
-Contact us: -
-Support: -support@taiga.io -
-Our mailing address is: -https://groups.google.com/forum/#!forum/taigaio + {% if membership.invitation_extra_text %} + {% trans extra=membership.invitation_extra_text|linebreaksbr %} +

And now a few words from the jolly good fellow or sistren who thought so kindly as to invite you:

+

{{ extra }}

+ {% endtrans %} + {% endif %} + + {{ _("Accept your invitation") }} +

{{ _("The Taiga Team") }}

{% endblock %} diff --git a/taiga/projects/templates/emails/membership_invitation-body-text.jinja b/taiga/projects/templates/emails/membership_invitation-body-text.jinja index b96f4025..d2763684 100644 --- a/taiga/projects/templates/emails/membership_invitation-body-text.jinja +++ b/taiga/projects/templates/emails/membership_invitation-body-text.jinja @@ -1,18 +1,19 @@ -{% set final_url = resolve_front_url("invitation", membership.token) %} -{% set final_url_name = "Taiga - Invitation to join on {0} project.".format(membership.project) %} - -The Taiga.io Deputy System Admin is commanded by His Highness The Chief Lord Oompa Loompa to extend a membership invitation to {{ membership.email}} and delights in the pleasure of welcoming you to join {{ membership.invited_by.full_name }} and others in the team as a new and right honorable member in good standing of the project titled: '{{ membership.project }}'. - -You may indicate your humble desire to accept this invitation by gently clicking here: {{ final_url }} +{% trans full_name=membership.invited_by.get_full_name(), + project=membership.project %} +You, or someone you know, has invited you to Taiga +Hi! {{ full_name }} has sent you an invitation to join a project called {{ project }} which is being managed on Taiga, a Free, open Source Agile Project Management Tool. +{% endtrans %} {% if membership.invitation_extra_text %} + {% trans extra=membership.invitation_extra_text %} +And now a few words from the jolly good fellow or sistren who thought so kindly as to invite you: -And now some words from the jolly good fellow or sistren who thought so kindly as to invite you: - -{{ membership.invitation_extra_text }} - +{{ extra }} + {% endtrans %} {% endif %} - -Dress: Morning Suit, Uniform, Lounge Suit, Birthday Suit or hoodie. - -Further details: ({{ final_url }}) +{{ _("Accept your invitation to Taiga following whis link:") }} +{{ resolve_front_url("invitation", membership.token) }} +{% trans %} +--- +The Taiga Team +{% endtrans %} diff --git a/taiga/projects/templates/emails/membership_invitation-subject.jinja b/taiga/projects/templates/emails/membership_invitation-subject.jinja index 9eebc2a9..0b5206ef 100644 --- a/taiga/projects/templates/emails/membership_invitation-subject.jinja +++ b/taiga/projects/templates/emails/membership_invitation-subject.jinja @@ -1 +1,3 @@ -[Taiga] Invitation to join to the project '{{ membership.project|safe }}' +{% trans project=membership.project|safe %} +[Taiga] Invitation to join to the project '{{ project }}' +{% endtrans %} diff --git a/taiga/projects/templates/emails/membership_notification-body-html.jinja b/taiga/projects/templates/emails/membership_notification-body-html.jinja index fe5e0630..db777193 100644 --- a/taiga/projects/templates/emails/membership_notification-body-html.jinja +++ b/taiga/projects/templates/emails/membership_notification-body-html.jinja @@ -1,23 +1,12 @@ -{% extends "emails/hero.jinja" %} - -{% set final_url = resolve_front_url("project", membership.project.slug) %} -{% set final_url_name = "Taiga - Project '{0}'.".format(membership.project) %} +{% extends "emails/base-body-html.jinja" %} {% block body %} + {% trans url=resolve_front_url("project", membership.project.slug), + full_name=membership.user.get_full_name(), + project=membership.project %}

You have been added to a project

-

Hello {{ membership.user.get_full_name() }},
you have been added to the project {{ membership.project }}

- Go to project +

Hello {{ full_name }},
you have been added to the project {{ project }}

+ Go to project

The Taiga Team

-{% endblock %} - -{% block footer %} - Copyright © 2014 Taiga Agile, LLC, All rights reserved. -
- Contact us: -
- Support: - support@taiga.io -
- Our mailing address is: - https://groups.google.com/forum/#!forum/taigaio + {% endtrans %} {% endblock %} diff --git a/taiga/projects/templates/emails/membership_notification-body-text.jinja b/taiga/projects/templates/emails/membership_notification-body-text.jinja index b54a23d2..c9d94d67 100644 --- a/taiga/projects/templates/emails/membership_notification-body-text.jinja +++ b/taiga/projects/templates/emails/membership_notification-body-text.jinja @@ -1,6 +1,8 @@ -{% set final_url = resolve_front_url("project", membership.project.slug) %} - +{% trans url=resolve_front_url("project", membership.project.slug), + full_name=membership.user.get_full_name(), + project=membership.project %} You have been added to a project -Hello {{ membership.user.get_full_name() }},you have been added to the project {{ membership.project }} +Hello {{ full_name }},you have been added to the project {{ project }} -See project at ({{ final_url }}) +See project at {{ url }} +{% endtrans %} diff --git a/taiga/projects/templates/emails/membership_notification-subject.jinja b/taiga/projects/templates/emails/membership_notification-subject.jinja index 1e45591b..57d60ac6 100644 --- a/taiga/projects/templates/emails/membership_notification-subject.jinja +++ b/taiga/projects/templates/emails/membership_notification-subject.jinja @@ -1 +1,3 @@ -[Taiga] Added to the project '{{ membership.project|safe }}' +{% trans project=membership.project|safe %} +[Taiga] Added to the project '{{ project }}' +{% endtrans %} diff --git a/taiga/users/templates/emails/change_email-body-html.jinja b/taiga/users/templates/emails/change_email-body-html.jinja index 6eadbdf0..c1cfd438 100644 --- a/taiga/users/templates/emails/change_email-body-html.jinja +++ b/taiga/users/templates/emails/change_email-body-html.jinja @@ -1,24 +1,11 @@ -{% extends "emails/base.jinja" %} - -{% set final_url = resolve_front_url("change-email", user.email_token) %} -{% set final_url_name = "Taiga - Change email" %} +{% extends "emails/base-body-html.jinja" %} {% block body %} + {% trans full_name=user.get_full_name(), url=resolve_front_url("change-email", user.email_token) %}

Change your email

-

Hello {{ user.get_full_name() }},
please confirm your email

- Confirm email +

Hello {{ full_name }},
please confirm your email

+ Confirm email

You can ignore this message if you did not request.

The Taiga Team

-{% endblock %} - -{% block footer %} - Copyright © 2014 Taiga Agile, LLC, All rights reserved. -
- Contact us: -
- Support: - support@taiga.io -
- Our mailing address is: - https://groups.google.com/forum/#!forum/taigaio + {% endtrans %} {% endblock %} diff --git a/taiga/users/templates/emails/change_email-body-text.jinja b/taiga/users/templates/emails/change_email-body-text.jinja index ffb6e9d9..46aba26a 100644 --- a/taiga/users/templates/emails/change_email-body-text.jinja +++ b/taiga/users/templates/emails/change_email-body-text.jinja @@ -1,5 +1,10 @@ -Hello {{ user.get_full_name() }}, please confirm your email {{ resolve_front_url('change-email', user.email_token) }} +{% trans full_name=user.get_full_name(), url=resolve_front_url('change-email', user.email_token) %} +Hello {{ full_name }}, please confirm your email + +{{ url }} You can ignore this message if you did not request. +--- The Taiga Team +{% endtrans %} diff --git a/taiga/users/templates/emails/change_email-subject.jinja b/taiga/users/templates/emails/change_email-subject.jinja index e00ea7a5..52199560 100644 --- a/taiga/users/templates/emails/change_email-subject.jinja +++ b/taiga/users/templates/emails/change_email-subject.jinja @@ -1 +1 @@ -[Taiga] Change email +{{ _("[Taiga] Change email") }} diff --git a/taiga/users/templates/emails/password_recovery-body-html.jinja b/taiga/users/templates/emails/password_recovery-body-html.jinja index f74ebedb..46450731 100644 --- a/taiga/users/templates/emails/password_recovery-body-html.jinja +++ b/taiga/users/templates/emails/password_recovery-body-html.jinja @@ -1,24 +1,12 @@ -{% extends "emails/base.jinja" %} - -{% set final_url = resolve_front_url("change-password", user.token) %} -{% set final_url_name = "Taiga - Change password" %} +{% extends "emails/base-body-html.jinja" %} {% block body %} + {% trans full_name=user.get_full_name(), + url=resolve_front_url("change-password", user.token) %}

Recover your password

-

Hello {{ user.get_full_name() }},
you asked to recover your password

- Recover your password +

Hello {{ full_name }},
you asked to recover your password

+ Recover your password

You can ignore this message if you did not request.

The Taiga Team

-{% endblock %} - -{% block footer %} - Copyright © 2014 Taiga Agile, LLC, All rights reserved. -
- Contact us: -
- Support: - support@taiga.io -
- Our mailing address is: - https://groups.google.com/forum/#!forum/taigaio + {% endtrans %} {% endblock %} diff --git a/taiga/users/templates/emails/password_recovery-body-text.jinja b/taiga/users/templates/emails/password_recovery-body-text.jinja index d5e25baf..75bd1b95 100644 --- a/taiga/users/templates/emails/password_recovery-body-text.jinja +++ b/taiga/users/templates/emails/password_recovery-body-text.jinja @@ -1,7 +1,10 @@ -Hello {{ user.get_full_name() }}, you asked to recover your password +{% trans full_name=user.get_full_name(), url=resolve_front_url('change-password', user.token) %} +Hello {{ full_name }}, you asked to recover your password -{{ resolve_front_url('change-password', user.token) }} +{{ url }} You can ignore this message if you did not request. +--- The Taiga Team +{% endtrans %} diff --git a/taiga/users/templates/emails/password_recovery-subject.jinja b/taiga/users/templates/emails/password_recovery-subject.jinja index 86957e55..6193320d 100644 --- a/taiga/users/templates/emails/password_recovery-subject.jinja +++ b/taiga/users/templates/emails/password_recovery-subject.jinja @@ -1 +1 @@ -[Taiga] Password recovery +{{ _("[Taiga] Password recovery") }} diff --git a/taiga/users/templates/emails/registered_user-body-html.jinja b/taiga/users/templates/emails/registered_user-body-html.jinja index d939b1b1..efe77ace 100644 --- a/taiga/users/templates/emails/registered_user-body-html.jinja +++ b/taiga/users/templates/emails/registered_user-body-html.jinja @@ -1,30 +1,26 @@ -{% extends "emails/hero.jinja" %} +{% extends "emails/hero-body-html.jinja" %} {% block body %} + {% trans %} +

Thank you for registering in Taiga

We hope you enjoy it

We built Taiga because we wanted the project management tool that sits open on our computers all day long, to serve as a continued reminder of why we love to collaborate, code and design.

We built it to be beautiful, elegant, simple to use and fun - without forsaking flexibility and power.

The taiga Team -
{% endblock %} {% block footer %} -Copyright © 2014 Taiga Agile, LLC, All rights reserved. -
-Contact us: -
-Support: -support@taiga.io -
-Our mailing list is: -https://groups.google.com/forum/#!forum/taigaio -
-
-You may remove your account from this service clicking here + {{ super() }} +
+
+ {% trans url=resolve_front_url('cancel-account', cancel_token) %} + You may remove your account from this service clicking here + {% endtrans %} {% endblock %} diff --git a/taiga/users/templates/emails/registered_user-body-text.jinja b/taiga/users/templates/emails/registered_user-body-text.jinja index d01e0ceb..9ef756ce 100644 --- a/taiga/users/templates/emails/registered_user-body-text.jinja +++ b/taiga/users/templates/emails/registered_user-body-text.jinja @@ -1,3 +1,4 @@ +{% trans %} Thank you for registering in Taiga We hope you enjoy it @@ -8,11 +9,7 @@ We built it to be beautiful, elegant, simple to use and fun - without forsaking -- The taiga Team - -Copyright © 2014 Taiga Agile, LLC, All rights reserved. - -Contact us: - -Support: mailto:support@taiga.io -Our mailing list is: https://groups.google.com/forum/#!forum/taigaio -You may remove your account from this service: {{ resolve_front_url('cancel-account', cancel_token) }} +{% endtrans %} +{% trans url=resolve_front_url('cancel-account', cancel_token) %} +You may remove your account from this service: {{ url }} +{% endtrans %} diff --git a/taiga/users/templates/emails/registered_user-subject.jinja b/taiga/users/templates/emails/registered_user-subject.jinja index 527a27a8..45fe8698 100644 --- a/taiga/users/templates/emails/registered_user-subject.jinja +++ b/taiga/users/templates/emails/registered_user-subject.jinja @@ -1 +1 @@ -You've been Taigatized! +{{ _("You've been Taigatized!") }}