mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user