Repository navigation
PivotTables: the PivotTable Fields pane follows the interface language - #862
Merged
h-a-n-a-s-h-i merged 3 commits intoOct 13, 2026
Merged
Conversation
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
Member
|
Merged — thank you @marcoarnulfo for the contribution! I merged main into your branch to resolve conflicts with PRs that landed first. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 #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 throughtrlike the ribbon does, and the Spanish catalog has entries for them. "Summarize by …" and "Show as …" were built withformat!, 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 itemscargo test -p gridcraft-ui-egui --test interaction pivot_fields_panecargo clippy -p gridcraft-ui-egui --all-targets -- -D warnings,cargo fmt --all -- --check