Skip to content

Localization: add complete Brazilian Portuguese formula names - #1280

Open
paulohsconceicao wants to merge 1 commit into
storytold:mainfrom
paulohsconceicao:codex/pt-br-formulas
Open

paulohsconceicao wants to merge 1 commit into
storytold:mainfrom
paulohsconceicao:codex/pt-br-formulas

Conversation

@paulohsconceicao

@paulohsconceicao paulohsconceicao commented Oct 14, 2026 •

Copy link
Copy Markdown

Summary

  • add a complete Brazilian Portuguese formula-name table for all 514 canonical names currently recognized by GridCraft
  • route the existing Português (Brasil) interface preference to a dedicated formula locale
  • support pt-BR decimal commas, semicolon argument/reference-union separators, backslash array-column separators, booleans, autocomplete, signatures, display, editing, and XLSX round-trips
  • keep stored formulas, XLSX, commands, CLI, clipboard, and API syntax canonical English
  • preserve workbook/table names and LET/LAMBDA bindings ahead of localized aliases
  • document the localized formula boundary and credit @paulohsconceicao using the repository's GitHub-name sync mechanism

Translation source

Names were observed through Excel's public automation boundary on a pt-BR installation by assigning synthetic canonical formulas through Formula2 and reading Formula2Local. No Office files, binaries, assets, or implementation details were inspected or copied.

The resulting table was checked against GridCraft's production function registry:

  • catalog names: 514
  • pt-BR entries: 514
  • missing/extra entries: 0
  • duplicate localized aliases: 0

Verification

  • cargo fmt --all -- --check
  • git diff --check
  • structural catalog/table coverage and uniqueness check
  • formula-level tests for aliases, decimal/list/array separators, boolean literals, display round-trips, defined-name collisions, and LET/LAMBDA bindings
  • UI/XLSX test for canonical storage and localized redisplay

The local Windows host did not have the MSVC linker (link.exe), so compilation stopped while building dependencies before project code. GitHub Actions should run the repository's full configured checks.

@Harrison-Booth

Copy link
Copy Markdown
Contributor

Hi @paulohsconceicao, @MauriciDmarc: a heads-up from a housekeeping pass over the open PRs, so the Brazilian Portuguese formula names work doesn't get done twice.

Besides this PR, these open PRs also touch Brazilian Portuguese formula names translation:

What I checked: the open PR list of this repository today (titles, changed files, created and updated dates). I did not run or compare the catalogs themselves, so the overlap is by scope, not by line.

Could the authors agree between you on one PR to carry Brazilian Portuguese formula names (the others could then close, or be cut down to what the first one lacks)? Whichever you pick is fine; this isn't a ranking. The maintainers decide what merges.

For reference: the shared translation catalogs live in https://github.com/storytold/craft-i18n. GridCraft's own catalogs haven't moved there yet, so for now interface translations still go in this repository (crates/ui-egui/src/i18n/).

@MauriciDmarc

Copy link
Copy Markdown

@paulohsconceicao

I noticed that our PRs overlap in adding Brazilian Portuguese formula support to GridCraft.

I believe my PR (#2754) might be a better starting point for integration, as it includes localized function help, XLSX round-trip tests, and a more focused implementation that may be easier to review and maintain.

Your PR has much broader function coverage, though, and I think combining that with the improvements in mine could lead to a more complete solution.

I'd be happy to collaborate and hear your thoughts on the best approach!

reeeji pushed a commit to reeeji/gridcraft that referenced this pull request Nov 3, 2026
Adapted from storytold#1280 and storytold#1382.

Co-authored-by: Maurici Dmarco <129069676+MauriciDmarc@users.noreply.github.com>

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.

3 participants