Skip to content

Commit

Permalink
Merge pull request #553 from coders4help/develop
Browse files Browse the repository at this point in the history
Apply fixes for release
  • Loading branch information
pitpalme authored Apr 2, 2022
2 parents 5a2f0ed + e35f015 commit 7027789
Show file tree
Hide file tree
Showing 99 changed files with 3,032 additions and 396 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "pip" # See documentation for possible values
directory: "/requirements" # Location of package manifests
schedule:
interval: "daily"
9 changes: 8 additions & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: Check & Test

on: [push, pull_request]
on:
push:
branches:
- develop
- main
- master
- release/*
pull_request:

jobs:
check-migrations:
Expand Down
28 changes: 14 additions & 14 deletions accounts/templates/shift_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,60 +9,60 @@

<ul class="list-group">
{% if shifts_today.count > 0 %}
{% trans 'My shifts today:' %}
{% translate 'My shifts today:' %}
{% else %}
{% trans 'No shifts today.' %}
{% translate 'No shifts today.' %}
{% endif %}

{% for shifts in shifts_today %}
<li class="list-group-item list-group-item-info">{{ shifts.shift }}
<a href="{{shifts.shift.get_absolute_url}}/direct/" class="btn btn-default">{% trans 'Show this work shift' %}</a>
<a href="{{shifts.shift.get_absolute_url}}/direct/" class="btn btn-default">{% translate 'Show this work shift' %}</a>
</li>
{% endfor %}
</ul>

<ul class="list-group">
{% if shifts_tomorrow.count > 0 %}
{% trans 'My shifts tomorrow:' %}
{% translate 'My shifts tomorrow:' %}
{% else %}
{% trans 'No shifts tomorrow.' %}
{% translate 'No shifts tomorrow.' %}
{% endif %}

{% for shifts in shifts_tomorrow %}
<li class="list-group-item list-group-item-info">{{ shifts.shift }}
<a href="{{shifts.shift.get_absolute_url}}/direct/" class="btn btn-default">{% trans 'Show this work shift' %}</a>
<a href="{{shifts.shift.get_absolute_url}}/direct/" class="btn btn-default">{% translate 'Show this work shift' %}</a>
</li>
{% endfor %}
</ul>

<ul class="list-group">
{% if shifts_day_after_tomorrow.count > 0 %}
{% trans 'My shifts the day after tomorrow:' %}
{% translate 'My shifts the day after tomorrow:' %}
{% else %}
{% trans 'No shifts the day after tomorrow.' %}
{% translate 'No shifts the day after tomorrow.' %}
{% endif %}

{% for shifts in shifts_day_after_tomorrow %}
<li class="list-group-item list-group-item-info">{{ shifts.shift }}
<a href="{{shifts.shift.get_absolute_url}}/direct/" class="btn btn-default">{% trans 'Show this work shift' %}</a>
<a href="{{shifts.shift.get_absolute_url}}/direct/" class="btn btn-default">{% translate 'Show this work shift' %}</a>
</li>
{% endfor %}
</ul>

<ul class="list-group">
{% if shifts_further_future.count > 0 %}
{% trans 'Further shifts:' %}
{% translate 'Further shifts:' %}
{% else %}
{% trans 'No further shifts.' %}
{% translate 'No further shifts.' %}
{% endif %}

{% for shifts in shifts_further_future %}
<li class="list-group-item list-group-item-info">{{ shifts.shift }}
<a href="{{shifts.shift.get_absolute_url}}/direct/" class="btn btn-default">{% trans 'Show this work shift' %}</a>
<a href="{{shifts.shift.get_absolute_url}}/direct/" class="btn btn-default">{% translate 'Show this work shift' %}</a>
</li>

{% endfor %}
</ul>
<a href="{% url 'shift_list_done' %}" class="btn btn-default">{% trans 'Show my work shifts in the past' %}</a>
<a href="{% url 'shift_list_done' %}" class="btn btn-default">{% translate 'Show my work shifts in the past' %}</a>
</div>
{% endblock %}
{% endblock %}
8 changes: 4 additions & 4 deletions accounts/templates/shift_list_done.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@

<ul class="list-group">
{% if shifts_past.count > 0 %}
{% trans 'My work shifts in the past:' %}
{% translate 'My work shifts in the past:' %}
{% else %}
{% trans 'No work shifts in the past days yet.' %}
{% translate 'No work shifts in the past days yet.' %}
{% endif %}

{% for shifts in shifts_past %}
<li class="list-group-item list-group-item-info">{{ shifts.shift }}</li>
{% endfor %}
</ul>
<a href="{% url 'shift_list_active' %}" class="btn btn-default">{% trans 'Show my work shifts in the future' %}</a>
<a href="{% url 'shift_list_active' %}" class="btn btn-default">{% translate 'Show my work shifts in the future' %}</a>
</div>
{% endblock %}
{% endblock %}
16 changes: 8 additions & 8 deletions accounts/templates/user_account_delete.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
{% block content %}
<div class="col-md-8 col-md-offset-2">
<ul class="list-group">
<li class="list-group-item list-group-item-info">{% trans 'Username' %}: {{ user.username }}</li>
<li class="list-group-item list-group-item-info">{% trans 'First name' %}: {{ user.first_name }}</li>
<li class="list-group-item list-group-item-info">{% trans 'Last name' %}: {{ user.last_name }}</li>
<li class="list-group-item list-group-item-info">{% trans 'Email' %}: {{ user.email }}</li>
<li class="list-group-item list-group-item-info">{% translate 'Username' %}: {{ user.username }}</li>
<li class="list-group-item list-group-item-info">{% translate 'First name' %}: {{ user.first_name }}</li>
<li class="list-group-item list-group-item-info">{% translate 'Last name' %}: {{ user.last_name }}</li>
<li class="list-group-item list-group-item-info">{% translate 'Email' %}: {{ user.email }}</li>
</ul>
{% trans 'If you delete your account, this information will be anonymized, and its not possible for you to log into Volunteer-Planner anymore.' %}
{% trans 'Its not possible to recover this information. If you want to work as volunteer again, you will have to create a new account.' %}
{% translate 'If you delete your account, this information will be anonymized, and its not possible for you to log into Volunteer-Planner anymore.' %}
{% translate 'Its not possible to recover this information. If you want to work as volunteer again, you will have to create a new account.' %}
<div>
<a href="{% url 'account_delete_final' %}" class="btn btn-danger">{% trans 'Delete Account (no additional warning)' %}</a>
<a href="{% url 'account_delete_final' %}" class="btn btn-danger">{% translate 'Delete Account (no additional warning)' %}</a>
</div>
</div>
{% endblock %}
{% endblock %}
2 changes: 1 addition & 1 deletion accounts/templates/user_account_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<form action="." method="POST">
{% csrf_token %}
{{ form.as_p }}
<input class="button" type="submit" value="{% trans 'Save' %}">
<input class="button" type="submit" value="{% translate 'Save' %}">
</form>
</div>
{% endblock %}
12 changes: 6 additions & 6 deletions accounts/templates/user_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
{% block content %}
<div class="col-md-8 col-md-offset-2">
<ul class="list-group">
<li class="list-group-item list-group-item-info">{% trans 'Username' %}: {{ user.username }}</li>
<li class="list-group-item list-group-item-info">{% trans 'First name' %}: {{ user.first_name }}</li>
<li class="list-group-item list-group-item-info">{% trans 'Last name' %}: {{ user.last_name }}</li>
<li class="list-group-item list-group-item-info">{% trans 'Email' %}: {{ user.email }}</li>
<li class="list-group-item list-group-item-info">{% translate 'Username' %}: {{ user.username }}</li>
<li class="list-group-item list-group-item-info">{% translate 'First name' %}: {{ user.first_name }}</li>
<li class="list-group-item list-group-item-info">{% translate 'Last name' %}: {{ user.last_name }}</li>
<li class="list-group-item list-group-item-info">{% translate 'Email' %}: {{ user.email }}</li>
</ul>
<div>
<a href="{% url 'account_edit' %}" class="btn btn-default">{% trans 'Edit Account' %}</a>
<a href="{% url 'account_delete' %}" class="btn btn-danger">{% trans 'Delete Account' %}</a>
<a href="{% url 'account_edit' %}" class="btn btn-default">{% translate 'Edit Account' %}</a>
<a href="{% url 'account_delete' %}" class="btn btn-danger">{% translate 'Delete Account' %}</a>
</div>
</div>
{% endblock %}
2 changes: 1 addition & 1 deletion accounts/templates/user_detail_deleted.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

{% block content %}
<div class="col-md-8 col-md-offset-2">
{% trans 'Your user account has been deleted.' %}
{% translate 'Your user account has been deleted.' %}
</div>
{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h2>{{ inline_admin_formset.opts.verbose_name_plural|capfirst }}</h2>
id="{{ inline_admin_formset.formset.prefix }}-
{% if not forloop.last %}{{ forloop.counter0 }}{% else %}empty{% endif %}">
{% if inline_admin_form.show_url %}
<a href="{{ inline_admin_form.absolute_url }}">{% trans "View on site" %}</a>{% endif %}
<a href="{{ inline_admin_form.absolute_url }}">{% translate "View on site" %}</a>{% endif %}
{% if inline_admin_formset.formset.can_delete and inline_admin_form.original %}
<span class="delete">{{ inline_admin_form.deletion_field.field }} {{ inline_admin_form.deletion_field.label_tag }}</span>{% endif %}
</h3>
Expand All @@ -29,8 +29,8 @@ <h2>{{ inline_admin_formset.opts.verbose_name_plural|capfirst }}</h2>
$("#{{ inline_admin_formset.formset.prefix }}-group .inline-related").stackedFormset({
prefix: '{{ inline_admin_formset.formset.prefix }}',
adminStaticPrefix: '{% static "admin/" %}',
deleteText: "{% trans "Remove" %}",
addText: "{% blocktrans with verbose_name=inline_admin_formset.opts.verbose_name|capfirst %}Add another {{ verbose_name }}{% endblocktrans %}"
deleteText: "{% translate "Remove" %}",
addText: "{% blocktranslate with verbose_name=inline_admin_formset.opts.verbose_name|capfirst %}Add another {{ verbose_name }}{% endblocktranslate %}"
});
})(django.jQuery);
</script>
2 changes: 1 addition & 1 deletion content/templates/flatpages/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

{% if perms.flatpages.can_change_page %}
<hr/>
<a href="{% url 'admin:flatpages_flatpage_change' flatpage.id %}">{% trans "Edit this page" %}</a>
<a href="{% url 'admin:flatpages_flatpage_change' flatpage.id %}">{% translate "Edit this page" %}</a>
{% endif %}

{% endblock %}
Expand Down
80 changes: 79 additions & 1 deletion locale/ar/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: volunteer-planner.org\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-03-30 18:28+0200\n"
"POT-Creation-Date: 2022-04-02 18:42+0200\n"
"PO-Revision-Date: 2022-03-15 17:56+0000\n"
"Last-Translator: Christoph Meißner\n"
"Language-Team: Arabic (http://www.transifex.com/coders4help/volunteer-planner/language/ar/)\n"
Expand Down Expand Up @@ -734,6 +734,9 @@ msgstr ""
msgid "scheduler"
msgstr ""

msgid "Write a message"
msgstr ""

msgid "slots"
msgstr ""

Expand Down Expand Up @@ -774,6 +777,48 @@ msgstr ""
msgid "shift helpers"
msgstr ""

msgid "shift notification"
msgid_plural "shift notifications"
msgstr[0] ""
msgstr[1] ""
msgstr[2] ""
msgstr[3] ""
msgstr[4] ""
msgstr[5] ""

msgid "Message"
msgstr ""

msgid "sender"
msgstr ""

msgid "send date"
msgstr ""

msgid "Shift"
msgstr ""

msgid "recipients"
msgstr ""

#, python-brace-format
msgid "Volunteer-Planner: A Message from shift manager of {shift_title}"
msgstr ""

#, python-format
msgid ""
"Hello %(recipient)s,\n"
"The shift manager of the shift %(shift_title)s at %(location)s wants to let you know:\n"
"----------------------\n"
"%(message)s\n"
"----------------------\n"
"Please reply to %(sender_email)s for further questions.\n"
"\n"
"\n"
"Best,\n"
"Your volunteer-planner.org team\n"
msgstr ""

msgctxt "helpdesk shifts heading"
msgid "shifts"
msgstr ""
Expand Down Expand Up @@ -835,6 +880,9 @@ msgstr ""
msgid "Users"
msgstr ""

msgid "Send message"
msgstr ""

msgid "You"
msgstr ""

Expand All @@ -845,6 +893,9 @@ msgstr ""
msgid "Covered"
msgstr ""

msgid "Send email to all volunteers"
msgstr ""

msgid "Drop out"
msgstr ""

Expand All @@ -860,6 +911,12 @@ msgstr ""
msgid "Become member"
msgstr ""

msgid "send"
msgstr ""

msgid "cancel"
msgstr ""

#, python-format
msgid ""
"\n"
Expand All @@ -880,6 +937,21 @@ msgstr ""
msgid "Members only"
msgstr ""

#, python-format
msgid ""
"Hello %(recipient)s,\n"
"\n"
"The shift manager of the shift %(shift_title)s at %(location)s wants to let you know:\n"
"----------------------\n"
"%(message)s\n"
"----------------------\n"
"Please reply to %(sender_email)s for further questions.\n"
"\n"
"\n"
"Best,\n"
"Your volunteer-planner.org team\n"
msgstr ""

#, python-format
msgid ""
"\n"
Expand Down Expand Up @@ -931,6 +1003,12 @@ msgstr ""
msgid "You successfully left this shift."
msgstr ""

msgid "You have no permissions to send emails!"
msgstr ""

msgid "Email has been sent."
msgstr ""

#, python-brace-format
msgid "A shift already exists at {date}"
msgid_plural "{num_shifts} shifts already exists at {date}"
Expand Down
Loading

0 comments on commit 7027789

Please sign in to comment.