mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-10 01:28:16 -06:00
Misc cleanup
This commit is contained in:
parent
c519817054
commit
429d046c6c
@ -66,8 +66,7 @@ Email is sent from NetBox only for critical events or if configured for [logging
|
||||
|
||||
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.
|
||||
|
||||
Enables language translation for the user interface. (This parameter maps to Django's [USE_I18N](https://docs.djangoproject.com/en/stable/ref/settings/#std-setting-USE_I18N) setting.)
|
||||
|
||||
---
|
||||
|
||||
|
@ -31,9 +31,9 @@ PREFERENCES = {
|
||||
('', _('Auto')),
|
||||
*settings.LANGUAGES,
|
||||
),
|
||||
description=_('Forces UI translation to the specified language.'),
|
||||
description=_('Forces UI translation to the specified language'),
|
||||
warning=(
|
||||
f"Translation is globally disabled inside configuration.py"
|
||||
_("Support for translation has been disabled locally")
|
||||
if not settings.ENABLE_TRANSLATION
|
||||
else ''
|
||||
)
|
||||
|
@ -446,6 +446,7 @@ LOGIN_REDIRECT_URL = f'/{BASE_PATH}'
|
||||
# Use timezone-aware datetime objects
|
||||
USE_TZ = True
|
||||
|
||||
# Toggle language translation support
|
||||
USE_I18N = ENABLE_TRANSLATION
|
||||
|
||||
# WSGI
|
||||
|
Loading…
Reference in New Issue
Block a user