Menu

Commit [r8196]  Maximize  Restore  History

i18n: `Translations.load` return a `NullTranslations` instance when the catalogs are not available.

This later makes the `add` fail:
{{{
NullTranslations instance has no attribute 'add'
}}}
So better ''not'' consider the translations are active in this condition.

cboos 2009-05-11

changed /trunk/trac/util/translation.py
/trunk/trac/util/translation.py Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB