Changeset 943
- Timestamp:
- 10/18/05 12:50:08 (3 years ago)
- Files:
-
- django/branches/i18n/django/bin/django-admin.py (modified) (2 diffs)
- django/branches/i18n/django/utils/translation.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/i18n/django/bin/django-admin.py
r815 r943 1 1 #!/usr/bin/env python 2 2 from django.core import management 3 from django.utils import translation 3 4 from optparse import OptionParser 4 5 import os, sys 6 7 # switch to english, because django-admin creates database content 8 # like permissions, and those shouldn't contain any translations 9 translation.activate('*', 'en-us') 5 10 6 11 ACTION_MAPPING = { … … 129 134 if __name__ == "__main__": 130 135 main() 136 django/branches/i18n/django/utils/translation.py
r914 r943 181 181 the current translation object for the current thread. 182 182 """ 183 t = translation(appname, language) 183 if language == 'en' or language.startswith('en-'): 184 t = gettext_module.NullTranslations() 185 else: 186 t = translation(appname, language) 184 187 _active[currentThread()] = t 185 188
