Repository navigation
Add European Portuguese (pt-PT) language - #802
Merged
Merged
Conversation
Adds Português (Portugal) as a UI language: the four catalogs under
locales/pt-PT, translated with Portugal's spelling and vocabulary (ecrã,
ficheiro, utilizador, reprodução), wired into the catalog compiler, the
Preference/Language enums, the saved-preference slot and the Language page.
The language list shows Português, like Español, since Brazilian
Portuguese is not offered beside it.
A television set to pt, pt-PT or another non-Brazilian Portuguese region
resolves to it; pt-BR keeps the English fallback rather than reading
Portugal's Portuguese as its own. Plurals follow pt-PT's CLDR rules, so
zero takes the plural form ("0 episódios"), unlike Brazilian Portuguese.
Every per-language text-fit and formatting test now covers pt-PT; strings
that overflowed their slots on the TV's glyph widths are reworded shorter
with their meaning kept. The translation guide names the new catalog.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: Tiago Pereira <[email protected]>
Collaborator
|
Thanks for the translation! Since you opened this, |
Adds locales/pt (the contributor's pt-PT catalogs, reconciled with the current English source: English-only diagnostics keys dropped, the HDR overlay brightness strings added) and one registry row. A new optional registry field, excluded_regions, keeps pt-BR on the English fallback; the build validates it and the generated matcher honors it. Plural rules now come from the language's regional locale so pt-PT counts 0 as plural. Lands plxnative#802 by @tiper. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-authored-by: Tiago Pereira <[email protected]>
main gained a data-driven language registry (plxnative#801) and English-only technical strings (plxnative#806), so the language needs no Rust wiring now: the catalogs move to locales/pt/ with one locales/languages.json row (region pt-PT, excluded_regions ["BR"] so pt-BR keeps the English fallback), and the hand-wired Rust changes from this branch are superseded by main's. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Author
😅 Apologies, unsure why it got ticket in the first place. |
… Boost/Normalize reasons) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Adds Português (Portugal) as a language, alongside English, Spanish, French, Belarusian and Italian.
What changes
The translation was drafted with Claude (Anthropic's AI assistant) and reviewed by me, a native European Portuguese speaker