Skip to content

Commit

Permalink
Translations update from Hosted Weblate (#841)
Browse files Browse the repository at this point in the history
* Translated using Weblate (German)

Currently translated at 100.0% (516 of 516 strings)

Translation: ephios/ephios
Translate-URL: https://hosted.weblate.org/projects/ephios/ephios/de/

* refactor to only use plural of workinghours

Co-authored-by: Julian B <[email protected]>
  • Loading branch information
weblate and jeriox authored Dec 20, 2022
1 parent d56e435 commit 61adab4
Show file tree
Hide file tree
Showing 10 changed files with 91 additions and 104 deletions.
2 changes: 1 addition & 1 deletion ephios/core/templates/core/userprofile_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h1>{% trans "Users" %}</h1>
<td class="d-none d-lg-table-cell">{% include "core/userprofile_badges.html" with userprofile=userprofile %}</td>
<td class="d-flex">
<a class="btn btn-secondary btn-sm text-nowrap"
href="{% url "core:workinghour_detail" userprofile.pk %}"><span
href="{% url "core:workinghours_detail" userprofile.pk %}"><span
class="fa fa-eye"></span> <span
class="d-none d-md-inline">{% trans "View working hours" %}</span></a>
<a class="btn btn-secondary btn-sm text-nowrap ms-1"
Expand Down
8 changes: 4 additions & 4 deletions ephios/core/templates/core/userprofile_workinghours.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ <h1 class="page-header">
</h1>
{% if can_grant %}
<a class="btn btn-primary"
href="{% url "core:workinghour_add" userprofile.pk %}">{% translate "Add working hours" %}</a>
href="{% url "core:workinghours_add" userprofile.pk %}">{% translate "Add working hours" %}</a>
{% elif own_profile %}
<a class="btn btn-primary"
href="{% url "core:workinghour_request" %}">{% translate "Request working hours" %}</a>
href="{% url "core:workinghours_request" %}">{% translate "Request working hours" %}</a>
{% endif %}
<table id="workinghours_table" class="table table-striped display">
<thead>
Expand All @@ -40,8 +40,8 @@ <h1 class="page-header">
{% if item.type == "event" %}
<a class="btn btn-secondary btn-sm text-nowrap" href="{% url "core:event_detail" item.origin_id "none" %}"><span class="fa fa-eye"></span> <span class="d-none d-md-inline">{% trans "View event" %}</span></a>
{% else %}
<a class="btn btn-secondary btn-sm text-nowrap" href="{% url "core:workinghour_edit" item.origin_id %}"><span class="fa fa-edit"></span> <span class="d-none d-md-inline">{% trans "Edit" %}</span></a>
<a class="btn btn-secondary btn-sm text-nowrap" href="{% url "core:workinghour_delete" item.origin_id %}"><span class="fa fa-trash"></span> <span class="d-none d-md-inline">{% trans "Delete" %}</span></a>
<a class="btn btn-secondary btn-sm text-nowrap" href="{% url "core:workinghours_edit" item.origin_id %}"><span class="fa fa-edit"></span> <span class="d-none d-md-inline">{% trans "Edit" %}</span></a>
<a class="btn btn-secondary btn-sm text-nowrap" href="{% url "core:workinghours_delete" item.origin_id %}"><span class="fa fa-trash"></span> <span class="d-none d-md-inline">{% trans "Delete" %}</span></a>
{% endif %}
{% endif %}
</td>
Expand Down
8 changes: 4 additions & 4 deletions ephios/core/templates/core/workinghours_confirm_delete.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
{% load static %}

{% block title %}
{% trans "Delete working hour" %}
{% trans "Delete working hours" %}
{% endblock %}

{% block content %}
<div class="page-header">
<h1>{% trans "Delete working hour" %}</h1>
<h1>{% trans "Delete working hours" %}</h1>
</div>

<form method="post">{% csrf_token %}
<p>{% blocktrans %}Are you sure you want to delete the working hour "{{ workinghours }}"?{% endblocktrans %}</p>
<a role="button" class="btn btn-secondary" href="{% url "core:workinghour_detail" workinghours.user.pk %}">{% trans "Back" %}</a>
<p>{% blocktrans %}Are you sure you want to delete the working hours "{{ workinghours }}"?{% endblocktrans %}</p>
<a role="button" class="btn btn-secondary" href="{% url "core:workinghours_detail" workinghours.user.pk %}">{% trans "Back" %}</a>
<button type="submit" class="btn btn-danger">{% trans "Delete" %}</button>
</form>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ <h1 class="page-header">
<td class="d-none d-lg-table-cell">{{ user.hours|floatformat:2 }}</td>
<td class="d-flex">
<a class="btn btn-secondary btn-sm text-nowrap"
href="{% url "core:workinghour_detail" user.pk %}"><span
href="{% url "core:workinghours_detail" user.pk %}"><span
class="fa fa-eye"></span> <span
class="d-none d-md-inline">{% translate "View" %}</span></a>
{% with groups_by_user|get:user.pk as user_groups %}
{% if can_grant_for|intersects:user_groups %}
<a class="btn btn-secondary btn-sm text-nowrap ms-1"
href="{% url "core:workinghour_add" user.pk %}"><span
href="{% url "core:workinghours_add" user.pk %}"><span
class="fa fa-plus"></span> <span
class="d-none d-md-inline">{% translate "Add" %}</span></a>
{% endif %}
Expand Down
14 changes: 7 additions & 7 deletions ephios/core/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,25 +234,25 @@
EventListTypeSettingView.as_view(),
name="event_list_type_setting",
),
path("workinghours/own/", OwnWorkingHourView.as_view(), name="workinghour_own"),
path("workinghours/own/", OwnWorkingHourView.as_view(), name="workinghours_own"),
path(
"workinghours/own/request/",
WorkingHourRequestView.as_view(),
name="workinghour_request",
name="workinghours_request",
),
path("workinghours/", WorkingHourOverview.as_view(), name="workinghour_list"),
path("workinghours/<int:pk>/edit/", WorkingHourUpdateView.as_view(), name="workinghour_edit"),
path("workinghours/", WorkingHourOverview.as_view(), name="workinghours_list"),
path("workinghours/<int:pk>/edit/", WorkingHourUpdateView.as_view(), name="workinghours_edit"),
path(
"workinghours/<int:pk>/delete/", WorkingHourDeleteView.as_view(), name="workinghour_delete"
"workinghours/<int:pk>/delete/", WorkingHourDeleteView.as_view(), name="workinghours_delete"
),
path(
"workinghours/user/<int:pk>/",
UserProfileWorkingHourView.as_view(),
name="workinghour_detail",
name="workinghours_detail",
),
path(
"workinghours/user/<int:pk>/add/",
WorkingHourCreateView.as_view(),
name="workinghour_add",
name="workinghours_add",
),
]
10 changes: 5 additions & 5 deletions ephios/core/views/workinghour.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class DateFilterForm(forms.Form):


