Skip to content

i18n: German context menus' Insert reads "Zellen einfügen", not a second "Einfügen" (#2874) - #3425

Merged
FredApps merged 2 commits into
storytold:mainfrom
ZIDAN44:fix/2874-german-insert-cells
Nov 5, 2026
Merged

FredApps merged 2 commits into
storytold:mainfrom
ZIDAN44:fix/2874-german-insert-cells

Conversation

@ZIDAN44

@ZIDAN44 ZIDAN44 commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #2874

What changed

  • In German, "Einfügen" appeared twice: once for Paste, and again for Insert in the cell menu ("Einfügen…") and the row and column header menus ("Einfügen").
  • de.rs: the cell menu's Insert… now reads "Zellen einfügen…".
  • grid/menus.rs: the header menus' Insert uses a new key, Header Menu|Insert, which is "Zellen einfügen" in German. The plain Insert key stays as it is, because the Insert dialog's title and button use it.
  • Every other catalog gets the new key with the text it shows today, so nothing else changes.

Tests

  • grid::tests::german_context_menus_have_no_two_items_alike reads the three menus' items from menus.rs and checks that no two read alike in German.

cargo xtask ci: the only failures are ones main has on this machine too. This branch still merges cleanly with #2988.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Localization
    • Row and column header context menus now display “Insert” with translations tailored to that menu context in supported languages.
    • German menus now distinguish inserting cells from inserting rows or columns, making the available actions clearer.

…ond "Einfügen" (storytold#2874)

German showed "Einfügen" for Paste and again for Insert in the cell menu
("Einfügen…") and the row and column header menus ("Einfügen"). The cell
menu's Insert… now reads "Zellen einfügen…", as Excel's German menu does.
The header menus' Insert gets its own key, "Header Menu|Insert", German
"Zellen einfügen"; the plain "Insert" stays as the Insert dialog's title
and button use it, and every other catalog gets the new key with the text
it shows today.

A test reads the three menus' items from menus.rs and checks that no two
read alike in German.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

Commits

Reviewing files that changed from the base of the PR and between cb05971 and 0a58f94.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

Row and column header insert entries now use a context-specific localization key. Translations for the key were added across locales. The German translation and regression tests were updated.

Changes: Contextual header insert labels

Layer / File(s) Summary
Header labels and localization
crates/ui-egui/src/grid/menus.rs, crates/ui-egui/src/i18n/*, crates/ui-egui/src/grid/tests.rs
Row and column header insert entries use Header Menu|Insert. Locale tables add translations for that key. The German Insert… translation changes to “Zellen einfügen…”. A regression test checks for duplicate German menu labels and verifies expected translations.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Medium

Suggested reviewers: aiongg, prxnvt

Merge Risk: Minimal · previous review cb059

The PR changes localized menu labels and adds regression coverage without a concrete merge-blocking risk.

Pre-merge checks: Passed 5

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: distinguishing German context-menu Insert labels from Paste by using “Zellen einfügen”.
Linked Issues check Passed [#2874] asks that the German labels for inserting cells, rows, or columns differ from Paste, which also reads "Einfügen". The diff to crates/ui-egui/src/grid/menus.rs changes the row and column header…
Out of Scope Changes check Passed The change set has three parts. (1) menus.rs changes only the key of the row and column header Insert items. (2) de.rs changes the cell menu Insert text and adds the header key. (3) Other i18n catalog…
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Full details: Linked Issues check

Explanation

[#2874] asks that the German labels for inserting cells, rows, or columns differ from Paste, which also reads "Einfügen". The diff to crates/ui-egui/src/grid/menus.rs changes the row and column header menu Insert items from the key "Insert" to "Header Menu|Insert". The AI summary and PR description state that de.rs maps "Header Menu|Insert" to "Zellen einfügen" and maps "Insert…" (cell menu) to "Zellen einfügen…". The new test grid::tests::german_context_menus_have_no_two_items_alike, in crates/ui-egui/src/grid/tests.rs, reads the cell, row header, and column header menu items from menus.rs. It checks that no two items read alike in German. It also asserts Language::De.tr("Insert…") == "Zellen einfügen…" and Language::De.tr("Header Menu|Insert") == "Zellen einfügen". Paste stays "Einfügen", and the plain "Insert" key is unchanged for the Insert dialog. The requirement is met. Limits: the de.rs diff was unreadable, so the German strings are confirmed only by the summary and the test assertions. I did not run the test.

Full details: Out of Scope Changes check

Explanation

The change set has three parts. (1) menus.rs changes only the key of the row and column header Insert items. (2) de.rs changes the cell menu Insert text and adds the header key. (3) Other i18n catalogs (cs, el, es, fr, it, ja, ko, nl, pl, pt, ro, ru, sr, tr, uk, vi, zh) add the new "Header Menu|Insert" key with the text they already show for Insert. The test in tests.rs supports the change. Its assertion that non-German "Header Menu|Insert" equals "Insert" keeps displayed text unchanged elsewhere. Adding the key to every catalog is needed because the header menu now uses it. No unrelated behavior change appears in the reviewed hunks.

Full details: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 19 functions across 20 files.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 1fb1915 and cb05971.

Files selected for processing: 20

  • crates/ui-egui/src/grid/menus.rs
  • crates/ui-egui/src/grid/tests.rs
  • crates/ui-egui/src/i18n/cs.rs
  • crates/ui-egui/src/i18n/de.rs
  • crates/ui-egui/src/i18n/el.rs
  • crates/ui-egui/src/i18n/es.rs
  • crates/ui-egui/src/i18n/fr.rs
  • crates/ui-egui/src/i18n/it.rs
  • crates/ui-egui/src/i18n/ja.rs
  • crates/ui-egui/src/i18n/ko.rs
  • crates/ui-egui/src/i18n/nl.rs
  • crates/ui-egui/src/i18n/pl.rs
  • crates/ui-egui/src/i18n/pt.rs
  • crates/ui-egui/src/i18n/ro.rs
  • crates/ui-egui/src/i18n/ru.rs
  • crates/ui-egui/src/i18n/sr.rs
  • crates/ui-egui/src/i18n/tr.rs
  • crates/ui-egui/src/i18n/uk.rs
  • crates/ui-egui/src/i18n/vi.rs
  • crates/ui-egui/src/i18n/zh.rs

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@FredApps
FredApps merged commit c402953 into storytold:main Nov 5, 2026
6 of 7 checks passed
@FredApps

FredApps commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Thanks @ZIDAN44, merged. German context menus now say "Zellen einfügen" for Insert, so it no longer reads the same as Paste, and every catalog has the new header-menu key. Sorry this note comes late.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Just a correction

2 participants