From 2df3fcbe5635d33aacf25404fc21751171dc0966 Mon Sep 17 00:00:00 2001 From: Simon Repp Date: Mon, 6 Oct 2025 17:04:17 +0200 Subject: [PATCH] Add missing aria labels and aria-hide purely visual elements in editor --- translations/src/de.rs | 1 + translations/src/en.rs | 1 + translations/src/lib.rs | 1 + web/src/endpoints/video/edit_poster.rs | 2 +- web/src/endpoints/video/media.rs | 6 ++++-- web/src/widgets/layout.rs | 6 ++++-- 6 files changed, 12 insertions(+), 5 deletions(-) diff --git a/translations/src/de.rs b/translations/src/de.rs index 29013fe..a18d62c 100644 --- a/translations/src/de.rs +++ b/translations/src/de.rs @@ -350,6 +350,7 @@ impl Translations { upload_poster: "Poster hochladen", upload_video_or_audio_file: "Video oder Audiodatei hochladen", url: "URL", + usage_restrictions: "Einsatzbeschränkungen", use_a_dedicated_editor_window: "Der Editor läuft in einem eigenen Fenster", use_the_editor_in_your_browser: "Der Editor wird über den Browser verwendet", version: "Version", diff --git a/translations/src/en.rs b/translations/src/en.rs index 83bb4aa..aaeeae7 100644 --- a/translations/src/en.rs +++ b/translations/src/en.rs @@ -351,6 +351,7 @@ impl Translations { upload_poster: "Upload Poster", upload_video_or_audio_file: "Upload video or audio file", url: "URL", + usage_restrictions: "Usage restrictions", use_a_dedicated_editor_window: "Use a dedicated editor window", use_the_editor_in_your_browser: "Use the editor in your browser", version: "Version", diff --git a/translations/src/lib.rs b/translations/src/lib.rs index f62b5b0..2c791a1 100644 --- a/translations/src/lib.rs +++ b/translations/src/lib.rs @@ -342,6 +342,7 @@ pub struct Translations { pub upload_poster: &'static str, pub upload_video_or_audio_file: &'static str, pub url: &'static str, + pub usage_restrictions: &'static str, pub use_a_dedicated_editor_window: &'static str, pub use_the_editor_in_your_browser: &'static str, pub version: &'static str, diff --git a/web/src/endpoints/video/edit_poster.rs b/web/src/endpoints/video/edit_poster.rs index 2a62e00..88e4819 100644 --- a/web/src/endpoints/video/edit_poster.rs +++ b/web/src/endpoints/video/edit_poster.rs @@ -127,7 +127,7 @@ pub fn edit_poster_page( --video-aspect: {video_aspect_numeric}; }} -
+