Ticket #8626: 8626.diff
File 8626.diff, 802 bytes (added by , 16 years ago) |
---|
-
django/utils/translation/trans_real.py
10 10 from django.utils.safestring import mark_safe, SafeData 11 11 from django.utils.thread_support import currentThread 12 12 13 # Monkey patch to allow translations for the 'en' locale. (In the locale 14 # module, 'en' is mapped to the 'en_US.ISO8859-1' alias, which causes the 15 # en_US .mo file to be loaded for the 'en' locale.) See ticket #8626. 16 locale.locale_alias['en'] = 'en.ISO8859-1' 17 13 18 # Translations are cached in a dictionary for every language+app tuple. 14 19 # The active translations are stored by threadid to make them thread local. 15 20 _translations = {}