From f6272fbe9977f89835ec6d9c0fdf915deee060b8 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Wed, 17 Apr 2024 21:44:52 +0200 Subject: add number of images and comments to browse view --- fietsboek/locale/de/LC_MESSAGES/messages.mo | Bin 15685 -> 15785 bytes fietsboek/locale/de/LC_MESSAGES/messages.po | 20 ++++++++++++++------ fietsboek/locale/en/LC_MESSAGES/messages.mo | Bin 14656 -> 14754 bytes fietsboek/locale/en/LC_MESSAGES/messages.po | 20 ++++++++++++++------ fietsboek/locale/fietslog.pot | 20 ++++++++++++++------ fietsboek/templates/browse.jinja2 | 6 ++++++ 6 files changed, 48 insertions(+), 18 deletions(-) diff --git a/fietsboek/locale/de/LC_MESSAGES/messages.mo b/fietsboek/locale/de/LC_MESSAGES/messages.mo index 0633a4c..c2fd61b 100644 Binary files a/fietsboek/locale/de/LC_MESSAGES/messages.mo and b/fietsboek/locale/de/LC_MESSAGES/messages.mo differ diff --git a/fietsboek/locale/de/LC_MESSAGES/messages.po b/fietsboek/locale/de/LC_MESSAGES/messages.po index b7125af..98f05e7 100644 --- a/fietsboek/locale/de/LC_MESSAGES/messages.po +++ b/fietsboek/locale/de/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2024-04-06 21:57+0200\n" +"POT-Creation-Date: 2024-04-17 21:42+0200\n" "PO-Revision-Date: 2022-07-02 17:35+0200\n" "Last-Translator: FULL NAME \n" "Language: de\n" @@ -243,15 +243,23 @@ msgstr "maximale Geschwindigkeit" msgid "page.details.avg_speed" msgstr "durchschnittliche Geschwindigkeit" -#: fietsboek/templates/browse.jinja2:205 +#: fietsboek/templates/browse.jinja2:192 +msgid "page.browse.card.comments" +msgstr "Kommentare" + +#: fietsboek/templates/browse.jinja2:194 +msgid "page.browse.card.images" +msgstr "Bilder" + +#: fietsboek/templates/browse.jinja2:211 msgid "page.browse.download_multiple" msgstr "ausgewählte Herunterladen" -#: fietsboek/templates/browse.jinja2:207 +#: fietsboek/templates/browse.jinja2:213 msgid "page.browse.no_results" msgstr "Es wurden keine Strecken gefunden, die den Filtern entsprechen." -#: fietsboek/templates/browse.jinja2:209 +#: fietsboek/templates/browse.jinja2:215 msgid "page.browse.no_tracks" msgstr "" "Es wurden keine Strecken gefunden, auf die Du Zugriff hast. Versuche, " @@ -520,13 +528,13 @@ msgstr "" "Links, um sie fortzusetzen:" #: fietsboek/templates/home.jinja2:31 fietsboek/templates/home.jinja2:38 -#: fietsboek/templates/home.jinja2:66 +#: fietsboek/templates/home.jinja2:82 msgid "page.home.summary.track" msgid_plural "page.home.summary.tracks" msgstr[0] "%(num)d Strecke" msgstr[1] "%(num)d Strecken" -#: fietsboek/templates/home.jinja2:66 +#: fietsboek/templates/home.jinja2:82 msgid "page.home.total" msgstr "Gesamt" diff --git a/fietsboek/locale/en/LC_MESSAGES/messages.mo b/fietsboek/locale/en/LC_MESSAGES/messages.mo index cc713cb..1390daa 100644 Binary files a/fietsboek/locale/en/LC_MESSAGES/messages.mo and b/fietsboek/locale/en/LC_MESSAGES/messages.mo differ diff --git a/fietsboek/locale/en/LC_MESSAGES/messages.po b/fietsboek/locale/en/LC_MESSAGES/messages.po index 5e1762c..f4cacb5 100644 --- a/fietsboek/locale/en/LC_MESSAGES/messages.po +++ b/fietsboek/locale/en/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2024-04-06 21:57+0200\n" +"POT-Creation-Date: 2024-04-17 21:42+0200\n" "PO-Revision-Date: 2023-04-03 20:42+0200\n" "Last-Translator: \n" "Language: en\n" @@ -243,15 +243,23 @@ msgstr "Max Speed" msgid "page.details.avg_speed" msgstr "Average Speed" -#: fietsboek/templates/browse.jinja2:205 +#: fietsboek/templates/browse.jinja2:192 +msgid "page.browse.card.comments" +msgstr "Comments" + +#: fietsboek/templates/browse.jinja2:194 +msgid "page.browse.card.images" +msgstr "Images" + +#: fietsboek/templates/browse.jinja2:211 msgid "page.browse.download_multiple" msgstr "Download selected" -#: fietsboek/templates/browse.jinja2:207 +#: fietsboek/templates/browse.jinja2:213 msgid "page.browse.no_results" msgstr "No results matching the filters were found." -#: fietsboek/templates/browse.jinja2:209 +#: fietsboek/templates/browse.jinja2:215 msgid "page.browse.no_tracks" msgstr "You currently do not have access to any tracks. Try logging in." @@ -514,13 +522,13 @@ msgid "page.home.unfinished_uploads" msgstr "You have unfinished uploads. Click on the links below to resume them:" #: fietsboek/templates/home.jinja2:31 fietsboek/templates/home.jinja2:38 -#: fietsboek/templates/home.jinja2:66 +#: fietsboek/templates/home.jinja2:82 msgid "page.home.summary.track" msgid_plural "page.home.summary.tracks" msgstr[0] "%(num)d track" msgstr[1] "%(num)d tracks" -#: fietsboek/templates/home.jinja2:66 +#: fietsboek/templates/home.jinja2:82 msgid "page.home.total" msgstr "Total" diff --git a/fietsboek/locale/fietslog.pot b/fietsboek/locale/fietslog.pot index 747cd78..a3dea70 100644 --- a/fietsboek/locale/fietslog.pot +++ b/fietsboek/locale/fietslog.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2024-04-06 21:57+0200\n" +"POT-Creation-Date: 2024-04-17 21:42+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -239,15 +239,23 @@ msgstr "" msgid "page.details.avg_speed" msgstr "" -#: fietsboek/templates/browse.jinja2:205 +#: fietsboek/templates/browse.jinja2:192 +msgid "page.browse.card.comments" +msgstr "" + +#: fietsboek/templates/browse.jinja2:194 +msgid "page.browse.card.images" +msgstr "" + +#: fietsboek/templates/browse.jinja2:211 msgid "page.browse.download_multiple" msgstr "" -#: fietsboek/templates/browse.jinja2:207 +#: fietsboek/templates/browse.jinja2:213 msgid "page.browse.no_results" msgstr "" -#: fietsboek/templates/browse.jinja2:209 +#: fietsboek/templates/browse.jinja2:215 msgid "page.browse.no_tracks" msgstr "" @@ -508,13 +516,13 @@ msgid "page.home.unfinished_uploads" msgstr "" #: fietsboek/templates/home.jinja2:31 fietsboek/templates/home.jinja2:38 -#: fietsboek/templates/home.jinja2:66 +#: fietsboek/templates/home.jinja2:82 msgid "page.home.summary.track" msgid_plural "page.home.summary.tracks" msgstr[0] "" msgstr[1] "" -#: fietsboek/templates/home.jinja2:66 +#: fietsboek/templates/home.jinja2:82 msgid "page.home.total" msgstr "" diff --git a/fietsboek/templates/browse.jinja2 b/fietsboek/templates/browse.jinja2 index 1eae88d..a67f8fb 100644 --- a/fietsboek/templates/browse.jinja2 +++ b/fietsboek/templates/browse.jinja2 @@ -188,6 +188,12 @@ {{ mps_to_kph(track.avg_speed) | round(2) | format_decimal }} km/h {% endif %} + + {{ _("page.browse.card.comments") }} + {{ track.comments | length }} + {{ _("page.browse.card.images") }} + {{ track.images | length }} + -- cgit v1.2.3