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
This commit is contained in:
parent
deee8e82b2
commit
84eff374ee
6 changed files with 7 additions and 10 deletions
|
@ -1,7 +1,6 @@
|
||||||
package controller
|
package controller
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
|
@ -102,7 +101,6 @@ func GetAttendiesByEventPublicTable(c *fiber.Ctx) error {
|
||||||
&roleSpotter,
|
&roleSpotter,
|
||||||
&roleSpecialAnimal,
|
&roleSpecialAnimal,
|
||||||
)
|
)
|
||||||
fmt.Printf("len(attendies): %v\n", len(attendies))
|
|
||||||
return c.Render("app/views/index", fiber.Map{
|
return c.Render("app/views/index", fiber.Map{
|
||||||
"Event Name": event.Name,
|
"Event Name": event.Name,
|
||||||
"Attendies": attendies,
|
"Attendies": attendies,
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
package util
|
package util
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
|
|
||||||
"ulmer-furs.de/pretix-proxy/v2/entities"
|
"ulmer-furs.de/pretix-proxy/v2/entities"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -23,6 +21,5 @@ func CreateSuiterWaitingList(attendiesList *entities.AttendiesList, suiterPerSpo
|
||||||
i++
|
i++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fmt.Printf("len(a): %v\n", len(*attendiesList))
|
|
||||||
return suiterWatinglist
|
return suiterWatinglist
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
{{ if .SuiterWaitingList }}
|
||||||
<h2 class="textWhite">{{ .Locals.SuiterWaitinglist }}</h2>
|
<h2 class="textWhite">{{ .Locals.SuiterWaitinglist }}</h2>
|
||||||
<p class="textWhite">{{ .Locals.WaitinglistDesc}}</p>
|
<p class="textWhite">{{ .Locals.WaitinglistDesc}}</p>
|
||||||
<table>
|
<table>
|
||||||
|
@ -55,4 +56,5 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
{{ end }}
|
||||||
{{end}}
|
{{end}}
|
|
@ -49,7 +49,7 @@ var defaultMessages = []i18n.Message{
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: "WaitinglistDesc",
|
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",
|
ID: "Suiter",
|
||||||
|
|
|
@ -39,12 +39,12 @@
|
||||||
},
|
},
|
||||||
"Spotter": {
|
"Spotter": {
|
||||||
"hash": "sha1-6f53dff03ced62b694851ffe37aab682b4b2b227",
|
"hash": "sha1-6f53dff03ced62b694851ffe37aab682b4b2b227",
|
||||||
"one": "Spotter",
|
"one": "Spotter*in",
|
||||||
"other": "Spotter"
|
"other": "Spotter"
|
||||||
},
|
},
|
||||||
"Suiter": {
|
"Suiter": {
|
||||||
"hash": "sha1-eb6248e60da77b4df76de9b35efe44178ee34ead",
|
"hash": "sha1-eb6248e60da77b4df76de9b35efe44178ee34ead",
|
||||||
"one": "Suiter",
|
"one": "Suiter*in",
|
||||||
"other": "Suiter"
|
"other": "Suiter"
|
||||||
},
|
},
|
||||||
"SuiterWaitinglist": {
|
"SuiterWaitinglist": {
|
||||||
|
@ -53,6 +53,6 @@
|
||||||
},
|
},
|
||||||
"WaitinglistDesc": {
|
"WaitinglistDesc": {
|
||||||
"hash": "sha1-aadc433a212fca8d927e9134520f5a10aa7e4263",
|
"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."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,5 +34,5 @@
|
||||||
"other": "Suiters"
|
"other": "Suiters"
|
||||||
},
|
},
|
||||||
"SuiterWaitinglist": "Suiter Watinglist",
|
"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."
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue