コード例 #1
0
    def __init__(self, data=None, **kwargs):
        NullTranslations.__init__(self)

        if not data:
            data = kwargs
        elif kwargs:
            data = data.copy()
            data.update(kwargs)
        self.data = data
コード例 #2
0
ファイル: JSONTranslations.py プロジェクト: vinsvanfer/pyjs
 def __init__(self, *args, **kwargs):
     NullTranslations.__init__(self, *args, **kwargs)
     self.new_catalog()
コード例 #3
0
 def __init__(self, client, bundleId, languageId, cacheTimeout, fp=None):
     NullTranslations.__init__(self, fp=fp)
     self.__client = client
     self.__bundleId = bundleId
     self.__languageId = languageId
     self.__cacheTimeout = cacheTimeout
コード例 #4
0
ファイル: __init__.py プロジェクト: jace/zine-main
 def __init__(self, fileobj=None, locale=None):
     NullTranslations.__init__(self, fileobj)
     self.locale = locale
     self.client_keys = set()
コード例 #5
0
ファイル: __init__.py プロジェクト: IanLewis/kay
 def __init__(self, fileobj=None, locale=None):
   NullTranslations.__init__(self, fileobj)
   self.lang = locale
   self._catalog = {}
コード例 #6
0
ファイル: __init__.py プロジェクト: jokey2k/pyClanSphere
 def __init__(self, fileobj=None, locale=None):
     NullTranslations.__init__(self, fileobj)
     self.locale = locale
     self.client_keys = set()
コード例 #7
0
ファイル: i18n.py プロジェクト: e2pluginss/plexnet
 def __init__(self, catalog):
     NullTranslations.__init__(self)
     self._catalog = catalog
コード例 #8
0
ファイル: __init__.py プロジェクト: jiposaka/kaytestpro
 def __init__(self, fileobj=None, locale=None):
     NullTranslations.__init__(self, fileobj)
     self.lang = locale
     self._catalog = {}
コード例 #9
0
 def __init__(self, client, bundleId, languageId, cacheTimeout, fp=None):
     NullTranslations.__init__(self, fp=fp)
     self.__client = client
     self.__bundleId = bundleId
     self.__languageId = languageId
     self.__cacheTimeout = cacheTimeout