Skip to content

Commit e6dcf9c

Browse files
Merge pull request #620 from coders4help/release/v4.2.0
Release `v4.2.0`
2 parents 5217091 + b3c629d commit e6dcf9c

File tree

62 files changed

+1046
-1147
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+1046
-1147
lines changed

accounts/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class RegistrationProfileAdmin(RegistrationAdmin):
4949
def user_email(self, obj):
5050
return obj.user.email
5151

52-
user_email.short_description = _("email")
52+
user_email.short_description = _("e-mail address")
5353
user_email.admin_order_field = "user__email"
5454

5555
def user_date_joined(self, obj):

accounts/auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ def authenticate(self, request, username=None, password=None, **kwargs):
1212
user = UserModel._default_manager.get(email__iexact=username)
1313
return super().authenticate(request, user.username, password, **kwargs)
1414
except UserModel.DoesNotExist:
15-
logger.debug('No user with email address "%s"', username)
15+
logger.debug('No user with e-mail address "%s"', username)
1616
except UserModel.MultipleObjectsReturned:
1717
logger.warning(
18-
'Found %s users with email address "%s"',
18+
'Found %s users with e-mail address "%s"',
1919
UserModel._default_manager.filter(email=username).count(),
2020
username,
2121
)

accounts/forms.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from django import forms
2+
from django.core.exceptions import ValidationError
23
from django.core.validators import RegexValidator
34
from django.utils.text import gettext_lazy as _
45

@@ -36,6 +37,19 @@ class RegistrationForm(RegistrationFormUniqueEmail):
3637
],
3738
)
3839

40+
email = forms.EmailField(label=_("e-mail address"))
41+
email2 = forms.EmailField(label=_("repeat e-mail address"))
42+
3943
accept_privacy_policy = forms.BooleanField(
4044
required=True, initial=False, label=_("Accept privacy policy")
4145
)
46+
47+
def clean_email2(self):
48+
email = self.cleaned_data.get("email")
49+
email2 = self.cleaned_data.get("email2")
50+
if email and email2 and email != email2:
51+
raise ValidationError(
52+
_("The two e-mail addresses didn’t match."),
53+
code="email_mismatch",
54+
)
55+
return email2

accounts/templates/user_account_delete.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@
77
{% block content %}
88
<div class="col-md-8 col-md-offset-2">
99
<ul class="list-group">
10-
<li class="list-group-item list-group-item-info">{% translate 'Username' %}: {{ user.username }}</li>
10+
{% translate 'username' as username_label %}
11+
{% translate 'e-mail address' as email_address_label %}
12+
13+
<li class="list-group-item list-group-item-info">{{ username_label|title }}: {{ user.username }}</li>
1114
<li class="list-group-item list-group-item-info">{% translate 'First name' %}: {{ user.first_name }}</li>
1215
<li class="list-group-item list-group-item-info">{% translate 'Last name' %}: {{ user.last_name }}</li>
13-
<li class="list-group-item list-group-item-info">{% translate 'Email' %}: {{ user.email }}</li>
16+
<li class="list-group-item list-group-item-info">{{ email_address_label|title }}: {{ user.email }}</li>
1417
</ul>
1518
{% translate 'If you delete your account, this information will be anonymized, and its not possible for you to log into Volunteer-Planner anymore.' %}
1619
{% translate 'Its not possible to recover this information. If you want to work as volunteer again, you will have to create a new account.' %}

accounts/templates/user_detail.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@
77
{% block content %}
88
<div class="col-md-8 col-md-offset-2">
99
<ul class="list-group">
10-
<li class="list-group-item list-group-item-info">{% translate 'Username' %}: {{ user.username }}</li>
10+
{% translate 'username' as username_label %}
11+
{% translate 'e-mail address' as email_address_label %}
12+
<li class="list-group-item list-group-item-info">{{ username_label|title }}: {{ user.username }}</li>
1113
<li class="list-group-item list-group-item-info">{% translate 'First name' %}: {{ user.first_name }}</li>
1214
<li class="list-group-item list-group-item-info">{% translate 'Last name' %}: {{ user.last_name }}</li>
13-
<li class="list-group-item list-group-item-info">{% translate 'Email' %}: {{ user.email }}</li>
15+
<li class="list-group-item list-group-item-info">{{ email_address_label|title }}: {{ user.email }}</li>
1416
</ul>
1517
<div>
1618
<a href="{% url 'account_edit' %}" class="btn btn-default">{% translate 'Edit Account' %}</a>

common/templatetags/site.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# coding: utf-8
22

33
# coding: utf-8
4-
5-
from django import template
4+
from django import conf, template
65

