Skip to content

Commit c323c62

Browse files
Anton Myasnikovamyasnikov
Anton Myasnikov
authored andcommitted
add USE_I18N setting
1 parent 4a64a3f commit c323c62

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

docs/configuration/system.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,3 +198,11 @@ If `STORAGE_BACKEND` is not defined, this setting will be ignored.
198198
Default: UTC
199199

200200
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).
201+
202+
---
203+
204+
## USE_I18N
205+
206+
Default: True
207+
208+
[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.

netbox/netbox/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@
156156
STORAGE_BACKEND = getattr(configuration, 'STORAGE_BACKEND', None)
157157
STORAGE_CONFIG = getattr(configuration, 'STORAGE_CONFIG', {})
158158
TIME_ZONE = getattr(configuration, 'TIME_ZONE', 'UTC')
159+
USE_I18N = getattr(configuration, 'USE_I18N', True)
159160

160161
# Load any dynamic configuration parameters which have been hard-coded in the configuration file
161162
for param in CONFIG_PARAMS:

0 commit comments

Comments
 (0)