Skip to content

Refresh localized C/C++ diagnostic messages - #14889

Open
Sean McManus (sean-mcmanus) wants to merge 5 commits into
mainfrom
seanmcm/devbox7-wsl/agent31/localization-refresh
Open

Sean McManus (sean-mcmanus) wants to merge 5 commits into
mainfrom
seanmcm/devbox7-wsl/agent31/localization-refresh

Conversation

@sean-mcmanus

@sean-mcmanus Sean McManus (sean-mcmanus) commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Refresh localized C/C++ diagnostic messages and correct translations that obscure their meaning or alter technical syntax.

This PR was investigated and created by GitHub Copilot (in VS Code). Any message starting with ✨Copilot was sent by Copilot.

Additional corrections

Because the refresh touches all 13 locale files, this PR also fixes translations that were already incorrect on main, and one regression in the refreshed text.

Pre-existing placeholder errors

Each of these localized messages now has the same placeholders as its English message. The invalid forms could cause errors when the diagnostic is displayed.

Locale Diagnostic Change
Czech Ambiguous ? operation (conversion between the second and third operand types) %t1se → %t1 se
Brazilian Portuguese %n is not a member of %t %to é um membro de %n → %n não é membro de %t, which also restores the negation
Japanese, Italian IFC partition file position (overflow and misalignment messages) %sq2 → %sq, because the message has one string argument
Czech %n1 is not used in declaring the parameter types of %n2 %n1se → %n1 se
Polish Constructing an element from one IFC partition using an index into another second %sq → %sq2
Turkish Return type not identical to or covariant with that of the overridden virtual function %no2 → %no, because the message has one symbol

Pre-existing wording improvements

Two translations on lines already changed above were reworded for clarity (new, not yet reviewed):

  • Czech: třetí typ operandu → typ třetího operandu ("type of the third operand") in the ambiguous ? operation message.
  • Italian: the misalignment message now says that the requested position, not the partition, is misaligned (; la posizione non è allineata agli elementi di quella partizione).

Regression in the refreshed text

For the diagnostic "overload resolution for an address-of-overload-set call may not select implicit-object member %nd", the refreshed Japanese, Simplified Chinese and Traditional Chinese text said the member "might not" be selected. The English message prohibits selecting it, so the previous wording is restored.

Notes

The update preserves previously reviewed corrections and retains diagnostic placeholders and code literals across the affected translations.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.

@sean-mcmanus
Sean McManus (sean-mcmanus) marked this pull request as ready for review December 1, 2026 18:14
@sean-mcmanus
Sean McManus (sean-mcmanus) requested a review from a team as a code owner December 1, 2026 18:14
The imported translations of the address-of-overload-set diagnostic said
the implicit-object member might not be selected. The English message
prohibits selecting it, so keep the previously reviewed wording, which
also preserves %nd.
Make four localized diagnostics use the same placeholders as their
English messages. The invalid options and the missing string argument
can abort analysis or crash when the diagnostic is displayed.

- cs: separate "se" from %t1
- pt-br: restore the negation and the %n and %t placeholders
- ja, it: use %sq, since the message supplies one string
Make three more localized diagnostics use the same placeholders as their
English messages. These were already incorrect before the refresh.

- cs: separate "se" from %n1
- pl: use %sq2 for the second string
- tr: use %no, since the message has one symbol
Reword translations in lines this PR already changes:

- cs: say "type of the third operand" instead of "third type of the
  operand"
- it: make clear that the requested position, not the partition, is
  misaligned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Pull Request

Development

Successfully merging this pull request may close these issues.

3 participants