'Initialize the translations catalog.
:param fileobj: the file-like object the translation should be read
from'

def __init__(self, fileobj=None, domain=DEFAULT_DOMAIN):

    gettext.GNUTranslations.__init__(self, fp=fileobj)
    self.files = filter(None, [getattr(fileobj, 'name', None)])
    self.domain = domain
    self._domains = {}
