I did some trace...
the code in openstack_dashboard/dashboards/settings/user/forms.py line 109 calls
translation.check_for_language(lang_code)
it calls
/usr/lib/python2.7/site-packages/django/utils/translation/__init__.py 202 check_for_languge(lang_code)
which will call /usr/lib/python2.7/site-packages/django/utils/translation/trans_real.py 421 check_for_language which finds all the path in all_locale_paths() to check the mo files
def all_locale_paths():
"""
Returns a list of paths to user-provides languages files.
"""
globalpath = os.path.join( os.path.dirname(upath(sys.modules[settings.__module__].__file__)), 'locale')
return [globalpath] + list(settings.LOCALE_PATHS)
from my trace...I noticed gloabalpath is actually the django path and settings.LOCALE_PATHS are from the setings.py mentioned above....what did I miss here?
@Akihiro,
I did some trace... dashboard/ dashboards/ settings/ user/forms. py line 109 calls check_for_ language( lang_code)
the code in openstack_
translation.
it calls python2. 7/site- packages/ django/ utils/translati on/__init_ _.py 202 check_for_ languge( lang_code)
/usr/lib/
which will call /usr/lib/ python2. 7/site- packages/ django/ utils/translati on/trans_ real.py 421 check_for_language which finds all the path in all_locale_paths() to check the mo files
def all_locale_paths():
os.path. dirname( upath(sys. modules[ settings. __module_ _].__file_ _)), 'locale') LOCALE_ PATHS)
"""
Returns a list of paths to user-provides languages files.
"""
globalpath = os.path.join(
return [globalpath] + list(settings.
from my trace...I noticed gloabalpath is actually the django path and settings. LOCALE_ PATHS are from the setings.py mentioned above....what did I miss here?