"Definir localidade a partir do parâmetro" e problema de localização de conteúdo

We’ve been rather happy with the content localisation, but found an issue regarding
Set locale from param setting.

It should allow setting an anonymous user’s locale via the ‘tl’ URL param, e.g. ?tl=es. Currently if we put e.g. ?tl=fi to forum URL, it correctly shows the UI and forum headers in Finnish for anonymous user. Yet if I click any thread open, it shows them incorrectly according browser’s Accept language header (English in this case).

If I understood correctly, priority should be ?lang= in the URL, then the locale cookie, then Accept-Language? Still at least in our case it seems that using ?tl only changes UI language but not shown translations.

As for the context what we’re trying to achieve:

  • Guide users to Swedish forum version (tl=sv) from our .se site, and to Finnish version (tl=fi) from our .fi site and so on.
  • For anonymous users browsing globally, it would be nice to have the browser locale header setting as default if we or user haven’t pre-selected the language.

Any thoughts?

1 curtida

Hmmmm I see.

I think that is also the ideal experience I would expect. For some reason, I had expected my original implementation to follow that.

I’ve added a recording here for others to understand the issue and will be working on it. Will also move this over to Bug since it’s not intended behaviour :slight_smile:

Recording

1 curtida