Skip to content

M12: Excel-style languages (12 languages, local formulas, regional formats) - #191

Closed
quantmind-br wants to merge 1 commit into
storytold:mainfrom
quantmind-br:m12-languages
Closed

quantmind-br wants to merge 1 commit into
storytold:mainfrom
quantmind-br:m12-languages

Conversation

@quantmind-br

@quantmind-br quantmind-br commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

GridCraft in 12 languages, working the way Excel does:

  • Interface language: ribbon, menus, dialogs, messages, native menus and app-created content (Planilha1, Total Geral, PivotTable captions).
  • Formula language (the interface language by default, or en-US): function names, booleans, error values, structured-reference keywords, R1C1 letters and number-format letters (=SE(A1>1,5;SOMA(B1:B3);0), aaaa, JJJJ).
  • Regional format: decimal/group/list/array separators, dates, month and day names, AM/PM and currency ({1\2;3\4} in pt-BR, {1.2;3.4} in de-DE, {1;2:3;4} in ru-RU).

Storage stays canonical: Formula.text, XLSX, the journal and programmatic params keep English names, , arguments and . decimals, so a workbook opens identically in every language. Local text only crosses the engine boundary through *Local fields (inputLocal, formulaLocal, valueLocal, numberFormatLocal, refersToLocal).

Languages: en-US, pt-BR, pt-PT, es-ES, fr-FR, de-DE, it-IT, ru-RU, ja-JP, ko-KR, zh-CN, zh-TW. Japanese, Korean and Chinese keep English function names, as Excel does.

What changed

