Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable15] Add documentation for the locale setting #1062

Merged
merged 2 commits into from
Dec 20, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions admin_manual/configuration_server/language_configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,34 @@ 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.

Default locale
--------------
The locale is used to define how dates and other formats are displayed. Nextcloud
should automatically pick an appropriated locale based on your current language.
Users can modify their locale inside their settings panel.
If that does not work properly or if you want to make sure that Nextcloud always
starts with a given locale, you can set a **default_locale** parameter in the
:file:`config/config.php`.

.. note:: The default_locale paramenter is only used when the user hasn't configured
own locale preferences.

::

"default_locale" => "en_US",

Force locale
--------------

If you want to force a specific locale, users will no longer be able to change
their locale in the personal settings. You can set a **force_locale** parameter
in the :file:`config/config.php`.

::

"force_locale" => "en_US",

.. note:: Please check `the list of MomentJS supported locales
<https://github.com/moment/moment/tree/2.18.1/locale>`_ for the list of valid
locales.