Drop unnecessary LOCALE_PATHS from settings.py

Django looks for and uses if it exists a locale directory in each of
the installed apps listed in INSTALLED_APPS [1]. horizon and
openstack_dashboard are specified in INSTALLED_APPS, so there is no need
to specify horizon/locale and openstack_dashboard/locale explicitly.
We can drop them without any side-effect.

[1] https://docs.djangoproject.com/en/1.11/topics/i18n/translation/#javascript-catalog-view

Change-Id: Ibe364b2a16894a51fe17411f29a326aef621472c
Related-Bug: #1804289
This commit is contained in:
Akihiro Motoki 2018-11-29 03:27:34 +09:00
parent 0e75e2fb80
commit 1028a65804
1 changed files with 0 additions and 5 deletions

View File

@ -250,11 +250,6 @@ USE_I18N = True
USE_L10N = True
USE_TZ = True
LOCALE_PATHS = [
'horizon/locale',
'openstack_dashboard/locale',
]
# Set OPENSTACK_CLOUDS_YAML_NAME to provide a nicer name for this cloud for
# the clouds.yaml file than "openstack".
OPENSTACK_CLOUDS_YAML_NAME = 'openstack'