From 00ea7624ca1bc87a8735c8a973dc60e0526fe1a8 Mon Sep 17 00:00:00 2001 From: Esa Kataja Date: Sat, 5 Sep 2026 12:51:13 +0300 Subject: [PATCH] Say it once, and say whose scores are hidden A copy pass over the Finnish UI. The em-dash aside was doing the work of a second sentence in ten places, so it is a second sentence now, or gone. The sealed-score wording was wrong twice over: it promised "pisteet" when only other people's are hidden, and said "kirjoitat" when the reveal actually happens on save. Both fixed on the queue, the song page and the card badge. --- songs.go | 4 ++-- templates/admin.html | 4 ++-- templates/layout.html | 2 +- templates/partials/player.html | 4 ++-- templates/queue.html | 4 ++-- templates/report.html | 3 +-- templates/song.html | 4 ++-- templates/stats.html | 2 +- templates/submission.html | 7 +++---- templates/submit.html | 5 +---- 10 files changed, 17 insertions(+), 22 deletions(-) diff --git a/songs.go b/songs.go index f0d5016..d8d6c8b 100644 --- a/songs.go +++ b/songs.go @@ -295,7 +295,7 @@ func (a *app) editSong(w http.ResponseWriter, r *http.Request) { return } if affected(res) == 0 { - a.flash(w, "Kappaletta ei voi enää muokata — sitä on jo arvosteltu.") + a.flash(w, "Kappaletta on jo arvosteltu, joten sitä ei voi muokata.") } else { a.flash(w, "Tiedot tallennettu.") } @@ -319,7 +319,7 @@ func (a *app) deleteSong(w http.ResponseWriter, r *http.Request) { return } if affected(res) == 0 { - a.flash(w, "Kappaletta ei voi enää poistaa — sitä on jo arvosteltu.") + a.flash(w, "Kappaletta on jo arvosteltu, joten sitä ei voi poistaa.") http.Redirect(w, r, fmt.Sprintf("/songs/%d", id), http.StatusSeeOther) return } diff --git a/templates/admin.html b/templates/admin.html index d7eee55..bc6f026 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -27,8 +27,8 @@ {{end}} -

Lähetä linkki kaverille — se avaa liittymislomakkeen koodi valmiiksi - täytettynä. Lista näyttää käyttämättömät kutsut{{if .Data.SpentCount}}; käytettyjä on +

Lähetä linkki kaverille. Koodi on valmiiksi täytettynä. + Lista näyttää käyttämättömät kutsut{{if .Data.SpentCount}}; käytettyjä on {{.Data.SpentCount}}{{end}}.

diff --git a/templates/layout.html b/templates/layout.html index 9a21ebf..dabe689 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -62,7 +62,7 @@