Skip to content

Conversation

@waldyrious
Copy link
Collaborator

@waldyrious waldyrious commented Dec 8, 2025

Since Brazilian Portuguese is the globally dominant variety of Portuguese (in terms of number of speakers and cultural influence) similar to how American English is for English, it is common for people to use a pt-pt language code to specifically refer to European Portuguese.

This commit therefore adds an alias pt-pt -> pt, similar to the existing en-gb -> en alias for English (United Kingdom). (correction: I misread the language/en.svg -> gb.svg link. An en-gb -> en alias does not actually exist at this point.)

Despite the apparent redundancy, the pt-pt code is actually used in practice, and indeed has an IETF language tag (pt-PT) and POSIX locale (pt_PT).

Since Brazilian Portuguese is the globally dominant variety of Portuguese
(in terms of number of speakers and cultural influence)
similar to how American English is for English,
it is common for people to use a `pt-pt` language code
to specifically refer to European Portuguese.

This commit therefore adds an alias `pt-pt` -> `pt`,
similar to the existing `en-gb` -> `en` alias for English (United Kingdom).
Despite the apparent redundancy, the `pt-pt` code is actually used in practice,
and indeed has an IETF language tag (`pt-PT`) and POSIX locale (`pt_PT`).
@HatScripts
Copy link
Owner

Good to know! As always, thanks for the contribution.

@HatScripts HatScripts merged commit 6cde813 into gh-pages Dec 8, 2025
@waldyrious
Copy link
Collaborator Author

waldyrious commented Dec 8, 2025

This symlink may be useful in the future, in case a flag for the Portuguese language (encompassing all its varieties) becomes established and is adopted for the language/pt.svg file, in which case language/pt-pt.svg could continue to point to the flag of Portugal, and would be added to the Gallery page as "Portuguese (Portugal)".

In fact, there is already a potential candidate for a more generic flag image for Portuguese — specifically, the CPLP flag:

I'm not sure that would be broadly recognizable as "Portuguese" by most speakers, since almost everywhere the flags of Portugal or Brazil (or a mix thereof) are used in language selectors, etc; but if we did want to encourage the decoupling of language flags from the countries where they originated them, this could be an option to consider.

@waldyrious waldyrious mentioned this pull request Dec 8, 2025
@waldyrious waldyrious deleted the pt-pt branch January 5, 2026 23:25
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.

3 participants