Esempio n. 1
0
 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)
Esempio n. 2
0
 def __init__(self, fileobj=None, locale=None):
     self.client_keys = set()
     self.locale = locale
     TranslationsBase.__init__(self, fileobj=fileobj)
Esempio n. 3
0
 def __init__(self, fileobj=None, locale=None):
     self.client_keys = set()
     self.locale = locale
     TranslationsBase.__init__(self, fileobj=fileobj)
Esempio n. 4
0
 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)