Repository navigation
Conversation
andyst-dev
force-pushed
the
fix/fr-it-startup-localization-v2
branch
from
October 30, 2026 10:26
d442c91 to
b243125
Compare
andyst-dev
force-pushed
the
fix/fr-it-startup-localization-v2
branch
from
October 31, 2026 06:18
b243125 to
b111266
Compare
The data pack errors and the START prompt were the only English strings left on the way in, so a French or Italian install read them in English. A new helper, CTR_TEXT_FR_IT_PT_DE(english, french, italian, portuguese, german), fills the seven-language CTR_TEXT slots for the five details and the five titles that were still passing their English text in the French and Italian slots; the START hint goes through CTR_TEXT itself. English, Spanish, Portuguese, German and Japanese output does not move. builder/tests/test_startup_locale.py compiles the real 3ds_data.c per language with -Wall -Wextra -Werror against synthetic packs, and compares the five untouched languages byte for byte with their output captured before the change. The FS service surface (FSUSER_OpenFileDirectly, FSFILE_Read, FSFILE_Close) is stubbed over real files, since the port now opens the pack through it rather than stdio.
andyst-dev
force-pushed
the
fix/fr-it-startup-localization-v2
branch
from
November 12, 2026 06:59
b111266 to
22f9917
Compare
Owner
|
Merged, thanks a lot @andyst-dev! The French/Italian startup texts and the locale harness are excellent work. The red host-tests/build-3ds jobs came from the old base ( |
ZallaxDev
added a commit
that referenced
this pull request
Nov 21, 2026
- public_sync: an integration commit is held when each file has what it adds; changelog credits beside the pull requests' own entries - Changelog: public pull requests #190 #209 #262-#300, by their authors - public_sync: dev takes integration's ported pull requests as their own commits; a conflict or unported pull requests are problems, not a line - Public export: the benchmark, profiling and macOS builder test tools (#293, #295, #300) - Public export: upstream.lock's Python 3.15.2 and Pillow 13.0.0 (#288, #289) - Harden Emerald 3DS runtime and builder workflows (#300) - Replace deprecated Pillow pixel reads in voxel tools (#294) - Add opt-in macOS standalone builder support (#295) - Locales: move the Japanese span in main_menu.c past the main menu card (#298) - Fly map: choose the destination with the +Control Pad (#267) - Bottom screen: a tap on the map that slides a little still goes on with a message (#281) - Summary: give the trainer memo room for a third line (#269) - Summary: show Pokémon status icons (#270) - Main menu: the saved game's trainer card on the top screen (#284) - Restore Japanese naming marks and full touchscreen rows (#275) - Speed up voxel generation to shorten development builds (#293) - Release: ship bottom/menu_top.bin with the engine files (#280) - Bag: planting a berry opens it in the bottom screen's window (#283) - Frontier Pass map: the picture half as big again, filling its plate (#282) - CI: support Ubuntu 26.04 with non-PIE sanitizer fixtures (#290) - Startup: the data pack errors and the START hint in French and Italian (#209) - Installation: step-by-step builder for Linux and macOS (#190) - Bottom screen: reuse unchanged wild-list snapshots (#273) - Upgrade release builds to Pillow 13.0.0 (#289) - Naming screen: a tab turns straight to its page (#287) - ci: upgrade GitHub Actions to latest tested releases (#292) - Generate map event IDs for standalone voxel host tests (#277) - Tests: update the voxel draft chunk fixture (#262) - Harden native string formatting and numeric input parsing (#279) - Build releases with Python 3.15.2 (#288) - Visible wild: roll the IVs right after the personality (PID/IV legality) (#266) - CI: use the release toolchain for 3DS builds (#286) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Problem
The port's own messages follow the game's language:
CTR_TEXTpicks one of seven texts at compile time fromGAME_LANGUAGE. The ten startup errors in3ds_data.cwere never filled in for French and Italian, so a French or Italian build that cannot open its data pack explains the failure in English, andCtrPlatform_ShowDataErrorprinted a plain EnglishPress START to exit.Change
3ds_data.ccarry French and Italian texts: pack not found, not a pack, ABI/schema mismatch (with the ABI values), pack from another ROM, damaged pack, damaged index, unreadable pack and no embedded data.CTR_TEXT_FR_IT_PT_DEhelper, which is the existingCTR_TEXT_PT_DEwidened with French and Italian; the titles and the two other details use the full seven-argumentCTR_TEXT.CTR_TEXTtoo.ASCII only, like the German startup texts already in the file: this screen is printed with
printf, the console font has no accents there, so the texts saye'/integrita'andcontrolethe way German saysbeschaedigt. The tool name staysbuilder, as in the Portuguese and German texts. The ROM guidance lines (BPEF,BPEI) were already per-language and are untouched.Testing
New
builder/tests/test_startup_locale.py: it compiles the real3ds_data.cfor each language (-std=c99 -Wall -Wextra -Werror) with only the SDK and platform edges stubbed, builds synthetic packs for twelve startup faults, runsCtrData_Initin a fresh process per case and reads the error getters. The pack is opened through the FS service, so the harness givesFSUSER_OpenFileDirectly,FSFILE_ReadandFSFILE_Closereal files behind them (the process runs with the SD root as its cwd); the code under test keeps its FS path, no stdio shortcut is added for the test.3ds_platform.cand compiled per language.builder/tests/test_german_manifest.pynow covers the new helper as well, so the German texts keep being checked for empty strings and for characters the touch-screen font cannot draw.Full suite:
python -m unittest discover -s builder/testsgives 269 tests, OK (2 skipped).tools/release_audit.py --repo . --strictis clean.Limitations
No 3DSX build in this environment (no devkitPro/libctru), so
3ds_platform.cis only compiled through its START printf expression in the test; the rest of that file is unchanged. Not tried on hardware: the strings are the ones a broken pack shows, which needs a deliberately wrong pack on the SD card.Rebase
Rebased onto
integrationat1f6ccba(sync of 2026-11-12). Two things came out of it: the base now opens the pack throughFSUSER_OpenFileDirectlyinstead of stdio, which the harness follows (the stub described under Testing), and the Japanese-manifest failure that made the old base red inaudit-and-pythonis fixed there, so that job runs on a green base.CI
audit-and-pythonis green on this head:release_audit.py --strictclean, and the 269 builder tests pass,test_startup_locale.pyincluded.The other two jobs are red on the base branch itself, with the same errors and not one line more.
integrationat1f6ccba(run 43137932400) fails:host-tests, in the day/night compositor fixture:CTR_DAYNIGHT_MOON_RGBandCTR_DAYNIGHT_MOON_AMOUNTundeclared, plus a missingsuninitializer inCtrDayNightLight.build-3ds, after the 3DSX is built, while linkingbuild/voxel_world_hash_test.exe:undefined reference to 'VoxelRelief_FaceTile'and'VoxelMesh_BeltFill'.On this head,
3ds_data.cand3ds_platform.ccompile underarm-none-eabi-gcc -Wall -Wextra -Werrorand3dsxtoolproducesemerald3ds.3dsx; the same two jobs then stop at the same two places.