Confusion between br (breton) and pt_BR
tornoz opened this issue · comments
Code has a hack to make an equivalent between .br and pt_BR language.
Line 391 in 75f0ee8
TLD names use ISO 3166-1 alpha-2 country codes while language code use ISO 639-1.
They are not the same norm and should not be used together. This can creates mistakes, one of them is breton language (br) being detected as the language spoken in Brasil.
Due to this, the website asks users with breton in their Accept-Language header to translate the website in brasilian portuguese, when it should not, and should show the message for the language that is next in line in the header (usually 'fr')