You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// specific case for pt_BR, let's say it's "br" to make things simpler
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')
The text was updated successfully, but these errors were encountered:
Code has a hack to make an equivalent between .br and pt_BR language.
piwigodotorg/main.inc.php
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')
The text was updated successfully, but these errors were encountered: