def __init__(self, fileobj=None, locale=None): self.lang = locale self._catalog = {} try: TranslationsBase.__init__(self, fileobj=fileobj) except TypeError: TranslationsBase.__init__(self, fp=fileobj) if not hasattr(self, "plural"): self.plural = lambda n: int(n != 1)
def __init__(self, fileobj=None, locale=None): self.client_keys = set() self.locale = locale TranslationsBase.__init__(self, fileobj=fileobj)
def __init__(self, fileobj=None, locale=None): self.lang = locale self._catalog = {} TranslationsBase.__init__(self, fileobj=fileobj) if not hasattr(self, "plural"): self.plural = lambda n: int(n != 1)