aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorMisha M.-Kupriyanov <kupriyanov@strato.de>2024-03-15 10:40:54 +0100
committerMikhailo Matiyenko-Kupriyanov <145785698+printminion-co@users.noreply.github.com>2024-07-01 09:34:11 +0200
commitaceb4d776c48dbe46cf066c4688a190b153ed046 (patch)
tree94d0cd9dbb23bd42bba4b9de3022933a301e74c1 /config
parentd5b7525e1fd2aa03f403a43a6b5b80b9e44e01da (diff)
downloadnextcloud-server-aceb4d776c48dbe46cf066c4688a190b153ed046.tar.gz
nextcloud-server-aceb4d776c48dbe46cf066c4688a190b153ed046.zip
feat: reduce available languages per config value "reduce_to_languages"
Example: restrict to en, de, es, fr, it' languages ./occ config:system:set reduce_to_languages 0 --value en ./occ config:system:set reduce_to_languages 1 --value de ./occ config:system:set reduce_to_languages 2 --value es ./occ config:system:set reduce_to_languages 3 --value fr ./occ config:system:set reduce_to_languages 4 --value it Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
Diffstat (limited to 'config')
-rw-r--r--config/config.sample.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/config/config.sample.php b/config/config.sample.php
index 288ea7e4a9b..77fd2490a14 100644
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -5,7 +5,7 @@
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-only
*/
-
+
/**
* This configuration file is only provided to document the different
* configuration options and their usage.
@@ -229,6 +229,15 @@ $CONFIG = [
'default_locale' => 'en_US',
/**
+ * With this setting is possible to reduce the languages available in the
+ * language chooser. The languages have to be set as array values using ISO_639-1
+ * language codes such as ``en`` for English, ``de`` for German etc.
+ *
+ * For example: Set to ['de', 'fr'] to only allow German and French languages.
+ */
+'reduce_to_languages' => [],
+
+/**
* This sets the default region for phone numbers on your Nextcloud server,
* using ISO 3166-1 country codes such as ``DE`` for Germany, ``FR`` for France, …
* It is required to allow inserting phone numbers in the user profiles starting