[NC] Add FORCED_LANGUAGE setting

This has been requested by schools.
main
Evilham 2023-03-31 10:38:02 +02:00
parent a4f51d1023
commit 4683abd221
No known key found for this signature in database
GPG Key ID: AE3EE30D970886BF
3 changed files with 7 additions and 2 deletions

View File

@ -47,7 +47,8 @@ cat > "${STATIC_CFG}" <<EOF
/** DD-customised static settings /** DD-customised static settings
*/ */
\$CONFIG = array( \$CONFIG = array(
'default_language' => 'ca', 'default_language' => '${FORCED_LANGUAGE}',
'force_language' => '${FORCED_LANGUAGE}',
'skeletondirectory' => '', 'skeletondirectory' => '',
'theme' => 'dd', 'theme' => 'dd',
'allow_local_remote_servers' => true, 'allow_local_remote_servers' => true,

View File

@ -79,6 +79,7 @@ services:
# Operator preferences # Operator preferences
- EXTRA_PLUGINS_ENABLE=${NEXTCLOUD_PLUGINS_ENABLE:-} - EXTRA_PLUGINS_ENABLE=${NEXTCLOUD_PLUGINS_ENABLE:-}
- EXTRA_PLUGINS_DISABLE=${NEXTCLOUD_PLUGINS_DISABLE:-} - EXTRA_PLUGINS_DISABLE=${NEXTCLOUD_PLUGINS_DISABLE:-}
- FORCED_LANGUAGE=${FORCED_LANGUAGE:-ca}
networks: networks:
- dd_net - dd_net

View File

@ -122,7 +122,10 @@ NEXTCLOUD_POSTGRES_PASSWORD=N3xtcl0ud
### These should be available from https://apps.nextcloud.com/ ### These should be available from https://apps.nextcloud.com/
### Example: NEXTCLOUD_PLUGINS_ENABLE=cospend,cookbook ### Example: NEXTCLOUD_PLUGINS_ENABLE=cospend,cookbook
#NEXTCLOUD_PLUGINS_ENABLE= #NEXTCLOUD_PLUGINS_ENABLE=
#NEXTCLOUD_PLUGINS_DISABLE #NEXTCLOUD_PLUGINS_DISABLE=
#
### This language will be forced (currently only Nextcloud)
#FORCED_LANGUAGE=ca
## WORDPRESS ## WORDPRESS
##============================================================================= ##=============================================================================