Area Change
crates/locale (new, L0) Language and region data in TOML, checked by build.rs (missing keys, duplicate local names, colliding separators, canonical en-US). CLDR-style negotiation of OS/browser tags (pt_BR.UTF-8, pt-AO → pt-PT, zh-HK → zh-TW, C/POSIX → en-US).
crates/formula tokenize_local / parse_local / print_local per dialect. catalog.rs is the single function list with file prefixes and replaces the four hand-kept lists. _xludf. marks a canonical name typed in a localized dialect (=SUM(1;2) in pt-BR is #NAME?, as in Excel).
core, numfmt, functions, calc Regional input parsing and text→number coercion, localized number-format codes and display ([$-LCID] honoured), TEXT/FIXED/DOLLAR, VALUE/DATEVALUE/NUMBERVALUE, *IF(S) and database criteria, CELL/INFO keywords, DBCS *B functions. Ctx::locale() defaults to the invariant locale, so en-US behaviour is unchanged.
crates/l10n (new, L4) Fluent messages (locales/<tag>/*.ftl), same keys and arguments as en-US in every language (enforced by tests and cargo xtask locales, now a ci step). Function descriptions (fn-*) are the exception: a language without one shows the en-US text.
crates/engine Locale prefs; app.setLocale (live switch, full recalc), app.getInternational, app.languages, file.options (the catalog's File › Options, now implemented: 259 / 290); *Local params and fields; stable EngineError::code() so the UI translates errors instead of string-matching; regional CSV (list-separator delimiter, local decimals).
ui-egui, apps, MCP Translated UI and native menus; local formula editing with highlighting, autocomplete and argument hints; File › Options › Language; shortcuts localized where Excel localizes them (pt-BR Ctrl+N is bold); IME; CJK font fallback (system fonts or CRAFT_FONTS_DIR, no fonts in the repo; font files are validated before egui sees them, so an HTML page served for a missing web font logs a warning instead of panicking); system locale detection; localStorage prefs on the web; CLI --locale; MCP local params.
xtask Layers for locale (L0) and l10n (L4); cargo xtask locales coverage report (function names and descriptions a language hasn't translated yet are warnings, not failures).

Diff size: +31.5k lines of .ftl/keymap, +6.4k of locale TOML, +3.2k in test files, +12.7k/−6.2k of code, plus docs (README, ROADMAP, AGENTS.md/CLAUDE.md, control protocol, decisions).

Data provenance

  • Function names and other formula tokens come from Microsoft's public, localized Excel support pages. They are machine-translated, so no single field is trusted. Each function name comes from a vote among the page title, the meta description, the syntax paragraph (aligned with the en-US page) and =NAME( examples, and needs two agreeing signals. Weak entries were decided by hand and are marked reviewed. For ru-RU, conflicts were also checked against independent function-translation tables; spellings Excel users meet that lost the vote are kept as accepted aliases (УСЛОВИЯ → IFS, ЕСЛИНД → IFNA, ПРОСМОТРХ with a Cyrillic Х → XLOOKUP). Every language file has a [provenance] table, and any token without a reliable source is listed under unsourced and kept in English rather than guessed.
  • Regions are hand-written from the operating systems' published regional conventions (CLDR / Windows NLS).
  • Interface translations are original work. No Microsoft UI strings were copied beyond feature and function names.

Function-name coverage from cargo xtask locales:

Language Translated Same as English Gaps Aliases
de-DE 403 97 1 0
es-ES 424 75 2 0
fr-FR 398 103 0 0
it-IT 452 48 1 0
pt-BR 412 87 2 1
pt-PT 418 82 1 2
ru-RU 459 42 0 3
ja-JP, ko-KR, zh-CN, zh-TW 0 501 0 0

Adding a worksheet function after this PR

Only English data is needed: the registry entry, BUILTINS in crates/formula/src/catalog.rs (with the _xlfn. prefix when there is one), crates/locale/data/languages/en-US.toml and fn-<NAME> in locales/en-US/functions.ftl. Other languages spell the function like English and show the en-US description until someone translates it. cargo xtask locales lists those as warnings and doesn't fail on them; the failing tests name the files to edit.

One API change reaches function code: the coercion helpers take the context, because text-to-number parsing follows the region (num(ctx, args, i) instead of num(args, i)). Tried on #292 (BAHTTEXT) merged on top of this branch: after that one-line change and the four English entries, every test passes and =BAHTTEXT(SOMA(21;0,25)) works in pt-BR.

Integration with recent main

This branch is one commit on top of current main (9f896c1, the 0.5.0 release), so every merge method works, including rebase. Changes to recent upstream work that need a reviewer's attention:

Verification

  • cargo xtask ci: all 8 steps pass (fmt, clippy, test, assets, layers, wasm, locales, parity). cargo test --workspace: 816 passed, 1 ignored (timing-sensitive).
  • en-US results are unchanged. Round-trip tests check parse_local(print_local(e, d), d) == e on randomly generated expressions for every language × region pair, and fuzz parse_local for panics.
  • CLI: gridcraft-cli eval --locale pt-BR '=SOMA(1,5;2)' → 3,5; --locale de-DE '=SUMME({1.2;3.4})' → 10; --locale ru-RU '=СУММ({1;2:3;4})' → 10, '=ТЕКСТ(46305;"ДД ММММ ГГГГ")' → 10 октябрь 2026; in pt-BR, =SOMA(A1#)*1,5 is stored as =SUM(A1#)*1.5.
  • CLI, names win in es-ES (--locale es-ES, name FALSO → C1 = 7): =LET(SUMA;LAMBDA(x;x+1);SUMA(2))+FALSO → 10, shown as typed; =FORMULATEXTO(A1) → =FALSO+1; =INDIRECTO("FALSO") → 7.
  • Offscreen snapshots checked in ja-JP, de-DE, zh-TW, pt-BR and ru-RU (ribbon, Options, Name Manager, Define Name, View tab with the language and display-theme combos).

Known limitations

  • With longer translated labels (e.g. pt-BR), the last ribbon groups get cut off. Listed under "What's left" in the ROADMAP.
  • Undo-history entries that don't come from a command fall back to English.
  • Excel's exact file spelling for an English function name that a localized dialect does not resolve (_xludf.) was inferred, not observed.
  • When a defined name takes a built-in's local spelling, the built-in shows as _xlfn.NAME(...). It is unambiguous and reads back, but it is not pretty. How Excel displays this case was not observed.
  • CJK glyphs need a system CJK font or CRAFT_FONTS_DIR. On the web they load from ./fonts/ when present.
  • ru-RU month names in TEXT use the nominative (10 октябрь 2026), and DATEVALUE doesn't accept genitive forms (10 октября 2026). Russian Excel's behaviour for both was not observed.

quantmind-br added a commit to quantmind-br/gridcraft that referenced this pull request Oct 10, 2026
- Web/desktop fonts: font bytes are validated with skrifa (the parser epaint
  uses) before egui sees them; an HTML page served for a missing
  fonts/cjk-*.ttf made epaint panic. Repeated deliveries are ignored.
- FontNeeds borrows instead of cloning every frame; FontKey drops the
  redundant bool; the CJK scan reads at most 200k cells per workbook.
- The View tab's language list loads the CJK fonts when it opens, like
  Options; other regional CJK craft faces are a last-resort fallback.
- ui.json migration: a saved language equal to what old builds detected
  from the system (e.g. "en" on a German system) keeps following the
  system; a real choice migrates and both files are rewritten at once.
  The web build never saved UI state, so it has nothing to migrate.
- Restores upstream behaviour lost in a merge resolution: imported
  ODS/XLSB files are titled "<name> (imported).xlsx" and the import
  message shows 5 warnings plus a count.
- table.resize never repeats a column name; from_csv reports errors under
  the command that ran; the lexer cannot advance by zero characters.
- UI commands keep typed EngineErrors (localized via error codes); number
  boxes read plain numbers only and round to the widget's decimals;
  engine.commands labels stay English; the command search tooltip no
  longer advertises a shortcut that does not exist.
@quantmind-br quantmind-br changed the title M12: Excel-style languages (11 languages, local formulas, regional formats) M12: Excel-style languages (12 languages, local formulas, regional formats) Oct 10, 2026
@quantmind-br

Copy link
Copy Markdown
Contributor Author

@h-a-n-a-s-h-i this is ready for review. It merges current main (90b3c41), and cargo xtask ci passes locally (all 8 steps, 816 tests).

Two things need a maintainer:

  1. The Packaging lint run is waiting for approval (first PR from this fork). It only triggers because packaging/web/README.md changed (a new "Language and fonts" section for the web app). No workflow or packaging script changed.
  2. Support common Spanish formula names and semicolon arguments #98 is folded into this design rather than kept beside it. "Integration with recent main" in the description explains it. The one judgement call there: when a defined name takes a built-in's local spelling, the built-in is shown with its file prefix (=SUMA(1;_xlfn.FALSE()) in Spanish with a name FALSO) so the text reads back unchanged.

Open PRs touching the same files: #163 (German interface, a different i18n design; this PR already covers de-DE), #208 (calc) and #206 (cell references). I'll merge main again after whichever lands first.

…rmats)

Interface, formula language and regional format work as in Excel: function
names, booleans, errors and format-code letters follow the formula language
(the interface language by default, or en-US); separators, dates, months and
currency follow the regional format. Workbooks, XLSX, the journal and
programmatic params stay canonical (English names, `,` arguments, `.`
decimal), so a file opens the same in every language. Local text only
crosses the engine boundary as `*Local` fields.

Languages: en-US, pt-BR, pt-PT, es-ES, fr-FR, de-DE, it-IT, ru-RU, ja-JP,
ko-KR, zh-CN, zh-TW (Japanese, Korean and Chinese keep English function
names, as Excel does).

- locale (new, L0): language and region data in TOML, validated by build.rs
  (missing keys, duplicate local names, colliding separators, canonical en-US),
  CLDR-style negotiation of OS and browser tags. Only en-US must list every
  function: one another language doesn't list yet keeps its English spelling
  there, so adding a worksheet function needs English data only.
- formula: tokenize/parse/print per dialect; one function catalog with file
  prefixes replaces the four hand-kept lists (_xlfn., _xludf. for canonical
  names typed in a localized dialect, _xlpm. for LET/LAMBDA parameters).
  In ru-RU `:` separates array-constant rows: inside braces a number followed
  by `:` is a number, since array constants hold no references.
- core, numfmt, functions, calc: regional input parsing and text-to-number
  coercion, localized number-format codes and display, TEXT/FIXED/DOLLAR,
  VALUE/DATEVALUE/NUMBERVALUE, criteria, CELL/INFO keywords, DBCS *B
  functions.
- l10n (new, L4): Fluent messages for all 12 languages, same keys and
  arguments as en-US (function descriptions may fall back to en-US);
  `cargo xtask locales` reports coverage, lists untranslated function names
  and descriptions as warnings, and runs in ci.
- engine: locale prefs, app.setLocale / app.getInternational /
  app.languages, file.options (catalog: 259 / 290), inputLocal /
  formulaLocal / valueLocal / numberFormatLocal / refersToLocal, stable
  EngineError codes, regional CSV, app-created content in the interface
  language.
- ui-egui and apps: translated UI and native menus, local formula editing
  with autocomplete and argument hints, Options > Language (live switch),
  localized shortcuts where Excel localizes them, IME, CJK font fallback
  (font bytes validated before egui sees them), system locale detection,
  localStorage prefs on the web, CLI --locale, MCP local params.

Built on upstream work:
- Interface languages (storytold#31, storytold#82, storytold#104): the hand-written table in
  crates/ui-egui/src/i18n.rs is folded into the Fluent catalog; every
  upstream language stays, Russian is the 12th (function names voted from
  Microsoft's ru-RU pages, checked against independent tables, with aliases
  such as УСЛОВИЯ and ЕСЛИНД). The View-tab picker runs app.language.set
  and shares the preference with Options > Language; ui.json language codes
  migrate once to prefs.json unless they are what old builds detected from
  the system. Text box editing (storytold#84) and key tips (storytold#43) keep working, with
  translated captions; key tip letters stay English in every language.
- Spanish formulas (storytold#98) are folded into this design: names follow the
  interface language and separators the region, so FormulaLocale,
  UiState.language and docs/formula-input.md are superseded. Its
  name-precedence rule is kept and generalized: defined names, table names
  and LET/LAMBDA bindings win over localized function names and booleans
  (parse_local_with/print_local_with, Workbook::knows_name) in cell input,
  *Local params, display, find/replace, CF, validation, names,
  FORMULATEXT and INDIRECT. A built-in whose local spelling a name took is
  written with its file prefix (_xlfn.SUM, _xlfn.FALSE()). The journal
  re-reads *Local params against the workbook as the command found it.
  storytold#98's UI tests are ported.
- Progress docs (storytold#189): localization re-measured (~10% -> ~50% ready).
- storytold#57/storytold#159: compare_numbers and MIN() with no arguments use the regional
  coercion. storytold#148: precedents of ranges ending in a function. storytold#127: the
  every-line delimiter rule applies to the regional CSV sniffer, whose
  fallback is the region's list separator. storytold#156: legacy array braces around
  the localized formula. storytold#149: table.resize writes the names it chooses into
  the header cells and numbers repeated headers like insert.table. storytold#105:
  cell-picture strings in all 12 languages.
- Restored upstream behaviour: imported ODS/XLSB files are titled
  "<name> (imported).xlsx"; the import message shows 5 warnings plus a count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@quantmind-br

Copy link
Copy Markdown
Contributor Author

@h-a-n-a-s-h-i @echelon an update for review (it replaces the status in my comment above):

State. The branch is one commit on top of current main (9f896c1, the 0.5.0 release), with no conflicts, so every merge method works, including rebase. cargo xtask ci passes locally (all 8 steps; cargo test --workspace: 816 passed, 1 ignored).

Needs a maintainer: the Packaging lint run is waiting for approval because this is the first PR from this fork. It only runs because packaging/web/README.md changed; no workflow or packaging script changed.

Overlap with open PRs. I test-merged every open PR against this branch. 60 of the ones that merge cleanly into main conflict with this PR, mostly in ribbon.rs and dialogs.rs. 16 of them add strings to crates/ui-egui/src/i18n.rs, which this PR replaces with the Fluent catalog. A few cover the same ground and are probably worth deciding together:

Merge them in whatever order you prefer. I'll keep this branch rebased on main and port whatever lands first.

Function PRs (#276, #280, #290, #292, #297, #317, #325) won't need eleven translations after this PR. A new function needs English data only:

  • the registry entry;
  • BUILTINS in crates/formula/src/catalog.rs;
  • crates/locale/data/languages/en-US.toml;
  • fn-<NAME> in locales/en-US/functions.ftl.

Other languages spell the function like English and show the English description until it's translated. cargo xtask locales reports those as warnings, not failures.

Function code needs one change: the coercion helpers take the context (num(ctx, args, i)), because text-to-number parsing follows the regional format. I checked this with #292 (BAHTTEXT) merged on top of this branch: after that one-line change and the four English entries, all tests pass, and =BAHTTEXT(SOMA(21;0,25)) works in pt-BR.

@quantmind-br

Copy link
Copy Markdown
Contributor Author

@echelon @h-a-n-a-s-h-i following your note on #163: main now has German, Spanish and Czech on i18n.rs, and this branch conflicts in 56 files. Instead of rebasing it as one piece, I'll send what main still lacks as focused PRs on top of main's i18n.rs and FormulaLocale:

  1. Formula languages. German, Brazilian Portuguese and Russian through FormulaLocale, the way Spanish works now, plus the full Spanish table (main has 10 names): function names, TRUE/FALSE, error literals, ; between arguments, decimal comma and array-constant separators. It follows the interface language and files stay English. Covers Feature request: German-localized formula function names and separators #367.
  2. Regional formats. A region setting next to the interface language: typed numbers and dates, and number and date display, follow it (1.234,56, 25/09/2026), including en-GB and en-IN as asked in No way to define default region settings #361. Files stay en-US.
  3. CSV. Save with the separator the file was opened with (CSV: saving keeps the separator the file was opened with (#426) #427), otherwise the region's list separator. This one waits for 2 and CSV: saving keeps the separator the file was opened with (#426) #427.

I'm turning this PR into a draft. It stays as the reference for the Fluent catalog approach; close it whenever you like if you don't want that direction.

@quantmind-br

Copy link
Copy Markdown
Contributor Author

@echelon @h-a-n-a-s-h-i the first two focused PRs are open, both on top of current main (3926d21):

  1. M12: formulas in German, Brazilian Portuguese, Russian and French, full Spanish table #443: formula languages. German, Brazilian Portuguese and Russian through FormulaLocale, plus the full Spanish table. Closes Feature request: German-localized formula function names and separators #367 and Support Localized Excel Formula Names (Non-English Function Names) #430.
  2. M12: regional formats (typed and displayed numbers, dates and times) #447: regional formats. A Regional format setting (15 regions, including en-GB and en-IN) for typed and displayed numbers, dates and times. Closes No way to define default region settings #361.

The code in the two PRs merges cleanly; only ROADMAP.md and docs/localization-parity.md conflict, and I'll rebase whichever lands second. Both say which tests already fail on main: two CSV tests where #427 meets #422, and the French table from #413 lacking a label from #404.

  1. CSV in the region's list separator and decimal waits for M12: regional formats (typed and displayed numbers, dates and times) #447. Saving with the separator a file was opened with is already in main (CSV: saving keeps the separator the file was opened with (#426) #427).

This draft stays only as the reference for the Fluent catalog approach.

@RedDevilMan

Copy link
Copy Markdown

Thanks for the great work on this PR! This is exactly the kind of internationalization support I was hoping to see in GridCraft.

I'd especially like to help validate the French (fr-FR) localization, including:

Function names such as SOMME, MOYENNE, and SI.
Decimal separators and formula argument separators.
Date, number, and currency formatting.
Switching between French and English without breaking existing workbooks.
Consistency of French UI translations and error messages.

I noticed the PR already includes extensive test coverage. Would additional French-specific manual testing or localization review be helpful before merging?

I'd be happy to contribute where needed. Thank you for your work!

@quantmind-br

Copy link
Copy Markdown
Contributor Author

@RedDevilMan thanks, French review would help. This PR is now a draft kept as a reference; the work continues in #443 (formula languages) and #447 (regional formats). Where French stands:

  • Formulas (SOMME, MOYENNE, SI): not in M12: formulas in German, Brazilian Portuguese, Russian and French, full Spanish table #443 yet. The French interface keeps English function names for now. A French table would be a new crates/formula/src/input/fr.rs in the same format as de.rs: function names, VRAI/FAUX, error literals, table specifiers and separators. The most valuable input is names checked in a real French Excel. The existing tables come from machine-translated Microsoft pages and have not been checked by native speakers.
  • Numbers, dates, currency: fr-FR is one of the 15 regions in M12: regional formats (typed and displayed numbers, dates and times) #447 (File › Options › Regional format › Français (France)): decimal comma, no-break-space grouping, dd/mm/yyyy. Manual testing there would help, in particular:
    • typing 1 234,56 with an ordinary space, which no test covers;
    • typed dates and month names;
    • € amounts;
    • switching region back and forth without changing stored values.
  • French interface on main (from i18n: add French (fr) interface #413, separate from these PRs): from about line 300 of crates/ui-egui/src/i18n/fr.rs (Backstage, header/footer and Options labels), the translations are attached to the wrong keys. For example "Options" → "PDF (*.pdf)", "Save As" → "Enregistrer la feuille sous forme de document PDF…", "Header" → "Informations". A PR that re-pairs that block would be a direct fix.

@RedDevilMan

Copy link
Copy Markdown

Thanks for the detailed explanation and for pointing me in the right direction!

Just to clarify, I'm not a developer or a French language specialist. I learned to use Excel in French during my school years and in my work, so French Excel terminology and formulas are what I'm familiar with as a user.

I'd be happy to help with manual testing by comparing GridCraft's behavior with French Excel, especially formula names, regional formats, and switching between French and English.

I'll take a look at the relevant PRs and see what I can test. If there are any specific areas where user testing would be particularly helpful, please let me know.

Thanks again!

@quantmind-br

Copy link
Copy Markdown
Contributor Author

@RedDevilMan that helps: a regular French Excel user is exactly what's missing, because none of the tables have been checked against a real localized Excel. There's no ready-made GridCraft build with these changes yet (v0.5.0 predates the French interface), so the most useful thing right now is what your French Excel does. Any subset of these is welcome; post what you see here or on #447:

  1. Type 1 234,56 using the normal space bar. Is it a number (right-aligned) or text (left-aligned)?
  2. Type 15/3/26, 15/03/2026 and 15 mars 2026 in three cells. What does each cell show, and is it right-aligned?
  3. Format a date cell as the long date. Is it shown as dimanche 15 mars 2026?
  4. Type =SOMME(1,5;2) and =SOMME({1.2;3.4}), then =SOMME({1\2;3\4}). Which ones does Excel accept, and what results?
  5. Type =TEXTE(AUJOURDHUI();"jj/mm/aaaa") and =TEXTE(AUJOURDHUI();"dd/mm/yyyy"). What does each show?
  6. In a table (Ctrl+L), type =LIGNES(Tableau1[#Tout]) and =LIGNES(Tableau1[#Données]), or write down the names Excel's autocomplete offers after Tableau1[#.

Once a French function table exists (after #443 is reviewed), I'll post its list of names so you can check them against your Excel. That's where a user's eye matters most.

@webdevtodayjason

Copy link
Copy Markdown
Contributor

Since this PR is reworking r1c1_to_a1, a few R1C1 inputs I hit on current main that you may want to cover. From D5:

  • =INDIRECT("R[9223372036854775807]C",FALSE) and =INDIRECT("RC[9223372036854775807]",FALSE) panic with an add overflow.
  • =ROW(INDIRECT("R[4294967296]C",FALSE)) returns 5 instead of #REF!, because the row wraps through as u32.
  • =INDIRECT("R[4294967291]C",FALSE) panics at the r + 1 when the A1 text is built.

Each should probably come back as #REF! like other off-sheet references. I left this out of my own PRs so it doesn't collide with your change.

@quantmind-br

Copy link
Copy Markdown
Contributor Author

@webdevtodayjason thanks for holding back to avoid the collision, but there isn't one. #191 stays a draft for reference only and won't be merged. The PRs that replace it, #443 and #447, leave r1c1_to_a1 (crates/calc/src/eval.rs) exactly as it is on main; git diff main... shows no change there. #191 only added a parameter for the R1C1 letters and didn't fix the overflow either, so please go ahead and fix it in your own PR.

The code matches what you describe:

  • base as i64 + d overflows when the offset is close to i64::MAX.
  • v as u32 truncates, which is why R[4294967296]C from D5 wraps back to row 5.
  • r + 1 overflows at u32::MAX.

[profile.release] doesn't enable overflow-checks, so in the shipped build the two additions wrap silently rather than panic, and only debug builds and tests panic. That means a regression test covers both cases.

Checking each coordinate against MAX_ROWS / MAX_COLS with checked_add would also make an in-range-for-u32 offset like R[2000000]C return #REF!, without relying on the A1 parser to reject A2000001 afterwards.

@RedDevilMan

Copy link
Copy Markdown

I tested the French Excel behavior using Excel 2013 (French version).

Test 1 — Number separators

  • Entered "1 234,56" using an ordinary space.
  • Excel recognized it as a number.
  • The formula bar displayed "1234,56" without the grouping space.
  • When I changed the cell format to General ("Standard"), it displayed "1234,56".

Test 2 — Date parsing

  • Entered "15/3/26" → displayed as "15/03/2026".
  • Entered "15/03/2026" → displayed as "15/03/2026".
  • Entered "15 mars 2026" → displayed as "15-mars-26".
  • All three were recognized as dates.

Test 3 — Long date format

  • The long date format displayed: "dimanche 15 mars 2026".

Test 4 — Formula and array separators

  • "=SOMME(1,5;2)" → "3,5".
  • "=SOMME({1,2;3,4})" → "4,60".
  • "=SOMME({1\2;3\4})" → formula syntax error.

Note: The second formula was entered with decimal commas, as shown above.

Test 5 — French date-format tokens

  • "=TEXTE(AUJOURDHUI();"jj/mm/aaaa")" → "12/10/2026".
  • "=TEXTE(AUJOURDHUI();"dd/mm/yyyy")" → "#VALEUR!".

Test 6 — Structured table references
I created a table named "Tableau1" with two data rows and one header row.

  • "=LIGNES(Tableau1[#Tout])" → "3".
  • "=LIGNES(Tableau1[#Données])" → "2".
  • The autocomplete suggestions after typing "=LIGNES(Tableau1[#" were:
    • "#Tout"
    • "#Données"
    • "#En-têtes"
    • "#Totaux"

These observations are from Excel 2013 with the French interface

@quantmind-br

Copy link
Copy Markdown
Contributor Author

@RedDevilMan thank you, this is exactly what was missing. I ran the same six checks in GridCraft with the French interface and the Français (France) regional format (the fork's localization branch, which combines #443 and #447):

French Excel 2013 GridCraft
1. 1 234,56 with a normal space number, 1234,56 in the formula bar and in General same
2. 15/3/26, 15/03/2026, 15 mars 2026 15/03/2026, 15/03/2026, 15-mars-26 same
3. Long date dimanche 15 mars 2026 same
4. =SOMME(1,5;2), =SOMME({1,2;3,4}) 3,5, 4,60 refused and #NAME?: there is no French formula table yet, so the French interface types formulas the English way (=SUM(1.5,2) gives 3,5)
5. TEXTE(…;"jj/mm/aaaa") / "dd/mm/yyyy" the date / #VALEUR! jj/10/aaaa / the date: format codes inside TEXT are always English
6. Tableau1[#Tout], [#Données] 3, 2 English specifiers only ([#All] 3, [#Data] 2)

So the regional format (1–3) matches French Excel. 4–6 are what a French formula table needs: function names, ; and the decimal comma in formulas, the specifiers you listed (#Tout, #Données, #En-têtes, #Totaux), and French date codes in TEXT, which no language handles yet.

One more check would settle array constants. \ gave a syntax error, so French Excel must separate columns with something else. What does =COLONNES({1.2.3}) return? 3 would mean the point separates columns.

quantmind-br added a commit to quantmind-br/gridcraft that referenced this pull request Oct 13, 2026
Français selects French formula syntax: 398 local function names from
Microsoft's fr-fr function pages (two agreeing signals per entry, 35
reviewed by hand), VRAI/FAUX, French errors and table specifiers, ';'
between arguments and array rows, ',' decimals and '.' between array
columns. Separators, SOMME, TEXTE, AUJOURDHUI, LIGNES, #VALEUR! and four
specifiers were observed in French Excel 2013 (storytold#191).
@quantmind-br

Copy link
Copy Markdown
Contributor Author

@RedDevilMan here is the French function-name list I promised. #443 now has a French formula table, so with the French interface GridCraft takes and shows French formulas. Your test 4 is now a test in the PR: =SOMME(1,5;2) gives 3.5 and =SOMME({1,2;3,4}) gives 4.6, and it is stored as SUM(1.5,2) so the file stays readable by any Excel.

The table has 398 names, VRAI/FAUX, the French errors (#VALEUR!, #NOM?, #NOMBRE!, #NUL!…) and the specifiers you saw (#Tout, #Données, #En-têtes, #Totaux, plus #Cette ligne). Functions not in the list keep their English name, as French Excel does (ABS, INDEX, DATE…). Between array columns it uses ., taken from Microsoft's French array-constant page; your =COLONNES({1.2.3}) check would confirm it.

The names come from Microsoft's French help pages, which are machine-translated. The 35 marked * in the list were judgement calls where the pages disagreed with themselves, for example TROUVE (FIND), STXT (MID), ESTVIDE (ISBLANK) and NON (NOT), so those are the ones most worth checking. Functions newer than Excel 2013 (RECHERCHEX, FILTRE, LET, ORGA.COLS…) won't exist in your copy.

If a name differs from your Excel, just tell me which one and what Excel shows.

All 398 names (English → French)
  ACCRINT             INTERET.ACC
  ACCRINTM            INTERET.ACC.MAT
  ADDRESS             ADRESSE
  AGGREGATE           AGREGAT
  AND                 ET
  ARABIC              CHIFFRE.ARABE
  AREAS               ZONES
  ARRAYTOTEXT         TABLEAU.EN.TEXTE
  AVEDEV              ECART.MOYEN
  AVERAGE             MOYENNE
  AVERAGEIF           MOYENNE.SI
  AVERAGEIFS          MOYENNE.SI.ENS
  BETA.DIST           LOI.BETA.N
  BETA.INV            BETA.INVERSE.N
  BETADIST            LOI.BETA
  BETAINV             BETA.INVERSE
  BIN2DEC             BINDEC
  BIN2HEX             BINHEX
  BIN2OCT             BINOCT
  BINOM.DIST          LOI.BINOMIALE.N
  BINOM.DIST.RANGE    LOI.BINOMIALE.SERIE
  BINOM.INV           LOI.BINOMIALE.INVERSE
  BINOMDIST           LOI.BINOMIALE
  BITAND              BITET
  BITLSHIFT           BITDECALG
  BITOR               BITOU
  BITRSHIFT           BITDECALD
  BITXOR              BITOUEXCLUSIF
  CEILING             PLAFOND
  CEILING.MATH        PLAFOND.MATH
  CEILING.PRECISE     PLAFOND.PRECIS
  CELL                CELLULE
  CHAR                CAR
  CHIDIST             LOI.KHIDEUX
  CHIINV              KHIDEUX.INVERSE
  CHISQ.DIST          LOI.KHIDEUX.N
  CHISQ.DIST.RT       LOI.KHIDEUX.DROITE
  CHISQ.INV           LOI.KHIDEUX.INVERSE
  CHISQ.INV.RT        LOI.KHIDEUX.INVERSE.DROITE
  CHITEST             TEST.KHIDEUX
  CHOOSE              CHOISIR
  CHOOSECOLS          CHOISIRCOLS
  CHOOSEROWS          CHOISIRLIGNES
  CLEAN               EPURAGE
  COLUMN              COLONNE
  COLUMNS             COLONNES
  COMPLEX             COMPLEXE
  CONCATENATE         CONCATENER
  CONFIDENCE          INTERVALLE.CONFIANCE
  CONFIDENCE.NORM     INTERVALLE.CONFIANCE.NORMAL
  CONFIDENCE.T        INTERVALLE.CONFIANCE.STUDENT
  CORREL              COEFFICIENT.CORRELATION
  COUNT               NB
  COUNTA              NBVAL
  COUNTBLANK          NB.VIDE
  COUNTIF             NB.SI
  COUNTIFS            NB.SI.ENS
  COUPDAYBS           NB.JOURS.COUPON.PREC
  COUPDAYS            NB.JOURS.COUPONS
  COUPDAYSNC          NB.JOURS.COUPON.SUIV
  COUPNCD             DATE.COUPON.SUIV
  COUPNUM             NB.COUPONS
  COUPPCD             DATE.COUPON.PREC
  COVAR               COVARIANCE
  COVARIANCE.P        COVARIANCE.PEARSON
  COVARIANCE.S        COVARIANCE.STANDARD
  CRITBINOM           CRITERE.LOI.BINOMIALE
  CUBEKPIMEMBER       MEMBREKPICUBE
  CUBEMEMBER          MEMBRECUBE
  CUBEMEMBERPROPERTY  PROPRIETEMEMBRECUBE
  CUBERANKEDMEMBER    RANGMEMBRECUBE
  CUBESET             JEUCUBE
  CUBESETCOUNT        NBJEUCUBE
  CUBEVALUE           VALEURCUBE
  CUMIPMT             CUMUL.INTER
  CUMPRINC            CUMUL.PRINCPER
  DATEVALUE           DATEVAL
  DAVERAGE            BDMOYENNE
  DAY                 JOUR
  DAYS                JOURS
  DAYS360             JOURS360
  DCOUNT              BDNB
  DCOUNTA             BDNBVAL
  DEC2BIN             DECBIN
  DEC2HEX             DECHEX
  DEC2OCT             DECOCT
  DEGREES             DEGRES
  DEVSQ               SOMME.CARRES.ECARTS
* DGET                BDLIRE
  DISC                TAUX.ESCOMPTE
  DMAX                BDMAX
  DMIN                BDMIN
  DOLLAR              DEVISE
  DOLLARDE            PRIX.DEC
  DOLLARFR            PRIX.FRAC
  DPRODUCT            BDPRODUIT
* DROP                EXCLURE
  DSTDEV              BDECARTYPE
  DSTDEVP             BDECARTYPEP
  DSUM                BDSOMME
  DURATION            DUREE
  DVAR                BDVAR
  DVARP               BDVARP
  EDATE               MOIS.DECALER
  EFFECT              TAUX.EFFECTIF
* ENCODEURL           URLENCODAGE
  EOMONTH             FIN.MOIS
  ERF.PRECISE         ERF.PRECIS
  ERFC.PRECISE        ERFC.PRECIS
  ERROR.TYPE          TYPE.ERREUR
  EVEN                PAIR
* EXPAND              ETENDRE
  EXPON.DIST          LOI.EXPONENTIELLE.N
  EXPONDIST           LOI.EXPONENTIELLE
  F.DIST              LOI.F.N
  F.DIST.RT           LOI.F.DROITE
  F.INV               INVERSE.LOI.F.N
  F.INV.RT            INVERSE.LOI.F.DROITE
  FALSE               FAUX
  FDIST               LOI.F
  FILTER              FILTRE
  FILTERXML           FILTRE.XML
* FIND                TROUVE
* FINDB               TROUVEB
  FINV                INVERSE.LOI.F
  FISHERINV           FISHER.INVERSE
  FIXED               CTXT
  FLOOR               PLANCHER
  FLOOR.MATH          PLANCHER.MATH
  FLOOR.PRECISE       PLANCHER.PRECIS
  FORECAST            PREVISION
* FORECAST.LINEAR     PREVISION.LINEAIRE
  FORMULATEXT         FORMULETEXTE
  FREQUENCY           FREQUENCE
  FTEST               TEST.F
  FV                  VC
  FVSCHEDULE          VC.PAIEMENTS
  GAMMA.DIST          LOI.GAMMA.N
  GAMMA.INV           LOI.GAMMA.INVERSE.N
  GAMMADIST           LOI.GAMMA
  GAMMAINV            LOI.GAMMA.INVERSE
  GAMMALN             LNGAMMA
  GAMMALN.PRECISE     LNGAMMA.PRECIS
  GCD                 PGCD
  GEOMEAN             MOYENNE.GEOMETRIQUE
  GESTEP              SUP.SEUIL
  GROUPBY             GROUPER.PAR
  GROWTH              CROISSANCE
  HARMEAN             MOYENNE.HARMONIQUE
  HEX2BIN             HEXBIN
  HEX2DEC             HEXDEC
  HEX2OCT             HEXOCT
  HLOOKUP             RECHERCHEH
  HOUR                HEURE
  HSTACK              ASSEMB.H
  HYPERLINK           LIEN_HYPERTEXTE
  HYPGEOM.DIST        LOI.HYPERGEOMETRIQUE.N
  HYPGEOMDIST         LOI.HYPERGEOMETRIQUE
  IF                  SI
  IFERROR             SIERREUR
  IFNA                SI.NON.DISP
* IFS                 SI.CONDITIONS
  IMABS               COMPLEXE.MODULE
  IMAGINARY           COMPLEXE.IMAGINAIRE
  IMARGUMENT          COMPLEXE.ARGUMENT
  IMCONJUGATE         COMPLEXE.CONJUGUE
  IMCOS               COMPLEXE.COS
  IMCOSH              COMPLEXE.COSH
  IMCOT               COMPLEXE.COT
  IMCSC               COMPLEXE.CSC
  IMCSCH              COMPLEXE.CSCH
  IMDIV               COMPLEXE.DIV
  IMEXP               COMPLEXE.EXP
  IMLN                COMPLEXE.LN
  IMLOG10             COMPLEXE.LOG10
  IMLOG2              COMPLEXE.LOG2
  IMPOWER             COMPLEXE.PUISSANCE
  IMPRODUCT           COMPLEXE.PRODUIT
  IMREAL              COMPLEXE.REEL
  IMSEC               COMPLEXE.SEC
  IMSECH              COMPLEXE.SECH
  IMSIN               COMPLEXE.SIN
  IMSINH              COMPLEXE.SINH
  IMSQRT              COMPLEXE.RACINE
  IMSUB               COMPLEXE.DIFFERENCE
  IMSUM               COMPLEXE.SOMME
  IMTAN               COMPLEXE.TAN
  INFO                INFORMATIONS
  INT                 ENT
  INTERCEPT           ORDONNEE.ORIGINE
  INTRATE             TAUX.INTERET
  IPMT                INTPER
  IRR                 TRI
* ISBLANK             ESTVIDE
* ISERR               ESTERR
* ISERROR             ESTERREUR
  ISEVEN              EST.PAIR
  ISFORMULA           ESTFORMULE
* ISLOGICAL           ESTLOGIQUE
* ISNA                ESTNA
* ISNONTEXT           ESTNONTEXTE
* ISNUMBER            ESTNUM
  ISO.CEILING         ISO.PLAFOND
* ISODD               EST.IMPAIR
  ISOWEEKNUM          NO.SEMAINE.ISO
* ISREF               ESTREF
* ISTEXT              ESTTEXTE
  KURT                KURTOSIS
  LARGE               GRANDE.VALEUR
  LCM                 PPCM
  LEFT                GAUCHE
  LEFTB               GAUCHEB
  LEN                 NBCAR
* LENB                NBCARB
  LINEST              DROITEREG
  LOGEST              LOGREG
  LOGINV              LOI.LOGNORMALE.INVERSE
  LOGNORM.DIST        LOI.LOGNORMALE.N
  LOGNORM.INV         LOI.LOGNORMALE.INVERSE.N
  LOGNORMDIST         LOI.LOGNORMALE
  LOOKUP              RECHERCHE
  LOWER               MINUSCULE
  MATCH               EQUIV
  MAXIFS              MAX.SI.ENS
  MDETERM             DETERMAT
  MDURATION           DUREE.MODIFIEE
  MEDIAN              MEDIANE
* MID                 STXT
* MIDB                STXTB
  MINIFS              MIN.SI.ENS
  MINVERSE            INVERSEMAT
  MIRR                TRIM
  MMULT               PRODUITMAT
  MODE.MULT           MODE.MULTIPLE
  MODE.SNGL           MODE.SIMPLE
  MONTH               MOIS
  MROUND              ARRONDI.AU.MULTIPLE
  MULTINOMIAL         MULTINOMIALE
  MUNIT               MATRICE.UNITAIRE
  NEGBINOM.DIST       LOI.BINOMIALE.NEG.N
  NEGBINOMDIST        LOI.BINOMIALE.NEG
  NETWORKDAYS         NB.JOURS.OUVRES
  NETWORKDAYS.INTL    NB.JOURS.OUVRES.INTL
  NOMINAL             TAUX.NOMINAL
  NORM.DIST           LOI.NORMALE.N
  NORM.INV            LOI.NORMALE.INVERSE.N
  NORM.S.DIST         LOI.NORMALE.STANDARD.N
  NORM.S.INV          LOI.NORMALE.STANDARD.INVERSE.N
  NORMDIST            LOI.NORMALE
  NORMINV             LOI.NORMALE.INVERSE
  NORMSDIST           LOI.NORMALE.STANDARD
  NORMSINV            LOI.NORMALE.STANDARD.INVERSE
* NOT                 NON
  NOW                 MAINTENANT
  NPER                NPM
  NPV                 VAN
  NUMBERVALUE         VALEURNOMBRE
  OCT2BIN             OCTBIN
  OCT2DEC             OCTDEC
  OCT2HEX             OCTHEX
  ODD                 IMPAIR
  OFFSET              DECALER
  OR                  OU
  PDURATION           PDUREE
  PERCENTILE          CENTILE
* PERCENTILE.EXC      CENTILE.EXCLURE
  PERCENTILE.INC      CENTILE.INCLURE
  PERCENTRANK         RANG.POURCENTAGE
  PERCENTRANK.EXC     RANG.POURCENTAGE.EXCLURE
  PERCENTRANK.INC     RANG.POURCENTAGE.INCLURE
  PERMUT              PERMUTATION
* PHONETIC            PHONETIQUE
  PIVOTBY             PIVOTER.PAR
  PMT                 VPM
  POISSON             LOI.POISSON
  POISSON.DIST        LOI.POISSON.N
  POWER               PUISSANCE
  PPMT                PRINCPER
  PRICE               PRIX.TITRE
  PRICEDISC           VALEUR.ENCAISSEMENT
  PRICEMAT            PRIX.TITRE.ECHEANCE
  PROB                PROBABILITE
  PRODUCT             PRODUIT
  PROPER              NOMPROPRE
  PV                  VA
  QUARTILE.EXC        QUARTILE.EXCLURE
  QUARTILE.INC        QUARTILE.INCLURE
  RAND                ALEA
  RANDARRAY           TABLEAU.ALEA
  RANDBETWEEN         ALEA.ENTRE.BORNES
  RANK                RANG
  RANK.AVG            MOYENNE.RANG
  RANK.EQ             EQUATION.RANG
  RATE                TAUX
  RECEIVED            VALEUR.NOMINALE
* REGEXEXTRACT        REGEX.EXTRAIRE
* REGEXREPLACE        REGEX.REMPLACER
* REGEXTEST           REGEX.TEST
  REPLACE             REMPLACER
  REPLACEB            REMPLACERB
  RIGHT               DROITE
  RIGHTB              DROITEB
  ROMAN               ROMAIN
  ROUND               ARRONDI
  ROUNDDOWN           ARRONDI.INF
  ROUNDUP             ARRONDI.SUP
  ROW                 LIGNE
  ROWS                LIGNES
  RRI                 TAUX.INT.EQUIV
  RSQ                 COEFFICIENT.DETERMINATION
  SEARCH              CHERCHE
* SEARCHB             CHERCHEB
  SECOND              SECONDE
  SERIESSUM           SOMME.SERIES
  SHEET               FEUILLE
  SHEETS              FEUILLES
  SIGN                SIGNE
  SKEW                COEFFICIENT.ASYMETRIE
  SKEW.P              COEFFICIENT.ASYMETRIE.P
  SLN                 AMORLIN
  SLOPE               PENTE
  SMALL               PETITE.VALEUR
  SORT                TRIER
  SORTBY              TRIERPAR
  SQRT                RACINE
  SQRTPI              RACINE.PI
  STANDARDIZE         CENTREE.REDUITE
  STDEV               ECARTYPE
  STDEV.P             ECARTYPE.PEARSON
  STDEV.S             ECARTYPE.STANDARD
  STDEVP              ECARTYPEP
  STEYX               ERREUR.TYPE.XY
  SUBSTITUTE          SUBSTITUE
  SUBTOTAL            SOUS.TOTAL
  SUM                 SOMME
  SUMIF               SOMME.SI
  SUMIFS              SOMME.SI.ENS
  SUMPRODUCT          SOMMEPROD
  SUMSQ               SOMME.CARRES
  SUMX2MY2            SOMME.X2MY2
  SUMX2PY2            SOMME.X2PY2
  SUMXMY2             SOMME.XMY2
  SWITCH              SI.MULTIPLE
  T.DIST              LOI.STUDENT.N
  T.DIST.2T           LOI.STUDENT.BILATERALE
  T.DIST.RT           LOI.STUDENT.DROITE
  T.INV               LOI.STUDENT.INVERSE.N
  T.INV.2T            LOI.STUDENT.INVERSE.BILATERALE
* TAKE                PRENDRE
  TBILLEQ             TAUX.ESCOMPTE.R
  TBILLPRICE          PRIX.BON.TRESOR
  TBILLYIELD          RENDEMENT.BON.TRESOR
  TDIST               LOI.STUDENT
  TEXT                TEXTE
  TEXTAFTER           TEXTE.APRES
  TEXTBEFORE          TEXTE.AVANT
  TEXTJOIN            JOINDRE.TEXTE
* TEXTSPLIT           FRACTIONNER.TEXTE
  TIME                TEMPS
  TIMEVALUE           TEMPSVAL
  TINV                LOI.STUDENT.INVERSE
* TOCOL               DANSCOL
  TODAY               AUJOURDHUI
  TOROW               DANSLIGNE
  TREND               TENDANCE
  TRIM                SUPPRESPACE
  TRIMMEAN            MOYENNE.REDUITE
  TRUE                VRAI
  TRUNC               TRONQUE
  TTEST               TEST.STUDENT
  UNICHAR             UNICAR
  UPPER               MAJUSCULE
  VALUE               CNUM
  VALUETOTEXT         VALEUR.EN.TEXTE
* VAR.P               VAR.P.N
* VARP                VAR.P
  VLOOKUP             RECHERCHEV
  VSTACK              ASSEMB.V
  WEBSERVICE          SERVICEWEB
  WEEKDAY             JOURSEM
  WEEKNUM             NO.SEMAINE
  WEIBULL             LOI.WEIBULL
  WEIBULL.DIST        LOI.WEIBULL.N
  WORKDAY             SERIE.JOUR.OUVRE
  WORKDAY.INTL        SERIE.JOUR.OUVRE.INTL
* WRAPCOLS            ORGA.COLS
* WRAPROWS            ORGA.LIGNES
  XIRR                TRI.PAIEMENTS
  XLOOKUP             RECHERCHEX
  XMATCH              EQUIVX
  XNPV                VAN.PAIEMENTS
  XOR                 OUX
  YEAR                ANNEE
  YEARFRAC            FRACTION.ANNEE
  YIELD               RENDEMENT.TITRE
  YIELDDISC           RENDEMENT.SIMPLE
  YIELDMAT            RENDEMENT.TITRE.ECHEANCE
  ZTEST               TEST.Z

@RedDevilMan

Copy link
Copy Markdown

I tested the marked French function names in Microsoft Excel 2024 Pro Plus with the French interface.

Successful tests

  • TROUVE("b","abc") → 2
  • STXT("abc",2,1) → b
  • Tests 3–10 from the provided batch all returned the expected results.
  • ESTNUM(123) → VRAI
  • EST.IMPAIR(3) → VRAI
  • ESTREF(A1) → VRAI
  • ESTTEXTE("abc") → VRAI
  • NBCAR("abc") → 3
  • FRACTIONNER.TEXTE("a,b,c",",") split the result into a, b, and c in separate cells.
  • VAR.P.N(1,2,3) → 0.666666667
  • VAR.P(1,2,3) → 0.666666667
  • PHONETIQUE(A1) → #N/A
  • STXTB("abc",2,1) → b
  • SI.CONDITIONS(1=1,"Oui",VRAI(),"Non") → Oui

Names returning #NOM?

  • NBCARB
  • CHERCHEB
  • ENCODAGEURL
  • TROUVEB

Formulas rejected before entry

  • CENTILE.EXCLURE
  • PRENDRE
  • DANSCOL
  • ORGA.COLS
  • EXCLURE
  • ETENDRE
  • PREVISION.LINEAIRE
  • FILTRE
  • RECHERCHEX

For these, Excel displayed a formula syntax error; after dismissing the dialog, the formula remained in the cell as plain text.

Array separator test

  • =COLONNES({1.2.3}) was automatically corrected by Excel to =COLONNES({1.23}).
  • The corrected formula returned 1. This did not confirm that . separates array columns.

These results reflect my local Excel 2024 Pro Plus installation. The rejected formulas may need to be retested with the correct array-constant syntax and argument separators before drawing conclusions about the French function names.

quantmind-br added a commit to quantmind-br/gridcraft that referenced this pull request Oct 14, 2026
French Excel 2024 gives #NOM? for NBCARB, CHERCHEB and TROUVEB, the
names that were inferred from the base name + B pattern (storytold#191). The
French names are LENB (unchanged), CHERCHERB and TROUVERB, as in
Microsoft's French text-function reference, perfectxl and auditexcel.

Adds the functions added after the table was collected: the four ODD*
bond functions (PRIX/REND.PCOUPON/DCOUPON.IRREG) and the four
PREVISION.ETS* functions, each from the Microsoft fr-fr page and ledojo.
PERCENTOF and TRIMRANGE keep English: the two sources disagree.
@quantmind-br

Copy link
Copy Markdown
Contributor Author

@RedDevilMan thank you, this is very useful.

The three #NOM? names were my mistake. I had guessed NBCARB, CHERCHEB and TROUVEB from the pattern of the other byte functions (STXTB, GAUCHEB…). Microsoft's French list of text functions has LENB (not translated), CHERCHERB and TROUVERB, and two other French–English tables agree, so #443 now uses those. ENCODAGEURL isn't in the list: the name there is URLENCODAGE, so =URLENCODAGE("a b") should give a%20b. While checking, I also added eight functions the list was missing: PRIX.PCOUPON.IRREG, REND.PCOUPON.IRREG, PRIX.DCOUPON.IRREG, REND.DCOUPON.IRREG and the four PREVISION.ETS… functions.

The rejected formulas probably come from the separators, not the names. An unknown name gives #NOM?, as NBCARB did; a syntax error means Excel could not read the formula text. FILTRE and RECHERCHEX are long-established French names and were rejected too. Your working tests use , between arguments and show 0.666666667 with a point, so this Excel 2024 uses , and ., while your Excel 2013 used ; and , (=SOMME(1,5;2) gave 3,5). Could you retry with cell ranges and commas? With 1 to 6 in A1:A6:

Formula Expected
=PRENDRE(A1:A6,2) 1, 2
=EXCLURE(A1:A6,4) 5, 6
=ETENDRE(A1:A2,3,1,0) 1, 2, 0
=DANSCOL(A1:A6) 1 to 6 in one column
=ORGA.COLS(A1:A6,3) 1–3 and 4–6 in two columns
=CENTILE.EXCLURE(A1:A6,0.5) 3.5
=PREVISION.LINEAIRE(7,A1:A6,A1:A6) 7
=FILTRE(A1:A6,A1:A6>4) 5, 6
=RECHERCHEX(3,A1:A6,A1:A6) 3
=TROUVERB("b","abc") 2
=CHERCHERB("b","abc") 2
=LENB("abc") 3
=URLENCODAGE("a b") a%20b

About =COLONNES({1.2.3}): with . as the decimal point, Excel reads 1.2.3 as a malformed number (hence {1.23}), so this machine can't answer it. The question only applies where the decimal is a comma, as on your Excel 2013; if that machine is still around, the same formula there would settle it.

One question about the 2024 machine: is its Windows region, or Excel's "Utiliser les séparateurs système" option, set to something other than French? If Excel's separators follow the region rather than the display language, GridCraft should do the same.

@quantmind-br

Copy link
Copy Markdown
Contributor Author

Closing this draft. It has been split into smaller PRs on current main, each following the codebase's own i18n structure (crates/ui-egui/src/i18n/*.rs) rather than the separate Fluent/locale crates this draft introduced:

The m12-languages branch stays on the fork as a reference. The per-language data that was collected here (crates/locale/data/languages/*.toml and regions/*.toml, with sources) is what the formula tables are built from.

@RedDevilMan thank you for all the testing in this thread; it already fixed three wrong names. When you have results for the retest table in my last comment (or your Windows region and separator settings), please post them on #443, which is where the French table lives now. Comments here still reach me, so nothing gets lost if you already started writing.

quantmind-br added a commit to quantmind-br/gridcraft that referenced this pull request Oct 15, 2026
French Excel 2024 with an English regional format takes dd/mm/yyyy and
refuses jj/mm/aaaa, which French Excel 2013 with a French region needed
(storytold#191, storytold#443). Note it next to the separators; GridCraft's codes stay
English in every region.
quantmind-br added a commit to quantmind-br/gridcraft that referenced this pull request Oct 15, 2026
Français enters and shows French formulas: 405 local function names
(SOMME, SI, RECHERCHEV), VRAI/FAUX, French errors and table specifiers,
';' between arguments and array rows, ',' decimals and '.' between array
columns. Separators, TEXTE date codes and 38 names were checked in French
Excel 2013 and 2024 (storytold#191); FINDB and SEARCHB are TROUVERB and CHERCHERB,
and LENB keeps its English name.
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