예제 #1
0
 def __init__(self, id, pofile, language=None, domain=None):
     """Initialize the message catalog"""
     self._pofile = make_relative_location(pofile)
     self.id = id
     self._mod_time = self._getModTime()
     self._language = language
     self._domain = domain
     self._prepareTranslations(0)
예제 #2
0
 def __init__(self, id, pofile, language=None, domain=None):
     """Initialize the message catalog"""
     self._pofile   = make_relative_location(pofile)
     self.id        = id
     self._mod_time = self._getModTime()
     self._language = language
     self._domain   = domain
     self._prepareTranslations(0)
예제 #3
0
 def __init__(self, id, pofile, error):
     self._pofile = make_relative_location(pofile)
     self.id = id
     self._mod_time = self._getModTime()
     self.error = traceback.format_exception(error[0], error[1], error[2])
예제 #4
0
 def __init__(self, id, pofile, error):
     self._pofile = make_relative_location(pofile)
     self.id = id
     self._mod_time = self._getModTime()
     self.error = traceback.format_exception(error[0],error[1],error[2])