Skip to content

Commit 1be5dce

Browse files
tcitworldBackportbot
authored andcommitted
Add documentation for the locale setting
See nextcloud/server#5623
1 parent 8202d87 commit 1be5dce

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

admin_manual/configuration_server/language_configuration.rst

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,34 @@ this value can be set to ``true`` instead of a language code.
3636
.. note:: Please check `Transifex language codes
3737
<https://www.transifex.com/explore/languages/>`_ for the list of valid language
3838
codes.
39+
40+
Default locale
41+
--------------
42+
The locale is used to define how dates and other formats are displayed. Nextcloud
43+
should automatically pick an appropriated locale based on your current language.
44+
Users can modify their locale inside their settings panel.
45+
If that does not work properly or if you want to make sure that Nextcloud always
46+
starts with a given locale, you can set a **default_locale** parameter in the
47+
:file:`config/config.php`.
48+
49+
.. note:: The default_locale paramenter is only used when the user hasn't configured
50+
own locale preferences.
51+
52+
::
53+
54+
"default_locale" => "en_US",
55+
56+
Force locale
57+
--------------
58+
59+
If you want to force a specific locale, users will no longer be able to change
60+
their locale in the personal settings. You can set a **force_locale** parameter
61+
in the :file:`config/config.php`.
62+
63+
'::
64+
65+
"force_locale" => "en_US",
66+
67+
.. note:: Please check `Transifex language codes
68+
<https://www.transifex.com/explore/languages/>`_ for the list of valid locale
69+
codes (aside the language, between parentheses).

0 commit comments

Comments
 (0)