Skip to content

i18n: translate the ribbon's drop-down menus and icon tooltips - #4866

Open
ffabiomc wants to merge 1 commit into
storytold:mainfrom
ffabiomc:i18n-ribbon-menus
Open

ffabiomc wants to merge 1 commit into
storytold:mainfrom
ffabiomc:i18n-ribbon-menus

Conversation

@ffabiomc

@ffabiomc ffabiomc commented Nov 28, 2026 •

Copy link
Copy Markdown

Insert › Pictures, Shapes, the chart and sparkline menus, Chart Design › Change Chart Type, Home › Conditional Formatting and the title bar's More and Share menus drew their items in English in every language: the labels went to ui.button() without tr(). They now go through the interface language, as the buttons that open them already did; so do the Insert › Icons tooltips (the icon name stays the command parameter) and the Pictures button's accessible name, which was fixed to English.

Adds the Brazilian Portuguese entries these menus need; other languages show English where they have no entry, as before.

Claude-Session: https://claude.ai/code/session_01HrZWSBpmsvZF7Xv6JtR8Ps

Fixes #

What the user saw:

Cause:

What changed:

Test:

Verification:

Summary by CodeRabbit

  • New Features
    • Brazilian Portuguese translations are now available for chart types, conditional-formatting options, file actions, and commands in the Insert and title-bar menus.
    • Picture, shape, icon, chart, and sparkline menu labels—including relevant accessibility labels and tooltips—now display in the selected interface language.

Insert › Pictures, Shapes, the chart and sparkline menus, Chart Design ›
Change Chart Type, Home › Conditional Formatting and the title bar's More
and Share menus drew their items in English in every language: the
labels went to ui.button() without tr(). They now go through the
interface language, as the buttons that open them already did; so do
the Insert › Icons tooltips (the icon name stays the command parameter)
and the Pictures button's accessible name, which was fixed to English.

Adds the Brazilian Portuguese entries these menus need; other languages
show English where they have no entry, as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HrZWSBpmsvZF7Xv6JtR8Ps
@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Ribbon menus now translate displayed labels through the interface language. The Portuguese translation catalog includes shape and chart names, conditional-formatting labels, file actions, and icon tooltips. Menu commands and their actions remain unchanged.

Changes: Ribbon menu localization

Layer / File(s) Summary
Portuguese translation entries
crates/ui-egui/src/i18n/pt.rs
Adds Portuguese translations for shape and chart labels, conditional-formatting rules and styles, file actions, and icon tooltips.
Insert and chart menu labels
crates/ui-egui/src/ribbon/insert.rs, crates/ui-egui/src/ribbon/contextual.rs, crates/ui-egui/tests/it/*
Insert and chart menus display translated labels. The integration test checks Portuguese labels for Shapes and Pictures.
Conditional-formatting menus
crates/ui-egui/src/ribbon/home.rs
Conditional-formatting headings, choices, and actions display translated labels. The Color Scales test now opens the menu using its Spanish label.
Title-bar menu labels
crates/ui-egui/src/ribbon/title_bar.rs
More commands and Share menu labels display translated strings. Their actions remain unchanged.

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

Change: Bug fix

Suggested reviewers: aiongg, prxnvt, vangel76

Merge Risk: Minimal · up to 84066

This change translates ribbon menu labels, with Portuguese entries added and English kept where no translation exists. Menu actions are unchanged, and no merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title accurately describes the main change: routing the ribbon's drop-down menu labels and icon tooltips through the i18n layer. The summary confirms the changes cover Insert, Chart Design, Home c…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title accurately describes the main change: routing the ribbon's drop-down menu labels and icon tooltips through the i18n layer. The summary confirms the changes cover Insert, Chart Design, Home conditional formatting, and title bar menus, plus Icons tooltips. The title is short, specific, and uses no vague terms.

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

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between ba59730 and 8406673.

Files selected for processing: 7

  • crates/ui-egui/src/i18n/pt.rs
  • crates/ui-egui/src/ribbon/contextual.rs
  • crates/ui-egui/src/ribbon/home.rs
  • crates/ui-egui/src/ribbon/insert.rs
  • crates/ui-egui/src/ribbon/title_bar.rs
  • crates/ui-egui/tests/it/main.rs
  • crates/ui-egui/tests/it/ribbon_menu_language.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.

This branch has not been deployed

No deployments
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.

1 participant