Skip to content

PivotTables: the PivotTable Fields pane follows the interface language - #862

Merged
h-a-n-a-s-h-i merged 3 commits into
storytold:mainfrom
marcoarnulfo:fix/pivot-fields-pane-i18n
Oct 13, 2026
Merged

h-a-n-a-s-h-i merged 3 commits into
storytold:mainfrom
marcoarnulfo:fix/pivot-fields-pane-i18n

Conversation

@marcoarnulfo

Copy link
Copy Markdown
Contributor

Fixes #858.

The PivotTable Fields pane drew its labels, the field menus (Move to…, Summarize by…, Show as…, Group by…, Remove Field) and the Refresh / Calculated Field / Report Layout buttons from hardcoded English strings that never went through Language::tr, so changing the interface language had no effect on it. They now go through tr like the ribbon does, and the Spanish catalog has entries for them. "Summarize by …" and "Show as …" were built with format!, so they are now whole labels that a catalog can translate. Only Spanish entries are added, since that is what the issue reports; other languages still fall back to English for this pane and can be filled in the same way. Wording follows Excel's Spanish where I knew it ("Campos de tabla dinámica", "Mover a rótulos de fila", "Quitar campo"); happy to adjust any of it.

Validation:

  • interaction::pivot_fields_pane_follows_the_interface_language: fails on main (the pane shows "PivotTable Fields" instead of "Campos de tabla dinámica"), passes here; it also opens a field menu and checks its items
  • cargo test -p gridcraft-ui-egui --test interaction pivot_fields_pane
  • cargo clippy -p gridcraft-ui-egui --all-targets -- -D warnings, cargo fmt --all -- --check
  • (macOS, Apple silicon)

marcoarnulfo and others added 3 commits October 13, 2026 02:41
fixes storytold#858)

The pane's labels, field menus and buttons were hardcoded English strings that never went through i18n, so switching to Spanish left the whole pane in English. They now go through Language::tr, with Spanish entries in the catalog. The Summarize by / Show as items are keyed as whole labels so each one can be translated.
# Conflicts:
#	crates/ui-egui/tests/interaction.rs
@h-a-n-a-s-h-i
h-a-n-a-s-h-i merged commit a4ca87a into storytold:main Oct 13, 2026
1 check passed
@echelon

echelon commented Oct 13, 2026

Copy link
Copy Markdown
Member

Merged — thank you @marcoarnulfo for the contribution!

I merged main into your branch to resolve conflicts with PRs that landed first.

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.

Pivot table menu stays in english even after changing language to spanish

3 participants