Skip to content

Commit a7bb516

Browse files
committed
fix: update donation form limits to use day_limit variable
1 parent a55b522 commit a7bb516

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

backend/donations/views/redirections.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ def get_context_data(self, cause_slug, **kwargs):
138138
"donation_status": donation_status,
139139
"is_admin": user.is_staff,
140140
"limit": settings.DONATIONS_LIMIT,
141+
"day_limit": settings.DONATIONS_LIMIT.day,
141142
"month_limit": settings.DONATIONS_LIMIT_MONTH_NAME,
142143
}
143144
)

backend/locale/en/LC_MESSAGES/django.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3016,11 +3016,11 @@ msgstr "Notice!"
30163016
msgid ""
30173017
"The donation form can only be filled out between <span class=\"text-"
30183018
"amber-600\">January 1st</span> and <span class=\"text-"
3019-
"amber-600\">%(limit.day)s %(month_limit)s</span> of the current year."
3019+
"amber-600\">%(day_limit)s %(month_limit)s</span> of the current year."
30203020
msgstr ""
30213021
"The donation form can only be filled out between <span class=\"text-"
30223022
"amber-600\">January 1st</span> and <span class=\"text-"
3023-
"amber-600\">%(limit.day)s %(month_limit)s</span> of the current year."
3023+
"amber-600\">%(day_limit)s %(month_limit)s</span> of the current year."
30243024

30253025
#: templates/v2/form/redirection-header.html:67
30263026
msgid "Description"

backend/locale/hy/LC_MESSAGES/django.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3113,7 +3113,7 @@ msgstr ""
31133113
msgid ""
31143114
"The donation form can only be filled out between <span class=\"text-"
31153115
"amber-600\">January 1st</span> and <span class=\"text-"
3116-
"amber-600\">%(limit.day)s %(month_limit)s</span> of the current year."
3116+
"amber-600\">%(day_limit)s %(month_limit)s</span> of the current year."
31173117
msgstr ""
31183118

31193119
#: templates/v2/form/redirection-header.html:67

backend/locale/ro/LC_MESSAGES/django.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2897,11 +2897,11 @@ msgstr "Notă!"
28972897
msgid ""
28982898
"The donation form can only be filled out between <span class=\"text-"
28992899
"amber-600\">January 1st</span> and <span class=\"text-"
2900-
"amber-600\">%(limit.day)s %(month_limit)s</span> of the current year."
2900+
"amber-600\">%(day_limit)s %(month_limit)s</span> of the current year."
29012901
msgstr ""
2902-
"Formularul de donație poate fi completat doar între <span class=\"text-"
2902+
"Formularul de redirecționare poate fi completat doar între <span class=\"text-"
29032903
"amber-600\">1 ianuarie</span> și <span class=\"text-"
2904-
"amber-600\">%(limit.day)s %(month_limit)s</span> al anului curent."
2904+
"amber-600\">%(day_limit)s %(month_limit)s</span> al anului curent."
29052905

29062906
#: templates/v2/form/redirection-header.html:67
29072907
msgid "Description"

backend/templates/v2/form/redirection-closed.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ <h1 class="font-semibold text-4xl">
1010
The donation form can only be filled out between
1111
<span class="text-amber-600">January 1st</span>
1212
and
13-
<span class="text-amber-600">{{ limit.day }} {{ month_limit }}</span>
13+
<span class="text-amber-600">{{ day_limit }} {{ month_limit }}</span>
1414
of the current year.
1515
{% endblocktranslate %}
1616
</h1>

0 commit comments

Comments
 (0)