From 84eff374eeb75c6eebb78c79059fb680d1e8e6bf Mon Sep 17 00:00:00 2001 From: nikurasu Date: Tue, 5 Mar 2024 21:18:02 +0100 Subject: [PATCH] fix(localization): small fixes in the localization Add missing ungendered German forms and remove sadly/leider in a string, because it doesn't sound good --- src/app/controller/attendies_controller.go | 2 -- src/app/util/attendiesList.go | 3 --- src/app/views/table.html | 2 ++ src/config/localization.go | 2 +- src/localization/active.de.json | 6 +++--- src/localization/active.en.json | 2 +- 6 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/app/controller/attendies_controller.go b/src/app/controller/attendies_controller.go index 6f33d8b..ce7cbdc 100644 --- a/src/app/controller/attendies_controller.go +++ b/src/app/controller/attendies_controller.go @@ -1,7 +1,6 @@ package controller import ( - "fmt" "sort" "github.com/gofiber/fiber/v2" @@ -102,7 +101,6 @@ func GetAttendiesByEventPublicTable(c *fiber.Ctx) error { &roleSpotter, &roleSpecialAnimal, ) - fmt.Printf("len(attendies): %v\n", len(attendies)) return c.Render("app/views/index", fiber.Map{ "Event Name": event.Name, "Attendies": attendies, diff --git a/src/app/util/attendiesList.go b/src/app/util/attendiesList.go index 248feb9..c409b54 100644 --- a/src/app/util/attendiesList.go +++ b/src/app/util/attendiesList.go @@ -1,8 +1,6 @@ package util import ( - "fmt" - "ulmer-furs.de/pretix-proxy/v2/entities" ) @@ -23,6 +21,5 @@ func CreateSuiterWaitingList(attendiesList *entities.AttendiesList, suiterPerSpo i++ } } - fmt.Printf("len(a): %v\n", len(*attendiesList)) return suiterWatinglist } diff --git a/src/app/views/table.html b/src/app/views/table.html index 91e8b4b..f3e9073 100644 --- a/src/app/views/table.html +++ b/src/app/views/table.html @@ -27,6 +27,7 @@ {{end}} +{{ if .SuiterWaitingList }}

{{ .Locals.SuiterWaitinglist }}

{{ .Locals.WaitinglistDesc}}

@@ -55,4 +56,5 @@ {{end}}
+{{ end }} {{end}} \ No newline at end of file diff --git a/src/config/localization.go b/src/config/localization.go index 09817f8..3c93b63 100644 --- a/src/config/localization.go +++ b/src/config/localization.go @@ -49,7 +49,7 @@ var defaultMessages = []i18n.Message{ }, { ID: "WaitinglistDesc", - Other: "We set a ratio of Suiters per Spotter for each event in order to keep the count of suiters manageble for them. If you are listed here we sadly don't have enough spotters yet.", + Other: "We set a ratio of Suiters per Spotter for each event in order to keep the count of suiters manageble for them. If you are listed here we don't have enough spotters yet.", }, { ID: "Suiter", diff --git a/src/localization/active.de.json b/src/localization/active.de.json index 721579f..63298e6 100644 --- a/src/localization/active.de.json +++ b/src/localization/active.de.json @@ -39,12 +39,12 @@ }, "Spotter": { "hash": "sha1-6f53dff03ced62b694851ffe37aab682b4b2b227", - "one": "Spotter", + "one": "Spotter*in", "other": "Spotter" }, "Suiter": { "hash": "sha1-eb6248e60da77b4df76de9b35efe44178ee34ead", - "one": "Suiter", + "one": "Suiter*in", "other": "Suiter" }, "SuiterWaitinglist": { @@ -53,6 +53,6 @@ }, "WaitinglistDesc": { "hash": "sha1-aadc433a212fca8d927e9134520f5a10aa7e4263", - "other": "Wir setzen für jedes Event ein Verhältnis von Suitern pro Spotter fest, damit die Spotter auch noch alle versorgen können. Falls du hier gelistet bist, haben sich leider noch nicht genügend Spotter angemeldet." + "other": "Wir setzen für jedes Event ein Verhältnis von Suitern pro Spotter fest, damit die Spotter auch noch alle versorgen können. Falls du hier gelistet bist, haben sich noch nicht genügend Spotter angemeldet." } } diff --git a/src/localization/active.en.json b/src/localization/active.en.json index 5f1188a..c6e83cf 100644 --- a/src/localization/active.en.json +++ b/src/localization/active.en.json @@ -34,5 +34,5 @@ "other": "Suiters" }, "SuiterWaitinglist": "Suiter Watinglist", - "WaitinglistDesc": "We set a ratio of Suiters per Spotter for each event in order to keep the count of suiters manageble for them. If you are listed here we sadly don't have enough spotters yet." + "WaitinglistDesc": "We set a ratio of Suiters per Spotter for each event in order to keep the count of suiters manageble for them. If you are listed here we don't have enough spotters yet." }