Skip to content

Translate font and render target error messages - #3324

Merged
FrayxRulez merged 1 commit into
developfrom
translate-font-errors
Aug 10, 2026
Merged

Translate font and render target error messages#3324
FrayxRulez merged 1 commit into
developfrom
translate-font-errors

Conversation

@FrayxRulez

Copy link
Copy Markdown
Collaborator

ExceptionSerializer.TranslateText normalises localized OS error messages to English
so that one underlying failure forms one crash group. Two DirectWrite font errors were
missing from the table entirely, and the render target message only covered a few
locales — so the same failure is currently reported as a separate group per language,
which both hides its true size and buries the smaller locales far down the list.

What was missing

A font file could not be opened because the file, directory, network location, drive, or other storage location does not exist or is unavailable. — not in the table at all.
Reported separately in de, es, fr, it, pt, ru, tr and zh-Hans.

A font file exists but could not be opened due to access denied, sharing violation, or similar error. — not in the table at all. Reported separately in fr and ru.

The resource was realized on the wrong render target. — already present with it, de
and tr; es, fr and ru were reaching the dashboard untranslated.

Notes

Each string was taken verbatim from a reported message rather than translated by hand,
and checked back against the source so the case labels match byte for byte — the French
and Russian ones use a typographic apostrophe () while the Italian one uses a straight
', so they are easy to get subtly wrong. The two English strings the new cases return
are likewise the exact messages already reported by English-locale clients, so the
existing groups absorb the translated ones instead of a new group appearing alongside.

Only messages actually observed in crash reports are included; other locales will
surface over time and can be added the same way.

This changes reporting only — no behaviour change in the app.

Verification

Not built or run — a UWP/.NET Native build is not available in the environment this was
prepared in. The edited file was checked with Roslyn (CSharpSyntaxTree.ParseText) and
parses with no syntax errors; that confirms syntax only, not type checking. The file's
UTF-8 BOM is preserved and the diff is purely additive.

🤖 Generated with Claude Code

DirectWrite's two font-file errors were missing from TranslateText entirely, so
every locale reported them as its own crash group. The render target message was
already translated, but only for a few locales.

Adds the localized variants observed in crash reports:

- font file not found: de, es, fr, it, pt, ru, tr, zh-Hans
- font file access denied: fr, ru
- wrong render target: es, fr, ru

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@FrayxRulez
FrayxRulez merged commit f254228 into develop Aug 10, 2026
1 check passed
@FrayxRulez
FrayxRulez deleted the translate-font-errors branch August 10, 2026 12:41
FrayxRulez added a commit that referenced this pull request Aug 10, 2026
DirectWrite's two font-file errors were missing from TranslateText entirely, so
every locale reported them as its own crash group. The render target message was
already translated, but only for a few locales.

Adds the localized variants observed in crash reports:

- font file not found: de, es, fr, it, pt, ru, tr, zh-Hans
- font file access denied: fr, ru
- wrong render target: es, fr, ru

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.

1 participant