Merge pull request #514 from nextcloud/force-language

Force language
This commit is contained in:
Morris Jobke
2017-06-22 13:03:55 -05:00
committed by GitHub

View File

@@ -1,19 +1,16 @@
Language Configuration
======================
Default language
----------------
In normal cases Nextcloud will automatically detect the language of the Web-GUI.
If this does not work properly or you want to make sure that Nextcloud always
starts with a given language, you can use the **default_language** parameter.
starts with a given language, you can set a **default_language** parameter in the
:file:`config/config.php`.
Please keep in mind, that this will not effect a users language preference,
which has been configured under "personal -> language" once he has logged in.
Please check `Transifex language codes
<https://www.transifex.com/explore/languages/>`_ for the list of valid language
codes.
Parameters
----------
.. note:: The default_language paramenter is only used, when the browser does not
send any language, and the user hasn't configured own language preferences.
::
@@ -21,4 +18,24 @@ Parameters
"default_language" => "en",
This parameters can be set in the :file:`config/config.php`
Force language
--------------
If you want to force a specific language, users will no longer be able to change
their language in the personal settings. You can set a **force_language** parameter
in the :file:`config/config.php`.
::
<?php
"force_language" => "en",
If users shall be unable to change their language, but users have different languages,
this value can be set to ``true`` instead of a language code.
.. note:: Please check `Transifex language codes
<https://www.transifex.com/explore/languages/>`_ for the list of valid language
codes.