You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
i18n: German context menus' Insert reads "Zellen einfügen", not a second "Einfügen" (#2874) - #3425
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.
…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>
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.
The PR changes localized menu labels and adds regression coverage without a concrete merge-blocking risk.
Pre-merge checks: 5
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
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
[#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
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
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.
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2874
What changed
de.rs: the cell menu'sInsert…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 plainInsertkey stays as it is, because the Insert dialog's title and button use it.Tests
grid::tests::german_context_menus_have_no_two_items_alikereads the three menus' items frommenus.rsand checks that no two read alike in German.cargo xtask ci: the only failures are onesmainhas on this machine too. This branch still merges cleanly with #2988.🤖 Generated with Claude Code
Summary by CodeRabbit