def render(self, context): output = self.nodelist.render(context) if not output: return output return _process_unmarked_phrase( output, default_morph.pluralize_inflected_ru, self.amount.resolve(context))
def plural(phrase, amount): if not phrase: return phrase return _process_unmarked_phrase(phrase, default_morph.pluralize_inflected_ru, amount)
def inflect(phrase, form): if not phrase: return phrase return _process_unmarked_phrase(unicode(phrase), default_morph.inflect_ru, unicode(form))