From 6082355c224a83ac429d922fe7556f87c1b6d10a Mon Sep 17 00:00:00 2001 From: MarekSpodBiedry <73122968+MarekSpodBiedry@users.noreply.github.com> Date: Sun, 18 Oct 2026 13:49:17 +0200 Subject: [PATCH] Translate the cell and header context menus into German (#1830) --- crates/ui-egui/src/i18n.rs | 35 +++++++++++++++++++++++++++++++++++ crates/ui-egui/src/i18n/de.rs | 12 ++++++++++++ 2 files changed, 47 insertions(+) diff --git a/crates/ui-egui/src/i18n.rs b/crates/ui-egui/src/i18n.rs index 061698df9..064f59806 100644 --- a/crates/ui-egui/src/i18n.rs +++ b/crates/ui-egui/src/i18n.rs @@ -647,6 +647,41 @@ mod tests { assert_eq!(Language::parse("xx"), None); } + #[test] + fn german_cell_and_header_context_menus_are_fully_translated() { + for label in [ + "Cut", + "Copy", + "Paste", + "Paste Special…", + "Insert…", + "Delete…", + "Clear Contents", + "Filter by Selected Cell's Value", + "Sort A to Z", + "Sort Z to A", + "New Comment", + "New Note", + "Format Cells…", + "Pick From Drop-down List…", + "Define Name…", + "Insert Copied Cells", + "Insert Copied Cells…", + "Insert Cut Cells", + "Insert", + "Delete", + "Row Height…", + "AutoFit Row Height", + "Column Width…", + "AutoFit Column Width", + "Hide", + "Unhide", + "Group", + ] { + assert_ne!(Language::De.tr(label), label, "German context menu label missing: {label}"); + } + } + #[test] fn unknown_saved_language_keeps_the_other_preferences() { let ui: crate::UiState = serde_json::from_str(r#"{"dark": true, "language": "xx"}"#).unwrap(); diff --git a/crates/ui-egui/src/i18n/de.rs b/crates/ui-egui/src/i18n/de.rs index c20c7d1b3..371ea7981 100644 --- a/crates/ui-egui/src/i18n/de.rs +++ b/crates/ui-egui/src/i18n/de.rs @@ -411,6 +411,18 @@ pub(super) fn translate(text: &str) -> Option<&'static str> { "Dark" => "Dunkel", "Sheet Options|View" => "Anzeige", "Print" => "Drucken", + // grid.rs cell and row/column header context menus. + "Cut" => "Ausschneiden", + "Copy" => "Kopieren", + "Insert…" => "Einfügen…", + "Delete…" => "Löschen…", + "Filter by Selected Cell's Value" => "Nach Wert der gewählten Zelle filtern", + "New Comment" => "Neuer Kommentar", + "Pick From Drop-down List…" => "Aus Dropdownliste auswählen…", + "Define Name…" => "Namen definieren…", + "Link…" => "Link…", + "Hide" => "Ausblenden", + "Unhide" => "Einblenden", _ => return None, }) }