wichert / lingua

Translation toolkit for Python
Other
46 stars 32 forks source link

Add pluralize() calls to lingua #22

Closed MatthewWilkes closed 10 years ago

MatthewWilkes commented 10 years ago

Pyramid uses a function called pluralize() that's equivalent to ngettext. Recognise this as a keyword and return it in plural format so the potfile has the correct identifiers.

domenkozar commented 10 years ago

+1

domenkozar commented 10 years ago

Note: for currently it's possible to use "python" extractor provided by Babel and ungettext function name.

wichert commented 10 years ago

Can you add a few tests for this?

MatthewWilkes commented 10 years ago

There is a single test in 7837bf1 but I admit that I was a little stumped with what would be useful. I'll happily add more, but I'd very much appreciate a hint on what you think I should go for.