Hi,

I've just tried to install BloodHound in the 'de' locale and it wouldn't work 
with this error trace:
  Traceback (most recent call last):
    File "bloodhound_setup.py", line 485, in <module>
      bsetup.setup()
    File "bloodhound_setup.py", line 195, in setup
      translation.activate(locale)
    File 
"/Users/spielmann/prog/bloodhound/bloodhound/trac/trac/util/translation.py", 
line 326, in activate
      translations.activate(locale, env_path)
    File 
"/Users/spielmann/prog/bloodhound/bloodhound/trac/trac/util/translation.py", 
line 153, in activate
      t.add(Translations.load(locale_dir, locale or 'en_US',
  AttributeError: 'NullTranslations' object has no attribute 'add'

Changing the rather unusual test in line 149 of /trac/trac/util/translation.py 
to a regular isinstance test seems to fix the issue. A patch is attached.

Cheers,
Johannes

Attachment: locale_test_with_isinstance.patch
Description: Binary data

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to