Skip to content

French: complete port menus, accents and locale tables (follow-up to #34) - #43

Merged
ZallaxDev merged 5 commits into
ZallaxDev:devfrom
Sneazynek:feature/french-ui-followup
Oct 12, 2026
Merged

ZallaxDev merged 5 commits into
ZallaxDev:devfrom
Sneazynek:feature/french-ui-followup

Conversation

@Sneazynek

@Sneazynek Sneazynek commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

French port options need translated labels, the touch-screen font adapter needs
accent support, and several locale tables need French widths or ordering. This
follow-up completes those parts using andyst-dev's ROM detection, extraction,
builder and release integration from #34.

This remains a dependent Draft PR while #34 is open. The branch now targets
dev, rebased onto 564f225c960dbbd221fdf092851d24147375b98d, including #49,
#50 and the host-test fixes from #37. No release branch is changed.

The original French-support commit by andyst-dev,
c06265b,
is retained with its author and authored date as rebased commit
1c32e51.
His work is not presented as ours. Our original two follow-up commits retain
their authorship as 2bec6a3 and dcaa49f; the review fixes are f74a602 and
7565930. The follow-up comparison
shows only our 15 changed files. The combined diff against dev still includes
the underlying contribution from #34. Existing upstream and third-party
credits, including Jesus Oliva's Spanish work, are preserved.

Changes and review responses:

  • Translate the French settings, enhancements, cheats, item-giving screens,
    values and summary labels. All four ENHANCEMENTS rows added by ENHANCEMENTS: IVs/EVs, Repel prompt, infinite TMs, run indoors; Fly and Flash from the Bag #49 now use
    CTR_TEXT: IV ET EV, RAPPEL REPOUSSE, CT INFINIES and COURSE INTÉR.
    Existing English and Spanish labels are retained.
  • Rebase both locale manifests onto the fully patched dev tree. French
    454/454 and Spanish 449/449 source hashes, spans and bounds match. Against
    the previous PR head, all 19,356 French and 19,348 Spanish edit reads retain
    their ROM offsets, sizes and kinds; the source fragment at every edit is
    unchanged. Graphics, symbol references and all other manifest metadata are
    unchanged. Only source positions and source hashes were updated.
  • The latest dev merge took patch 0044 for the caught-mon Pokédex fix
    (The Pokédex page after a catch shows its whole description (#29) #50). The French series therefore uses 0041–0043, 0045 and 0047:
    former French 0044 is now 0045; former French 0045 is now 0047. Number 0046
    is left available for the current patch in pending ENHANCEMENTS: the physical/special split, with category icons #30. These numbers were
    checked against dev and ENHANCEMENTS: the physical/special split, with category icons #30 at rebase time. Both renamed patches have the
    standard pinned-pret header and an Applies after … line; the complete
    sorted patch series applies to pinned pret commit 76463dac15cad36aca5e2b3f6366abf9e53f814f.
  • CtrLocale_Glyph now supports í/ó/ú/Í/Ó/Ú/¡/¿, including the game's
    non-contiguous codes for í and Í. &, , and % render in English too,
    including TMS & HMS. Adapter tests cover those characters in EN, ES and
    FR, invalid UTF-8, unsupported characters, termination and truncation.
  • Preserve the French numeric tables, two-column phrases, nine-column naming
    rows, 22-byte type names, team EXP message, metric Pokédex and decimal comma.
    Game-side changes stay guarded by the port and language checks.
  • The French changelog remains under Unreleased, above the unchanged
    0.3.1 release notes. The French guide lists the required photos and explains
    the fixed SD save paths for testing separately from an existing installation.

Validation on exact head 7565930 (2026-10-11):

  • 52 builder/locale tests passed with no skips, including host C adapter
    checks for all three languages; Python byte-compilation passed.
  • Strict audits of the repository and committed source archive passed with
    a local BPEF ROM-byte scan. The synthetic web payload contract audit passed.
    Follow-up commits pass git diff --check; the four existing notices in
    French: play from your own Pokémon Émeraude (France) ROM #34's patch context are unchanged.
  • All 62 French port literals checked are encodable and fit their buffers;
    the four new labels measure 34/73/49/61 pixels in a 96-pixel name area.
    Tab labels, including both CHEATS page numbers, fit their available width.
    These measurements do not replace screenshots.
  • localize_french.py completed successfully on the clean BPEF ROM against
    this rebased tree, with no source or ROM-range rejection.
  • English and French development and engine-only release builds succeeded.
    All other host verification targets (input, video, pack, voxel, settings
    and building proofs) passed separately, with native C tests under -Werror.
    Separate ARM11/link audits passed for both builds; asset checks passed
    (EN 6424/6424, FR 6393/6393). Strict engine-only publication audits passed
    for both executables with a BPEF ROM-byte scan.
  • A French data pack was generated from this exact build's staging using
    staging.py pak --rom <clean BPEF ROM> (the generic make target defaults
    to the English ROM identity). All 6401/6401 files are byte-identical to
    staging; payload CRCs, the BPEF SHA-1 and ABI da7d2adc were verified.
    The copied source overlay matches the committed head, and the delivered
    executable/pack have recorded SHA-256 hashes. These private outputs
    remain local and are excluded from Git.

Still pending before acceptance:

  • Full make verify: it was run on both English and French builds and
    fails at verify-bottom-map. The unchanged bottom_map_test.py extractor
    picks the RectsMeet prototype and the following unrelated animation
    function instead of its definition; its mocks also lack the current map
    name bounds and raster helpers. The same failure was reproduced using
    the test, helper and UI source exported directly from current dev
    564f225. Our follow-up does not change any of those map functions or
    tests. Other host targets and the ARM11/link audits were run separately;
    their success does not constitute a passing complete verification suite.
  • Actual BPES staging: no clean Spanish ROM is available to this
    contributor, so localize_spanish.py has not been run with BPES on this
    rebased head. Spanish source hashes, every span, ROM-read preservation and
    the synthetic regressions pass. A reviewer with BPES still needs to run the
    real staging command. andyst-dev's earlier successful BPES/BPEF checks in
    this thread apply to the previous head, not to this one.
  • Console photos and testing of this exact head: no photos are attached,
    and this corrected branch has not been tested on a physical console.
    Requested bottom-screen photos: OPTIONS/RÉGLAGES, AMÉLIOR. including the
    four new rows, ASTUCES 1/2 and 2/2, Pokémon summary/statistics/moves panels,
    and the battle move-selection panel, with long names, types and PP visible.
    The contributor will provide the photos and console model; this PR will be
    completed with that evidence afterward. Earlier launch/introduction/menu
    observations belong to a previous private French build; emulator reports
    in French: play from your own Pokémon Émeraude (France) ROM #34 belong to its author. No adventure, combat, save compatibility,
    cheat behavior or performance validation of this head is claimed.

The private French test compilation is built from this exact committed head
and kept separately from the existing installation. It contains no save.
Testing instructions require a separate test SD card because the unchanged
engine uses fixed SD paths; launching the 3DSX in a differently named folder
would still share saves and settings. Private binaries and ROM-derived data
are not uploaded to this PR or committed.

AI disclosure: OpenAI Codex assisted with implementation, rebase, local checks
and this description. No prompts or transcripts are included. Maintainer
review and the pending hardware evidence remain required.

@andyst-dev

Copy link
Copy Markdown
Contributor

Thanks for picking this up, and for the clean split - the credit line and the compare link make it easy to see what is yours.

While #34 is in the queue I re-ran your branch on a fresh tree, and it holds on both halves:

  • both patches apply on the pinned upstream commit, and the two manifests match that tree exactly: French 454 and Spanish 449 file hashes, none absent, none different (region_map_entries.h needs make generated first, in both);
  • tools/localize_french.py and tools/localize_spanish.py both run to the end on a clean BPEF and BPES ROM, so the edits and the ROM ranges validate;
  • against French: play from your own Pokémon Émeraude (France) ROM #34, every Spanish file reads the same ROM bytes as before, and the French side only gains reads: nothing existing was dropped or narrowed;
  • 52 builder tests pass, and the publication audit stays clean with the ROM-byte scan.

Good to see a French build has been on real hardware, too - that was the one gap our PR left open.

@ZallaxDev ZallaxDev left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks both (@Sneazynek, @andyst-dev): the French work looks solid, and it's legally clean (offsets and symbols only, the same model as Spanish). Before merging:

  1. Please retarget the PR to dev (we never merge into main outside releases) and rebase onto the current origin/dev. Note that dev has just received #49, which adds four ENHANCEMENTS rows in 3ds_extras.c (they'll need CTR_TEXT) and touches spanish.json.gz.
  2. origin/dev rebased several pinned files in spanish.json.gz. Please rebase both spanish.json.gz and french.json.gz on the merged tree (source spans only; ROM offsets must stay identical) and confirm that localize_spanish.py/localize_french.py pass on BPES/BPEF. Right now french.json.gz pins hashes that dev no longer has.
  3. Patch 0041 collides with #30 (0041-physical-special-split). The French series can keep 0041–0045 if it lands first; just make sure the numbers are still free at rebase time. Please give 0044/0045 the standard header (Pokémon Emerald 3Ds Dual Screen changes to pret/pokeemerald 76463da…: + Applies after …).
  4. CtrLocale_Glyph: please add í/ó/ú/Í/Ó/Ú/¡/¿, and note in the PR that &/,/% now render in English too (e.g. "TMS & HMS").
  5. Please attach bottom-screen screenshots in French of OPTIONS/ENHANCEMENTS/CHEATS and of the summary/moves panels, so we can check the longer labels fit.
  6. Keep the CHANGELOG entry under "Unreleased" after the rebase.

andyst-dev and others added 5 commits October 11, 2026 00:09
Adds the French localization next to the Spanish one: the manifest of source
positions, ROM offsets, symbol names and addresses (tools/locales/french.json.gz
and french-symbols.s.gz), tools/localize_french.py, the BPEF profile in the
builder and the web manifest, the language patches 0041-0043, docs/FRENCH.md,
and the release plumbing (payload/fr, Emerald3DS-fr.3dsx).

The Pokédex metric branch is shared with the Spanish build, so patch 0035 and
the recorded src/pokedex.c hash of both manifests change; no other Spanish data
does. build_release.py now takes the reference symbol file's language from the
variant it is building (the name was hardcoded to Spanish), so the French
variant carries its own; the Spanish build reads the same file as before.
Rebase locale source spans onto the merged dev tree without changing any ROM read. Translate the four enhancements from ZallaxDev#49, complete Spanish glyph support, standardize the French patch headers and keep the French changelog under Unreleased.

Document pending console photos and the fixed SD save paths. No hardware testing is claimed; BPES staging remains untested because no Spanish ROM is available.
Account for the caught-mon Pokedex fix merged from ZallaxDev#50 while preserving every French and Spanish ROM read. Keep the French patch numbers at 0041-0043, 0045 and 0047, leaving 0044 to dev and 0046 to pending ZallaxDev#30.
@andyst-dev

andyst-dev commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

All six points are addressed on this branch.

  1. Rebase. The PR was retargeted and rebased onto current dev. The number check differs from what was assumed: PR ENHANCEMENTS: the physical/special split, with category icons #30's patch is 0046-physical-special-split.patch, so 0041-0045 were free. The real collision was 0044-french-native-row-dimensions.patch against PR The Pokédex page after a catch shows its whole description (#29) #50's 0044-caught-mon-dex-page.patch; ours is now 0047.

  2. Manifests. Both french.json.gz and spanish.json.gz were rebased onto the merged tree. Only the source spans and sha256 change; ROM offsets and sizes stay identical (verified file by file: 454/454 French and 449/449 Spanish entries carry the same (offset, size) pairs). localize_french.py on BPEF and localize_spanish.py on BPES both exit 0.

  3. Headers. 0044/0045 now carry the standard two-line header from 0041-0043, and 0044 is renamed 0047.

  4. Glyphs. CtrLocale_Glyph now maps í/ó/ú/Í/Ó/Ú/¡/¿. As requested: &, , and % now render in English too, for instance "TMS & HMS".

  5. Options. The four ENHANCEMENTS rows dev gained with ENHANCEMENTS: IVs/EVs, Repel prompt, infinite TMs, run indoors; Fly and Flash from the Bag #49 are wrapped and translated: IVS AND EVS -> IV ET EV, REPEL PROMPT -> ALERTE REPOUSSE, INFINITE TMS -> CT INFINIES, RUN INDOORS -> COURIR DEDANS.

  6. CHANGELOG. The entry stays under "Unreleased".

The branch carrying all of the above is french-dev-final on andyst-dev, rebased onto 87bfeaf3. One caveat worth stating plainly: that branch is a REBASE of this one, not an increment on top of it, so it cannot be merged into feature/french-ui-followup - GitHub reports the comparison as conflicting, and that is expected. Adopting it means replacing that branch's content (a reset to french-dev-final and a force-push, or cherry-picking its four commits). I opened it as a PR against feature/french-ui-followup to keep the diff and the discussion in one place; close it if you would rather take the rebase another way.

Screenshots: French bottom-screen shots of OPTIONS/ENHANCEMENTS/CHEATS and of the summary/moves panels are coming in a follow-up comment.

@andyst-dev

Copy link
Copy Markdown
Contributor

French bottom-screen captures, taken from a build of the rebased branch (dev + #49 + this series). Only the lower screen in each shot, so the longer labels can be judged without the rest of the emulator window around them.

  1. OPTIONS
1-reglages 2. ENHANCEMENTS - the four rows #49 added are the top two left and the top two right: IV ET EV, ALERTE REPOUSSE, CT INFINIES, COURIR DEDANS 2-ameliorations 3. CHEATS, first page 3-astuces-1 4. CHEATS, second page 4-astuces-2 5. The bag pocket reading "CT & CS" - the & case 5-sac-ct-cs 6. Summary, info page (this and the next one are the native screens patches 0044/0047 touch, which is where a label that is too long would show) 6-resume-infos 7. Summary, moves page 7-resume-capacites

Nothing overlaps or is cut off in any of them.

ZallaxDev added a commit that referenced this pull request Oct 12, 2026
- PHYS/SPEC SPLIT gets its French label (PHYS./SPÉC.) through CTR_TEXT, and
  the summary's Category row reads CATÉG. in the French build, shortened like
  the Spanish CATEG. (0046 patch updated to match).
- french.json.gz and spanish.json.gz rebased from #43's tree onto dev
  (battle_interface.c, pokemon_summary_screen.c): source positions only, ROM
  offsets unchanged. localize_french.py passes on BPEF, localize_spanish.py
  on BPES.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ZallaxDev
ZallaxDev merged commit 15e6345 into ZallaxDev:dev Oct 12, 2026
@ZallaxDev

Copy link
Copy Markdown
Owner

Merged into dev, thank you @Sneazynek and @andyst-dev! 🎉 French joins English and Spanish.

All six review points are in. I merged this branch (feature/french-ui-followup) as it is, so the labels that ship are the ones here (RAPPEL REPOUSSE, COURSE INTÉR.), not the ones from french-dev-final.

Since #30 (the physical/special split) landed first, I added one follow-up commit on our side:

  • the new PHYS/SPEC SPLIT row in ENHANCEMENTS reads PHYS./SPÉC. through CTR_TEXT, and the summary's Category row reads CATÉG. in the French build, shortened like the Spanish CATEG.;
  • french.json.gz and spanish.json.gz are rebased onto the merged tree (battle_interface.c and pokemon_summary_screen.c). Only the source positions changed; every pinned hash matches the tree (454/454 and 449/449).

Checked on our side: localize_french.py on a clean BPEF and localize_spanish.py on BPES both complete, the 52 builder tests pass, the English build links, and the strict publication audit with the ROM scan is clean. It'll be tested on hardware before the next release.

Thanks for the careful credit trail, the glyph and font tests, and the screenshots. andyst-dev, your #34 work arrives through this merge.

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