class WorkingHourOverview(CustomPermissionRequiredMixin, TemplateView):
template_name = "core/workinghour_list.html"
template_name = "core/workinghours_list.html"
permission_required = "core.view_userprofile"

def _get_working_hours_stats(self, start: Optional[date], end: Optional[date]):
Expand Down Expand Up @@ -149,7 +149,7 @@ def get_form_kwargs(self):
def form_valid(self, form):
form.create_consequence()
messages.success(self.request, _("Your request has been submitted."))
return redirect(reverse("core:workinghour_own"))
return redirect(reverse("core:workinghours_own"))


class WorkingHourCreateView(
Expand All @@ -169,7 +169,7 @@ def form_valid(self, form):
workinghour.user = form.user
workinghour.save()
messages.success(self.request, _("Working hours have been added."))
return redirect(reverse("core:workinghour_list"))
return redirect(reverse("core:workinghours_list"))


class WorkingHourUpdateView(WorkingHourPermissionMixin, CustomPermissionRequiredMixin, UpdateView):
Expand All @@ -183,7 +183,7 @@ def has_permission(self):
return self.can_grant

def get_success_url(self):
return reverse("core:workinghour_detail", kwargs={"pk": self.object.user.pk})
return reverse("core:workinghours_detail", kwargs={"pk": self.object.user.pk})

def get_form_kwargs(self):
kwargs = super().get_form_kwargs()
Expand All @@ -207,4 +207,4 @@ def has_permission(self):
return self.can_grant

def get_success_url(self):
return reverse("core:workinghour_detail", kwargs={"pk": self.object.user.pk})
return reverse("core:workinghours_detail", kwargs={"pk": self.object.user.pk})
115 changes: 51 additions & 64 deletions ephios/locale/de/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-12-19 00:29+0100\n"
"PO-Revision-Date: 2022-05-30 12:38+0000\n"
"POT-Creation-Date: 2022-12-20 17:36+0100\n"
"PO-Revision-Date: 2022-12-20 13:36+0000\n"
"Last-Translator: Julian Baumann <[email protected]>\n"
"Language-Team: German <https://hosted.weblate.org/projects/ephios/ephios/de/"
">\n"
Expand All @@ -17,7 +17,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.13-dev\n"
"X-Generator: Weblate 4.15.1-dev\n"

#: ephios/core/consequences.py:35
#, python-brace-format
Expand Down Expand Up @@ -1001,7 +1001,7 @@ msgstr "bis"
#: ephios/core/templates/core/group_list.html:21
#: ephios/core/templates/core/userprofile_list.html:30
#: ephios/core/templates/core/userprofile_workinghours.html:28
#: ephios/core/templates/core/workinghour_list.html:31
#: ephios/core/templates/core/workinghours_list.html:33
#: ephios/plugins/pages/templates/pages/page_list.html:11
#: ephios/plugins/qualification_management/templates/core/qualification_list.html:32
msgid "Action"
Expand Down Expand Up @@ -1165,7 +1165,7 @@ msgstr "Sie haben eine nicht gespeicherte Veranstaltung"
#: ephios/core/templates/core/home.html:58
#: ephios/core/templates/core/home.html:103
#: ephios/core/templates/core/mails/new_event.html:25
#: ephios/core/templates/core/workinghour_list.html:44
#: ephios/core/templates/core/workinghours_list.html:46
#: ephios/plugins/pages/templates/pages/page_list.html:21
msgid "View"
msgstr "Anzeigen"
Expand Down Expand Up @@ -1359,6 +1359,7 @@ msgid "Concerns"
msgstr "betrifft"

#: ephios/core/templates/core/logentry_list.html:56
#: ephios/core/templates/core/workinghours_list.html:24
msgid "Filter"
msgstr "Filter"

Expand Down Expand Up @@ -1420,10 +1421,8 @@ msgstr "Persönlich"

#: ephios/core/templates/core/settings/settings_base.html:17
#: ephios/core/templates/core/settings/settings_personal_data.html:6
#, fuzzy
#| msgid "Personal"
msgid "Personal data"
msgstr "Persönlich"
msgstr "Persönliche Daten"

#: ephios/core/templates/core/settings/settings_base.html:19
#: ephios/core/templates/core/settings/settings_notifications.html:11
Expand All @@ -1432,8 +1431,6 @@ msgstr "Benachrichtigungen"

#: ephios/core/templates/core/settings/settings_base.html:21
#: ephios/core/templates/core/settings/settings_calendar.html:7
#, fuzzy
#| msgid "Calendar feed"
msgid "Calendar"
msgstr "Kalender"

Expand Down Expand Up @@ -1474,13 +1471,13 @@ msgstr ""

#: ephios/core/templates/core/settings/settings_personal_data.html:8
#: ephios/core/templates/core/userprofile_list.html:24
#: ephios/core/templates/core/workinghour_list.html:29
#: ephios/core/templates/core/workinghours_list.html:31
msgid "First name"
msgstr "Vorname"

#: ephios/core/templates/core/settings/settings_personal_data.html:10
#: ephios/core/templates/core/userprofile_list.html:23
#: ephios/core/templates/core/workinghour_list.html:28
#: ephios/core/templates/core/workinghours_list.html:30
msgid "Last name"
msgstr "Nachname"

Expand Down Expand Up @@ -1628,23 +1625,17 @@ msgid "Information"
msgstr "Information"

#: ephios/core/templates/core/userprofile_list.html:47
#, fuzzy
#| msgid "Working hours"
msgid "View working hours"
msgstr "Arbeitsstunden"
msgstr "Arbeitsstunden anzeigen"

#: ephios/core/templates/core/userprofile_workinghours.html:8
#: ephios/core/templates/core/userprofile_workinghours.html:13
#, fuzzy
#| msgid "Working hours"
msgid "Working hours of"
msgstr "Arbeitsstunden"
msgstr "Arbeitsstunden für"

#: ephios/core/templates/core/userprofile_workinghours.html:17
#, fuzzy
#| msgid "Working hours"
msgid "Add working hours"
msgstr "Arbeitsstunden"
msgstr "Arbeitsstunden hinzufügen"

#: ephios/core/templates/core/userprofile_workinghours.html:20
#: ephios/core/templates/core/workinghours_form.html:13
Expand All @@ -1653,8 +1644,6 @@ msgid "Request working hours"
msgstr "Arbeitsstunden anfragen"

#: ephios/core/templates/core/userprofile_workinghours.html:27
#, fuzzy
#| msgid "hours"
msgid "Hours"
msgstr "Stunden"

Expand All @@ -1664,56 +1653,47 @@ msgid "hours"
msgstr "Stunden"

#: ephios/core/templates/core/userprofile_workinghours.html:41
#, fuzzy
#| msgid "View events"
msgid "View event"
msgstr "Veranstaltungen ansehen"
msgstr "Veranstaltung anzeigen"

#: ephios/core/templates/core/userprofile_workinghours.html:51
msgid "Total"
msgstr "Summe"

#: ephios/core/templates/core/workinghour_list.html:8
#: ephios/core/templates/core/workinghour_list.html:13
#: ephios/core/templates/core/workinghour_list.html:30
#: ephios/templates/base.html:101 ephios/templates/base.html:132
msgid "Working hours"
msgstr "Arbeitsstunden"

#: ephios/core/templates/core/workinghour_list.html:13
msgid "in"
msgstr ""

#: ephios/core/templates/core/workinghour_list.html:50
msgid "Add"
msgstr ""

#: ephios/core/templates/core/workinghours_confirm_delete.html:6
#: ephios/core/templates/core/workinghours_confirm_delete.html:11
#, fuzzy
#| msgid "Request working hours"
msgid "Delete working hour"
msgstr "Arbeitsstunden anfragen"
msgid "Delete working hours"
msgstr "Arbeitsstunden löschen"

#: ephios/core/templates/core/workinghours_confirm_delete.html:15
#, fuzzy, python-format
#| msgid "Are you sure you want to delete the group \"%(group)s\"?"
msgid "Are you sure you want to delete the working hour \"%(workinghours)s\"?"
msgstr "Möchten Sie die Gruppe \"%(group)s\" wirklich löschen?"
#, python-format
msgid "Are you sure you want to delete the working hours \"%(workinghours)s\"?"
msgstr "Möchten Sie die Arbeitsstunden \"%(workinghours)s\" wirklich löschen?"

#: ephios/core/templates/core/workinghours_form.html:8
#: ephios/core/templates/core/workinghours_form.html:21
#, fuzzy
#| msgid "Request working hours"
msgid "Edit working hours of"
msgstr "Arbeitsstunden anfragen"
msgstr "Arbeitsstunden bearbeiten für"

#: ephios/core/templates/core/workinghours_form.html:10
#: ephios/core/templates/core/workinghours_form.html:23
#, fuzzy
#| msgid "Can decide working hours for groups"
msgid "Add working hours for"
msgstr "Kann Arbeitsstunden genehmigen für"
msgstr "Arbeitsstunden hinzufügen für"

#: ephios/core/templates/core/workinghours_list.html:9
#: ephios/core/templates/core/workinghours_list.html:14
#: ephios/core/templates/core/workinghours_list.html:32
#: ephios/templates/base.html:101 ephios/templates/base.html:132
msgid "Working hours"
msgstr "Arbeitsstunden"

#: ephios/core/templates/core/workinghours_list.html:52
msgid "Add"
msgstr "Hinzufügen"

#: ephios/core/templates/core/workinghours_list.html:60
msgid "No entries"
msgstr "Keine Einträge"

#: ephios/core/views/accounts.py:66
#, python-brace-format
Expand Down Expand Up @@ -1850,21 +1830,25 @@ msgstr "Sie können die letzte Schicht nicht löschen!"
msgid "The shift has been deleted."
msgstr "Die Schicht wurde gelöscht."

#: ephios/core/views/workinghour.py:130
#: ephios/core/views/workinghour.py:40
msgid "From"
msgstr "Von"

#: ephios/core/views/workinghour.py:41
msgid "To"
msgstr "Bis"

#: ephios/core/views/workinghour.py:151
msgid "Your request has been submitted."
msgstr "Ihre Anfrage wurde abgeschickt."

#: ephios/core/views/workinghour.py:150
#, fuzzy
#| msgid "Working hours"
#: ephios/core/views/workinghour.py:171
msgid "Working hours have been added."
msgstr "Arbeitsstunden"
msgstr "Arbeitsstunden wurden hinzugefügt."

#: ephios/core/views/workinghour.py:180
#, fuzzy
#| msgid "You have been rejected."
#: ephios/core/views/workinghour.py:201
msgid "Working hours have been deleted."
msgstr "Ihre Teilnahme wurde abgelehnt."
msgstr "Arbeitsstunden wurden gelöscht."

#: ephios/extra/bootstrap.py:13
msgid "close"
Expand Down Expand Up @@ -2642,6 +2626,9 @@ msgstr "Passwort erfolgreich zurückgesetzt"
msgid "Please check your mailbox for further instructions."
msgstr "Bitte prüfen Sie Ihren E-Mail-Posteingang für weitere Anweisungen."

#~ msgid "in"
#~ msgstr "in"

#~ msgid "Profile"
#~ msgstr "Benutzerprofil"

Expand Down
Loading

0 comments on commit 61adab4

Please sign in to comment.