76
from django.contrib.sites.shortcuts import get_current_site
87

@@ -12,3 +11,8 @@
1211
@register.simple_tag
1312
def request_site(request):
1413
return get_current_site(request_site)
14+
15+
16+
@register.simple_tag
17+
def get_version():
18+
return conf.settings.VERSION

locale/ar/LC_MESSAGES/django.po

Lines changed: 27 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
# Maha Abdulkaream Mohammad Sharaf, 2022
66
# Maha Abdulkaream Mohammad Sharaf, 2022
77
# Night Bird, 2022
8+
# Night Bird, 2022
89
msgid ""
910
msgstr ""
1011
"Project-Id-Version: volunteer-planner.org\n"
1112
"Report-Msgid-Bugs-To: \n"
12-
"POT-Creation-Date: 2022-04-13 23:55+0200\n"
13+
"POT-Creation-Date: 2022-04-14 15:05+0200\n"
1314
"PO-Revision-Date: 2015-09-24 12:23+0000\n"
1415
"Last-Translator: Night Bird, 2022\n"
1516
"Language-Team: Arabic (http://www.transifex.com/coders4help/volunteer-planner/language/ar/)\n"
@@ -25,7 +26,7 @@ msgstr "الاسم الأول "
2526
msgid "last name"
2627
msgstr "اسم العائلة"
2728

28-
msgid "email"
29+
msgid "e-mail address"
2930
msgstr "البريد الإلكتروني "
3031

3132
msgid "date joined"
@@ -49,9 +50,15 @@ msgstr "اسم المستخدم يجب أن ينتهي إما بحرف هجائ
4950
msgid "Username must not contain consecutive \".\" or \"_\" characters."
5051
msgstr "اسم المستخدم يجب ألّا يتضمن الرموز التالية \".\" أو \"_\" بشكل متتالي"
5152

53+
msgid "repeat e-mail address"
54+
msgstr "البريد الإلكتروني "
55+
5256
msgid "Accept privacy policy"
5357
msgstr "قَبُول سياسة الخصوصية"
5458

59+
msgid "The two e-mail addresses didn’t match."
60+
msgstr ""
61+
5562
msgid "user account"
5663
msgstr "حساب المستخدم"
5764

@@ -97,7 +104,7 @@ msgstr "لا يوجد بعد مناوبات مقيدة"
97104
msgid "Show my work shifts in the future"
98105
msgstr "عرض فترات مناوباتي القادمة"
99106

100-
msgid "Username"
107+
msgid "username"
101108
msgstr "اسم المستخدم "
102109

103110
msgid "First name"
@@ -106,9 +113,6 @@ msgstr "الاسم الأول "
106113
msgid "Last name"
107114
msgstr "اللقب"
108115

109-
msgid "Email"
110-
msgstr "البريد الإلكتروني"
111-
112116
msgid "If you delete your account, this information will be anonymized, and its not possible for you to log into Volunteer-Planner anymore."
113117
msgstr "إذا قمت بحذف حسابك, ستصبح هذه المعلومات مجهولة المصدر, ولن يكون بإمكانك تسجيل الدخول volunteer- بعد الآن planner.org"
114118

@@ -469,8 +473,8 @@ msgstr "مجانا, دون إعلانات"
469473

470474
msgid ""
471475
"\n"
472-
" <p> The platform was build by a group of volunteering professionals in the area of software development, project management, design,\n"
473-
" and marketing. The code is open sourced for non-commercial use. Private data (emailaddresses, profile data etc.) will be not given to any third party.</p>\n"
476+
" <p> The platform was built by a group of volunteering professionals in the area of software development, project management, design,\n"
477+
" and marketing. The code is open sourced for non-commercial use. Private data (e-mail addresses, profile data etc.) will be not given to any third party.</p>\n"
474478
" "
475479
msgstr ""
476480

@@ -900,7 +904,7 @@ msgstr ""
900904
msgid "Covered"
901905
msgstr ""
902906

903-
msgid "Send email to all volunteers"
907+
msgid "Send e-mail to all volunteers"
904908
msgstr "إرسال بريد إلكتروني إلى جميع المتطوعين"
905909

906910
msgid "Drop out"
@@ -995,10 +999,10 @@ msgstr ""
995999
msgid "You successfully left this shift."
9961000
msgstr ""
9971001

998-
msgid "You have no permissions to send emails!"
1002+
msgid "You have no permissions to send e-mails!"
9991003
msgstr ""
10001004

1001-
msgid "Email has been sent."
1005+
msgid "E-mail has been sent."
10021006
msgstr "تم إرسال البريد الإلكتروني"
10031007

