From ccf5f8b1de64fd6ca9010cb22f93f294c76592b1 Mon Sep 17 00:00:00 2001 From: Evilham Date: Fri, 31 Mar 2023 10:38:02 +0200 Subject: [PATCH] [NC] Add FORCED_LANGUAGE setting This has been requested by schools. --- dd-apps/docker/nextcloud/nc-setup.sh | 3 ++- dd-apps/docker/nextcloud/nextcloud.yml | 1 + dd.conf.sample | 5 ++++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dd-apps/docker/nextcloud/nc-setup.sh b/dd-apps/docker/nextcloud/nc-setup.sh index b7095ae..5ab35eb 100755 --- a/dd-apps/docker/nextcloud/nc-setup.sh +++ b/dd-apps/docker/nextcloud/nc-setup.sh @@ -47,7 +47,8 @@ cat > "${STATIC_CFG}" < 'ca', + 'default_language' => '${FORCED_LANGUAGE}', + 'force_language' => '${FORCED_LANGUAGE}', 'skeletondirectory' => '', 'theme' => 'dd', 'allow_local_remote_servers' => true, diff --git a/dd-apps/docker/nextcloud/nextcloud.yml b/dd-apps/docker/nextcloud/nextcloud.yml index e8d0acd..7c4e037 100644 --- a/dd-apps/docker/nextcloud/nextcloud.yml +++ b/dd-apps/docker/nextcloud/nextcloud.yml @@ -79,6 +79,7 @@ services: # Operator preferences - EXTRA_PLUGINS_ENABLE=${NEXTCLOUD_PLUGINS_ENABLE:-} - EXTRA_PLUGINS_DISABLE=${NEXTCLOUD_PLUGINS_DISABLE:-} + - FORCED_LANGUAGE=${FORCED_LANGUAGE:-ca} networks: - dd_net diff --git a/dd.conf.sample b/dd.conf.sample index 5825151..82d313b 100644 --- a/dd.conf.sample +++ b/dd.conf.sample @@ -122,7 +122,10 @@ NEXTCLOUD_POSTGRES_PASSWORD=N3xtcl0ud ### These should be available from https://apps.nextcloud.com/ ### Example: NEXTCLOUD_PLUGINS_ENABLE=cospend,cookbook #NEXTCLOUD_PLUGINS_ENABLE= -#NEXTCLOUD_PLUGINS_DISABLE +#NEXTCLOUD_PLUGINS_DISABLE= +# +### This language will be forced (currently only Nextcloud) +#FORCED_LANGUAGE=ca ## WORDPRESS ##=============================================================================