def _compile(self, content, language):
        stringset = self._get_source_strings(self.resource)
        translations = self._get_translation_strings(
            (s[0] for s in stringset), language
        )

        for string in stringset:
            trans = translations.get(string[0], u"")
            if SourceEntity.objects.get(id__exact=string[0]).pluralized:
                if type(trans) == type([]):
                    plural_trans = trans
                else:
                    plural_trans = []
                    for i in self.language.get_pluralrules_numbers():
                        plural_trans.append((u"", i))
                for i in plural_trans:
                    rule = str(i[1])
                    trans = i[0]
                    if SourceEntity.objects.get(id__exact=string[0]).pluralized:
                        content = self._replace_translation(
                            (string[1].encode('utf-8'), rule)%"%s_pl_%s",
                            trans or "",
                            content)
            else:
                if trans:
                    trans = trans[0]
                content = self._replace_translation(
                    "%s_tr" % string[1].encode('utf-8'),
                    trans or "",
                    content
                )

        return content
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/resources/formats/xliff.py/XliffHandler._compile/swapped operands of `%`