10041008
#, python-brace-format
@@ -1045,10 +1049,6 @@ msgstr ""
10451049
msgid "shift template"
10461050
msgstr ""
10471051

1048-
#, python-brace-format
1049-
msgid "{task_name} - {workplace_name}"
1050-
msgstr ""
1051-
10521052
msgid "Home"
10531053
msgstr "الصفحة الرئيسية "
10541054

@@ -1208,13 +1208,6 @@ msgstr ""
12081208
msgid "Your account is now approved. You can log in using the following link"
12091209
msgstr "تم تفعيل حسابك الآن. يمكنك تسجيل الدخول باستخدام الرابط التالي"
12101210

1211-
msgid "Email address"
1212-
msgstr "البريد الإلكتروني "
1213-
1214-
#, python-format
1215-
msgid "%(email_trans)s / %(username_trans)s"
1216-
msgstr ""
1217-
12181211
msgid "Password"
12191212
msgstr "كلمة المرور "
12201213

@@ -1233,9 +1226,6 @@ msgstr "تم تغيير كلمة المرور بنجاح "
12331226
msgid "Change Password"
12341227
msgstr "قم بتغيير كلمة المرور "
12351228

1236-
msgid "Change password"
1237-
msgstr "تغيير كلمة المرور"
1238-
12391229
msgid "Password reset complete"
12401230
msgstr "اعادة تعيين كلمة المرور تم بنجاح"
12411231

@@ -1257,15 +1247,15 @@ msgstr "ادخل كلمة المرور الجديدة لإعادة تعيين ك
12571247
msgid "Password reset"
12581248
msgstr "إعادة تعيين كلمة المرور"
12591249

1260-
msgid "We sent you an email with a link to reset your password."
1250+
msgid "We sent you an e-mail with a link to reset your password."
12611251
msgstr "تم إرسال بريد إلكتروني يحتوي على رابط لإعادة تعيين كلمة المرور الخاصة بك"
12621252

1263-
msgid "Please check your email and click the link to continue."
1253+
msgid "Please check your e-mails and click the link to continue."
12641254
msgstr "يرجى التحقق من بريدك الإلكتروني والنقر على الرابط للمتابعة"
12651255

12661256
#, python-format
12671257
msgid ""
1268-
"You are receiving this email because you (or someone pretending to be you)\n"
1258+
"You are receiving this e-mail because you (or someone pretending to be you)\n"
12691259
"requested that your password be reset on the %(domain)s site. If you do not\n"
12701260
"wish to reset your password, please ignore this message.\n"
12711261
"\n"
@@ -1288,13 +1278,13 @@ msgstr "إعادة تعيين كلمة المرور"
12881278
msgid "No Problem! We'll send you instructions on how to reset your password."
12891279
msgstr ""
12901280

1291-
msgid "Activation email sent"
1281+
msgid "Activation e-mail sent"
12921282
msgstr "تم إرسال بريد التفعيل"
12931283

1294-
msgid "An activation mail will be sent to you email address."
1284+
msgid "An activation e-mail will be sent to your e-mail address."
12951285
msgstr "سيتم إرسال بريد التفعيل إلى عنوان بريدك الإلكتروني"
12961286

1297-
msgid "Please confirm registration with the link in the email. If you haven't received it in 10 minutes, look for it in your spam folder."
1287+
msgid "Please confirm registration with the link in the e-mail. If you haven't received it in 10 minutes, look for it in your spam folder."
12981288
msgstr "الرجاء تأكيد تسجيلك بواسطة الضغط على الرابط في البريد الإلكتروني. في حال عدم تلقي البريد الإلكتروني خلال 10 دقائق يرجى البحث في مجلد البريد العشوائي"
12991289

13001290
msgid "Register for an account"
@@ -1308,14 +1298,17 @@ msgstr ""
13081298
msgid "Create a new account"
13091299
msgstr "إنشاء حساب جديد"
13101300

1311-
msgid "Volunteer-Planner and shelters will send you emails concerning your shifts."
1312-
msgstr ""
1313-
13141301
msgid "Your username will be visible to other users. Don't use spaces or special characters."
13151302
msgstr ""
13161303
"اسم المستخدم الخاص بك سيكون مرئيا للآخرين.\n"
13171304
"يجب عدم استخدام مسافات أو أحرفا خاصة."
13181305

1306+
msgid "Volunteer Planner and event organizers might send you e-mails concerning your volunteer work."
1307+
msgstr ""
1308+
1309+
msgid "Please repeat your e-mail address."
1310+
msgstr ""
1311+
13191312
msgid "Repeat password"
13201313
msgstr "يرجى إعادة إدخال كلمة المرور"
13211314

0 commit comments

Comments
 (0)