Skip to content

Shared link user interface language forced by default_language #970

@kohtala

Description

@kohtala

Steps to reproduce

  1. Configure config/config.php default_language to a language.
  2. Configure your browser languages (Firefox 48 Option / Content / Languages) so it sends Accept-Language header with a languages different from default_language.
  3. Share a link.
  4. Open the link with your browser.

Expected behaviour

The shared link opens with the language the browser sends.

Actual behaviour

The shared link opens in default_language.

config/config.sample.php default_language documents that "It overrides automatic language detection on public pages like login or shared items." So it works as documented. However it is not what I expected.

I had set (before reading the documentation) that default_language would be used if the HTTP client did not specify a language. This can happen for example if Firefox has no languages configured.

We have non-English locale fi, and share links with other non-English locales. Our biggest user space is in our locale, so having a default language in absense of Accept-Language in our locale instead of English makes sense. However if a link is shared with a user in other non-English locale, a default_language of fi gives the link recipient user interface in Finnish and he does not understand it. There is no means for him to change the language, as he has no account and no user preferences to change. He might be sending Accept-Language for user interface in familiar language, but it is ignored.

Server configuration

Nextcloud version: Nextcloud 9.0.53 (stable)

Updated from an older Nextcloud/ownCloud or fresh install: fresh

Where did you install Nextcloud from: nextcloud.com .tar.bz2

Signing status:
No errors have been found.

Metadata

Metadata

Assignees

Labels

bugpapercutAnnoying recurring UX issue with possibly simple fix.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions