def _get_plurals(self, language):
        translations = Translation.objects.filter(
            source_entity__resource = self.resource,
            language=language,
        ).order_by('source_entity__id', 'rule').\
        values_list('source_entity__string', 'string')
        plurals = defaultdict(list)
        for se, t in translations:
            plurals[se].append(t)
        return plurals
Get all plural forms for the source strings.
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/resources/formats/pofile.py/GettextHandler._get_plurals