owncloud / docs-server

ownCloud Server Documentation
https://doc.owncloud.com
GNU Affero General Public License v3.0
12 stars 28 forks source link

Language Configuration - Automatic language detection #1300

Open thiagomdiniz opened 3 weeks ago

thiagomdiniz commented 3 weeks ago

WHAT Needs to be Documented?

When installed with Docker, the configuration of the OwnCloud default_language parameter needs to be done through the OWNCLOUD_DEFAULT_LANGUAGE environment variable. The configuration of the default_language parameter directly in the config.php file is not respected.

Also, the behavior regarding automatic language detection of the user's browser is confusing when using OwnCloud in Docker, as it is understood that if you do not apply any language settings, automatic detection will be the default behavior. But actually the default behavior is the English language.

Tested with versions 10.13.4 and 10.14.0.

WHERE Does This Need To Be Documented (Link)?

WHY Should This Change Be Made?

The current documentation makes us understand that the default configuration is to try to identify the user's browser language and, if it is not possible to detect it, a language can be defined to be used as default (default_language parameter).

I needed this automatic language detection feature, more specifically for public shares (drop folders), I carried out several tests without success.
I only had success when I set the value of the default_language parameter to *, false or a blank space.
In fact, as I use OwnCloud in Docker, I had to define this value in the the OWNCLOUD_DEFAULT_LANGUAGE environment variable, as initially it does not respect the configuration in the config.php file.

(Optional) What Type Of Content Change Is This?

(Optional) Which Manual Does This Relate To?

mmattel commented 2 weeks ago

@jnweiger pls check