Skip to content

Commit 0baea58

Browse files
committed
improve email templates
1 parent 56ae908 commit 0baea58

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

backend/donations/views/redirections.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,9 @@ def post(self, request, ngo_url):
268268
{
269269
"ngo_address": ngo_address,
270270
"ngo_email": ngo.email,
271-
"month_limit": settings.DONATIONS_LIMIT_MONTH_NAME,
272-
"limit": settings.DONATIONS_LIMIT,
271+
"limit_day": settings.DONATIONS_LIMIT.day,
272+
"limit_month": settings.DONATIONS_LIMIT_MONTH_NAME,
273+
"limit_year": settings.DONATIONS_LIMIT.year,
273274
}
274275
)
275276
send_email(

backend/locale/en/LC_MESSAGES/django.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: PACKAGE VERSION\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2025-02-05 18:28+0200\n"
10+
"POT-Creation-Date: 2025-02-05 18:57+0200\n"
1111
"PO-Revision-Date: 2024-02-28 15:45+0000\n"
1212
"Last-Translator: Tudor Amariei <tudor.amariei@commitglobal.org>\n"
1313
"Language-Team: English <https://translate.commitglobal.org/projects/act4good/"
@@ -963,7 +963,7 @@ msgstr "Successful tasks"
963963
msgid "Un nou formular de redirecționare"
964964
msgstr "Un nou formular de redirecționare"
965965

966-
#: donations/views/redirections.py:254 donations/views/redirections.py:276
966+
#: donations/views/redirections.py:254 donations/views/redirections.py:277
967967
msgid "Formularul tău de redirecționare"
968968
msgstr "Formularul tău de redirecționare"
969969

@@ -1909,7 +1909,7 @@ msgstr ""
19091909
#, python-format
19101910
msgid ""
19111911
"Send it or submit it directly to the tax office (ANAF) in the area where you "
1912-
"are domiciled, until <strong>%(limit.day)s %(month_limit)s %(limit.year)s</"
1912+
"are domiciled, until <strong>%(limit_day)s %(limit_month)s %(limit_year)s</"
19131913
"strong>."
19141914
msgstr ""
19151915

backend/locale/ro/LC_MESSAGES/django.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: PACKAGE VERSION\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2025-02-05 18:28+0200\n"
10+
"POT-Creation-Date: 2025-02-05 18:57+0200\n"
1111
"PO-Revision-Date: 2024-03-07 11:27+0000\n"
1212
"Last-Translator: Tudor Amariei <tudor.amariei@commitglobal.org>\n"
1313
"Language-Team: Romanian <https://translate.commitglobal.org/projects/"
@@ -893,7 +893,7 @@ msgstr "Redirecționare reușită"
893893
msgid "Un nou formular de redirecționare"
894894
msgstr "Un nou formular de redirecționare"
895895

896-
#: donations/views/redirections.py:254 donations/views/redirections.py:276
896+
#: donations/views/redirections.py:254 donations/views/redirections.py:277
897897
msgid "Formularul tău de redirecționare"
898898
msgstr "Formularul tău de redirecționare"
899899

@@ -1849,11 +1849,11 @@ msgstr ""
18491849
#, python-format
18501850
msgid ""
18511851
"Send it or submit it directly to the tax office (ANAF) in the area where you "
1852-
"are domiciled, until <strong>%(limit.day)s %(month_limit)s %(limit.year)s</"
1852+
"are domiciled, until <strong>%(limit_day)s %(limit_month)s %(limit_year)s</"
18531853
"strong>."
18541854
msgstr ""
18551855
"Îl trimiți sau depui direct la unitatea fiscală (ANAF) în raza căreia ai "
1856-
"domiciliul, până pe <strong>%(limit.day)s %(month_limit)s %(limit.year)s</"
1856+
"domiciliul, până pe <strong>%(limit_day)s %(limit_month)s %(limit_year)s</"
18571857
"strong>."
18581858

18591859
#: templates/v2/emails/donor/redirection-sans-signature/main.html:44

backend/templates/v2/emails/donor/redirection-sans-signature/main.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ <h2>
3535
<li>
3636
{% blocktrans trimmed %}
3737
Send it or submit it directly to the tax office (ANAF) in the area where you are domiciled, until
38-
<strong>{{ limit.day }} {{ month_limit }} {{ limit.year }}</strong>.
38+
<strong>{{ limit_day }} {{ limit_month }} {{ limit_year }}</strong>.
3939
{% endblocktrans %}
4040
</li>
4141
</ul>

0 commit comments

Comments
 (0)