Exemplo n.º 1
0
 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))
Exemplo n.º 2
0
def plural(phrase, amount):
    if not phrase:
        return phrase
    return _process_unmarked_phrase(phrase, default_morph.pluralize_inflected_ru, amount)
Exemplo n.º 3
0
def inflect(phrase, form):
    if not phrase:
        return phrase
    return _process_unmarked_phrase(unicode(phrase), default_morph.inflect_ru, unicode(form))