Skip to content

Commit

Permalink
chore&translation: improve & fix seating plan count
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzlerch committed Jul 28, 2023
1 parent c5e6350 commit a73fec9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 41 deletions.
24 changes: 8 additions & 16 deletions pretix_manualseats/locale/de/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-07-26 04:39+0200\n"
"POT-Creation-Date: 2023-07-28 14:09+0200\n"
"PO-Revision-Date: \n"
"Last-Translator: Moritz Lerch\n"
"Language-Team: \n"
Expand Down Expand Up @@ -75,22 +75,14 @@ msgstr "Bitte wählen Sie einen Sitzplan für die aktuelle Veranstaltung aus."
msgid "Manage event seating plan"
msgstr "Sitzplan löschen"

#: pretix_manualseats/templates/pretix_manualseats/event/index.html:13
#, python-format
msgid ""
"You have imported at least one seating plan. %(length)s seating plans are "
"present."
msgstr ""
"Sie haben mindestens einen Sitzplan importiert. %(length)s Sitzpläne sind "
"vorhanden."

#: pretix_manualseats/templates/pretix_manualseats/event/index.html:17
msgid ""
"You have imported at least one seating plan. Only one seating plan is "
"present."
msgstr ""
"Sie haben mindestens einen Sitzplan importiert. Genau ein Sitzplan ist "
"vorhanden."

#: pretix_manualseats/templates/pretix_manualseats/event/index.html:16
#, python-format
msgid "You have imported only one seating plan."
msgid_plural "You have imported %(counter)s seating plans."
msgstr[0] "Sie haben genau einen Sitzplan importiert."
msgstr[1] "Sie haben %(counter)s Sitzpläne importiert."

#: pretix_manualseats/templates/pretix_manualseats/event/index.html:24
msgid "Seating plan selection"
Expand Down
24 changes: 8 additions & 16 deletions pretix_manualseats/locale/de_Informal/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-07-26 04:39+0200\n"
"POT-Creation-Date: 2023-07-28 14:09+0200\n"
"PO-Revision-Date: \n"
"Last-Translator: Moritz Lerch\n"
"Language-Team: \n"
Expand Down Expand Up @@ -75,22 +75,14 @@ msgstr "Bitte wähle einen Sitzplan für die aktuelle Veranstaltung aus."
msgid "Manage event seating plan"
msgstr "Sitzplan löschen"

#: pretix_manualseats/templates/pretix_manualseats/event/index.html:13
#, python-format
msgid ""
"You have imported at least one seating plan. %(length)s seating plans are "
"present."
msgstr ""
"Du hast mindestens einen Sitzplan importiert. %(length)s Sitzpläne sind "
"vorhanden."

#: pretix_manualseats/templates/pretix_manualseats/event/index.html:17
msgid ""
"You have imported at least one seating plan. Only one seating plan is "
"present."
msgstr ""
"Du hast mindestens einen Sitzplan importiert. Genau ein Sitzplan ist "
"vorhanden."

#: pretix_manualseats/templates/pretix_manualseats/event/index.html:16
#, python-format
msgid "You have imported only one seating plan."
msgid_plural "You have imported %(counter)s seating plans."
msgstr[0] "Du hast genau einen Sitzplan importiert."
msgstr[1] "Du hast %(counter)s Sitzpläne importiert."

#: pretix_manualseats/templates/pretix_manualseats/event/index.html:24
msgid "Seating plan selection"
Expand Down
14 changes: 5 additions & 9 deletions pretix_manualseats/templates/pretix_manualseats/event/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,11 @@
<h1>{% trans "Manual Seats" %} 💺</h1>
{% if seatingplans|length > 0 %}
<p>
{% if seatingplans|length != 1 %}
{% blocktrans trimmed with length=seatingplans|length %}
You have imported at least one seating plan. {{ length }} seating plans are present.
{% endblocktrans %}
{% else %}
{% blocktrans trimmed %}
You have imported at least one seating plan. Only one seating plan is present.
{% endblocktrans %}
{% endif %}
{% blocktrans trimmed count seatingplans|length as counter %}
You have imported only one seating plan.
{% plural %}
You have imported {{ counter }} seating plans.
{% endblocktrans %}
</p><br>
<form method="post" class="form-horizontal">{% csrf_token %}
<fieldset>
Expand Down

0 comments on commit a73fec9

Please sign in to comment.