Changeset 6701
- Timestamp:
- 11/18/07 23:59:58 (1 year ago)
- Files:
-
- django/trunk/django/bin/compile-messages.py (modified) (1 diff)
- django/trunk/django/conf/global_settings.py (modified) (1 diff)
- django/trunk/django/utils/translation/trans_real.py (modified) (1 diff)
- django/trunk/docs/settings.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/bin/compile-messages.py
r6447 r6701 12 12 13 13 def compile_messages(locale=None): 14 basedirs = [os.path.join('conf', 'locale'), 'locale']14 basedirs = (os.path.join('conf', 'locale'), 'locale') 15 15 if os.environ.get('DJANGO_SETTINGS_MODULE'): 16 16 from django.conf import settings 17 if hasattr(settings, 'LOCALE_PATHS'): 18 basedirs += settings.LOCALE_PATHS 17 basedirs += settings.LOCALE_PATHS 19 18 20 19 # Gather existing directories. django/trunk/django/conf/global_settings.py
r6581 r6701 91 91 USE_I18N = True 92 92 93 LOCALE_PATHS = () 94 93 95 # Not-necessarily-technical managers of the site. They get broken link 94 96 # notifications and other various e-mails. django/trunk/django/utils/translation/trans_real.py
r6681 r6701 169 169 return res 170 170 171 if hasattr(settings, 'LOCALE_PATHS'): 172 for localepath in settings.LOCALE_PATHS: 173 if os.path.isdir(localepath): 174 res = _merge(localepath) 171 for localepath in settings.LOCALE_PATHS: 172 if os.path.isdir(localepath): 173 res = _merge(localepath) 175 174 176 175 if projectpath and os.path.isdir(projectpath): django/trunk/docs/settings.txt
r6547 r6701 584 584 Default: ``()`` (Empty tuple) 585 585 586 A listof directories where Django looks for translation files.586 A tuple of directories where Django looks for translation files. 587 587 See the `internationalization docs section`_ explaining the variable and the 588 588 default behavior.
