From dadef1b32c6bc9ab3b85220465c312130a8408bf Mon Sep 17 00:00:00 2001 From: Anton M Date: Tue, 14 May 2024 01:21:19 +0200 Subject: [PATCH] change setting name to ENABLE_TRANSLATION --- docs/configuration/system.md | 17 +++++++++-------- netbox/netbox/settings.py | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/docs/configuration/system.md b/docs/configuration/system.md index 9cd2aacb1c..2f128e0790 100644 --- a/docs/configuration/system.md +++ b/docs/configuration/system.md @@ -60,6 +60,15 @@ Email is sent from NetBox only for critical events or if configured for [logging ) ``` +--- + +## ENABLE_TRANSLATION + +Default: True + +Provides a way to turn translation system off and make NetBox English-based for all users. Directly maps to [USE_I18N](https://docs.djangoproject.com/en/stable/ref/settings/#std-setting-USE_I18N) Django setting. + + --- ## HTTP_PROXIES @@ -198,11 +207,3 @@ If `STORAGE_BACKEND` is not defined, this setting will be ignored. Default: UTC The time zone NetBox will use when dealing with dates and times. It is recommended to use UTC time unless you have a specific need to use a local time zone. Please see the [list of available time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - ---- - -## USE_I18N - -Default: True - -[Django setting](https://docs.djangoproject.com/en/stable/ref/settings/#std-setting-USE_I18N) which provides a way to turn translation system off and make NetBox English-based for all users. diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py index acec2efcb9..2aad6d114e 100644 --- a/netbox/netbox/settings.py +++ b/netbox/netbox/settings.py @@ -156,7 +156,7 @@ STORAGE_BACKEND = getattr(configuration, 'STORAGE_BACKEND', None) STORAGE_CONFIG = getattr(configuration, 'STORAGE_CONFIG', {}) TIME_ZONE = getattr(configuration, 'TIME_ZONE', 'UTC') -USE_I18N = getattr(configuration, 'USE_I18N', True) +USE_I18N = getattr(configuration, 'ENABLE_TRANSLATION', True) # Load any dynamic configuration parameters which have been hard-coded in the configuration file for param in CONFIG_PARAMS: