Skip to content

Add European Portuguese (pt-PT) as the 29th translation locale - #657

Merged
bconsolvo merged 1 commit into
amd:mainfrom
bconsolvo:add-pt-pt-translations
Jul 30, 2026
Merged

Add European Portuguese (pt-PT) as the 29th translation locale#657
bconsolvo merged 1 commit into
amd:mainfrom
bconsolvo:add-pt-pt-translations

Conversation

@bconsolvo

Copy link
Copy Markdown
Collaborator

Summary

Adds European Portuguese (pt-PT) as the 29th locale, completing the customer's 29-language request. The customer's "Portuguese (PT)" is European Portuguese (Portugal), which is a distinct variant from the Brazilian Portuguese (pt-BR) already shipped, so pt-PT is added alongside pt-BR (29 locales total).

What's included

  • pt-PT locale wiring: added to LOCALE_NAMES in translate_playbook.py and to DEFAULT_LOCALES (plus the manual-dispatch default) in translate-playbooks.yml.
  • disclaimers.json: European Portuguese machine-translation disclaimer added (29 locales).
  • auto-translations/pt-PT/: full translation of all playbooks + shared dependencies (78 files), each with the machine-translation > [!WARNING] disclaimer at the top. Matches pt-BR file-for-file (78 each).
  • Robustness: call_model now also retries ConnectionError (reset/aborted/refused) — an unretried connection reset had crashed a run mid-pass.
  • Docs: auto-translations/README.md now marks the dedicated self-hosted translation runner and the LLM_* repository secrets as Implemented (they are now live), with present-tense wording.

Notes

  • English playbooks/ is unchanged.
  • Verified: 29 locales, pt-PT = 78 files, 0 missing, 0 orphans, disclaimer present.
  • Website language-selector changes remain out of scope (web team).

Completes the customer's 29-language request. The customer's "Portuguese (PT)" is
European Portuguese (Portugal), which is distinct from the Brazilian Portuguese
(pt-BR) already shipped, so pt-PT is added alongside pt-BR (29 locales total).

- LOCALE_NAMES + the workflow DEFAULT_LOCALES / dispatch default now include pt-PT.
- disclaimers.json: European Portuguese machine-translation disclaimer added.
- auto-translations/pt-PT/: full translation of all playbooks + shared
  dependencies (78 files), each with the machine-translation disclaimer.
- call_model now also retries ConnectionError (reset/aborted/refused); an
  unretried connection reset had crashed a translation run mid-pass.
- README: mark the dedicated self-hosted 'translation' runner and the LLM_*
  repository secrets as Implemented (now live), present-tense wording.

English playbooks/ are unchanged.
@bconsolvo
bconsolvo requested a review from danielholanda as a code owner July 29, 2026 02:16
@bconsolvo
bconsolvo merged commit 2c91fd9 into amd:main Jul 30, 2026
6 checks passed
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