From adb5e94511628863d1e3dff36c28a8473fd79580 Mon Sep 17 00:00:00 2001 From: npeter83 Date: Fri, 6 Nov 2026 02:46:18 +0100 Subject: [PATCH] fix(watch): the Hungarian unlock button says a noun for a video too, as for a file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "Megnézem" (a first-person verb) and "Megnyitás" (a noun) labelled the same button by link kind; the app's Hungarian buttons are nouns, so a video's reads "Megtekintés". --- frontend/src/watch/watchStrings.dom.test.ts | 9 +++++++++ frontend/src/watch/watchStrings.ts | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/frontend/src/watch/watchStrings.dom.test.ts b/frontend/src/watch/watchStrings.dom.test.ts index 9d470878..4b391b77 100644 --- a/frontend/src/watch/watchStrings.dom.test.ts +++ b/frontend/src/watch/watchStrings.dom.test.ts @@ -28,3 +28,12 @@ describe("the watch page's document language", () => { expect(document.documentElement.lang).toBe(want); }); }); + +// One button, two kinds of link: it says the same kind of word for both, as the app's own buttons +// do in Hungarian — a noun (Letöltés, Megnyitás), not a first-person verb on one of them. +describe("the password form's button", () => { + it("reads as a noun for a video and for anything else in Hungarian", async () => { + const { T } = await pageIn("hu-HU"); + expect([T.watch, T.open]).toEqual(["Megtekintés", "Megnyitás"]); + }); +}); diff --git a/frontend/src/watch/watchStrings.ts b/frontend/src/watch/watchStrings.ts index 8bf225d8..1dc90de3 100644 --- a/frontend/src/watch/watchStrings.ts +++ b/frontend/src/watch/watchStrings.ts @@ -39,7 +39,7 @@ const STR = { goneHint: "Lehet, hogy lejárt, vagy a tulajdonos visszavonta.", passwordTitle: "Ez a videó jelszóval védett", passwordPlaceholder: "Add meg a jelszót", - watch: "Megnézem", + watch: "Megtekintés", wrong: "Hibás jelszó.", download: "Letöltés", file: "Fájl",