{"action":"created","issue":{"url":"https://api.github.com/repos/nextcloud/server/issues/970","repository_url":"https://api.github.com/repos/nextcloud/server","labels_url":"https://api.github.com/repos/nextcloud/server/issues/970/labels{/name}","comments_url":"https://api.github.com/repos/nextcloud/server/issues/970/comments","events_url":"https://api.github.com/repos/nextcloud/server/issues/970/events","html_url":"https://github.com/nextcloud/server/issues/970","id":172090541,"number":970,"title":"Shared link user interface language forced by default_language","user":{"login":"kohtala","id":1055533,"avatar_url":"https://avatars.githubusercontent.com/u/1055533?v=3","gravatar_id":"","url":"https://api.github.com/users/kohtala","html_url":"https://github.com/kohtala","followers_url":"https://api.github.com/users/kohtala/followers","following_url":"https://api.github.com/users/kohtala/following{/other_user}","gists_url":"https://api.github.com/users/kohtala/gists{/gist_id}","starred_url":"https://api.github.com/users/kohtala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kohtala/subscriptions","organizations_url":"https://api.github.com/users/kohtala/orgs","repos_url":"https://api.github.com/users/kohtala/repos","events_url":"https://api.github.com/users/kohtala/events{/privacy}","received_events_url":"https://api.github.com/users/kohtala/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nextcloud/server/labels/bug","name":"bug","color":"ee0701"},{"url":"https://api.github.com/repos/nextcloud/server/labels/papercut","name":"papercut","color":"d93f0b"}],"state":"open","locked":false,"assignee":{"login":"rullzer","id":45821,"avatar_url":"https://avatars.githubusercontent.com/u/45821?v=3","gravatar_id":"","url":"https://api.github.com/users/rullzer","html_url":"https://github.com/rullzer","followers_url":"https://api.github.com/users/rullzer/followers","following_url":"https://api.github.com/users/rullzer/following{/other_user}","gists_url":"https://api.github.com/users/rullzer/gists{/gist_id}","starred_url":"https://api.github.com/users/rullzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rullzer/subscriptions","organizations_url":"https://api.github.com/users/rullzer/orgs","repos_url":"https://api.github.com/users/rullzer/repos","events_url":"https://api.github.com/users/rullzer/events{/privacy}","received_events_url":"https://api.github.com/users/rullzer/received_events","type":"User","site_admin":false},"assignees":[{"login":"rullzer","id":45821,"avatar_url":"https://avatars.githubusercontent.com/u/45821?v=3","gravatar_id":"","url":"https://api.github.com/users/rullzer","html_url":"https://github.com/rullzer","followers_url":"https://api.github.com/users/rullzer/followers","following_url":"https://api.github.com/users/rullzer/following{/other_user}","gists_url":"https://api.github.com/users/rullzer/gists{/gist_id}","starred_url":"https://api.github.com/users/rullzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rullzer/subscriptions","organizations_url":"https://api.github.com/users/rullzer/orgs","repos_url":"https://api.github.com/users/rullzer/repos","events_url":"https://api.github.com/users/rullzer/events{/privacy}","received_events_url":"https://api.github.com/users/rullzer/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-08-19T09:27:04Z","updated_at":"2016-08-30T07:53:47Z","closed_at":null,"body":"### Steps to reproduce\r\n1. Configure config/config.php default_language to a language.\r\n2. Configure your browser languages (Firefox 48 Option / Content / Languages) so it sends Accept-Language header with a languages different from default_language.\r\n3. Share a link.\r\n4. Open the link with your browser.\r\n\r\n### Expected behaviour\r\nThe shared link opens with the language the browser sends.\r\n\r\n### Actual behaviour\r\nThe shared link opens in default_language.\r\n\r\nconfig/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.\r\n\r\nI 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.\r\n\r\nWe 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.\r\n\r\n### Server configuration\r\n**Nextcloud version:** Nextcloud 9.0.53 (stable)\r\n\r\n**Updated from an older Nextcloud/ownCloud or fresh install:** fresh\r\n\r\n**Where did you install Nextcloud from:** nextcloud.com .tar.bz2\r\n\r\n**Signing status:**\r\nNo errors have been found.\r\n"},"comment":{"url":"https://api.github.com/repos/nextcloud/server/issues/comments/243361290","html_url":"https://github.com/nextcloud/server/issues/970#issuecomment-243361290","issue_url":"https://api.github.com/repos/nextcloud/server/issues/970","id":243361290,"user":{"login":"MorrisJobke","id":245432,"avatar_url":"https://avatars.githubusercontent.com/u/245432?v=3","gravatar_id":"","url":"https://api.github.com/users/MorrisJobke","html_url":"https://github.com/MorrisJobke","followers_url":"https://api.github.com/users/MorrisJobke/followers","following_url":"https://api.github.com/users/MorrisJobke/following{/other_user}","gists_url":"https://api.github.com/users/MorrisJobke/gists{/gist_id}","starred_url":"https://api.github.com/users/MorrisJobke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MorrisJobke/subscriptions","organizations_url":"https://api.github.com/users/MorrisJobke/orgs","repos_url":"https://api.github.com/users/MorrisJobke/repos","events_url":"https://api.github.com/users/MorrisJobke/events{/privacy}","received_events_url":"https://api.github.com/users/MorrisJobke/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T07:53:47Z","updated_at":"2016-08-30T07:53:47Z","body":"> After thinking some more I have to agree with you that 'by default' we want to use ACB. I'll prepare a patch.\r\n\r\nMakes sense 👍 "}}
{"actor":{"display_login":"MorrisJobke"}}