예제 #1
0
 def __init__(self, templatefile, inputstore, personality, encoding=None):
     self.templatefile = templatefile
     self.inputstore = inputstore
     self.personality = properties.get_dialect(personality)
     self.encoding = encoding
     if self.encoding is None:
         self.encoding = self.personality.default_encoding
 def __init__(self, templatefile, inputstore, personality, encoding=None):
     self.templatefile = templatefile
     self.inputstore = inputstore
     self.personality = properties.get_dialect(personality)
     self.encoding = encoding
     if self.encoding is None:
         self.encoding = self.personality.default_encoding
예제 #3
0
파일: po2prop.py 프로젝트: phlax/translate
 def __init__(self, templatefile, inputstore, personality, encoding=None, remove_untranslated=False):
     self.templatefile = templatefile
     self.inputstore = inputstore
     self.personality = properties.get_dialect(personality)
     self.encoding = encoding
     if self.encoding is None:
         self.encoding = self.personality.default_encoding
     self.remove_untranslated = remove_untranslated
     self.mixer = accesskey.UnitMixer(properties.labelsuffixes, properties.accesskeysuffixes)
예제 #4
0
 def __init__(self, templatefile, inputstore, personality, encoding=None,
              remove_untranslated=False):
     self.templatefile = templatefile
     self.inputstore = inputstore
     self.personality = properties.get_dialect(personality)
     self.encoding = encoding
     if self.encoding is None:
         self.encoding = self.personality.default_encoding
     self.remove_untranslated = remove_untranslated
     self.mixer = accesskey.UnitMixer(properties.labelsuffixes,
                                      properties.accesskeysuffixes)