Skip to content

i18n: bring Triton errors into the shared catalogue - #144

Merged
Zaneham merged 2 commits into
masterfrom
feat/i18n-triton
Jul 28, 2026
Merged

i18n: bring Triton errors into the shared catalogue#144
Zaneham merged 2 commits into
masterfrom
feat/i18n-triton

Conversation

@Zaneham

@Zaneham Zaneham commented Jul 27, 2026

Copy link
Copy Markdown
Owner

Triton had its own error path with codes that collided with the C frontend (50/51/52/70/71/80/81/102/103 all meant two different things). Renumbered all 29 Triton codes into a dedicated E112-E140 block, registered the 14 fixed- message lexer/parser ones (E112-E125) in bc_dflt + en.txt, and routed tn_err/ p_err through bc_efmt so they translate and render clang-style like the rest. sema/lower build messages at runtime, so those are renumbered (collisions gone) but still English until a placeholder pass. Maori left for a fluent translator; falls back to English somewhat gracefully.

Zaneham added 2 commits July 27, 2026 14:25
Triton had its own error path with codes that collided with the C frontend
(50/51/52/70/71/80/81/102/103 all meant two different things). Renumbered all
29 Triton codes into a dedicated E112-E140 block, registered the 14 fixed-
message lexer/parser ones (E112-E125) in bc_dflt + en.txt, and routed tn_err/
p_err through bc_efmt so they translate and render clang-style like the rest.
sema/lower build messages at runtime, so those are renumbered (collisions gone)
but still English until a placeholder pass. Maori left for a fluent translator;
falls back to English gracefully.
@Zaneham
Zaneham merged commit b9f625b into master Jul 28, 2026
8 checks passed
@Zaneham Zaneham added the Triton Triton frontend (Python subset, tl.* intrinsics) label Jul 28, 2026
@Zaneham
Zaneham deleted the feat/i18n-triton branch July 28, 2026 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Triton Triton frontend (Python subset, tl.* intrinsics)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant