Skip to content

Commit

Permalink
change setting name to ENABLE_TRANSLATION
Browse files Browse the repository at this point in the history
  • Loading branch information
amyasnikov committed May 13, 2024
1 parent c323c62 commit dadef1b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions docs/configuration/system.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
2 changes: 1 addition & 1 deletion netbox/netbox/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit dadef1b

Please sign in to comment.