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, 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)