Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#410 Adding a new formating converter, like %n

open
nobody
None
4
2012-09-06
2010-09-04
Valentin Lorentz
No

Hello,

The %n parameter allows to pluralize a word, depending on a string. But, I have a problem, because of a difference between French and English.
Here is an example, from the Note plugin :

The %n is linked to this tuple : (unread, 'unread', 'note')
So, that gives : "1 unread note" or "2 unread notes"

If I translated to French, the tuple becomes : (unread, 'note', 'non-lue')
So, that gives : "1 note non-lue" or "2 note non-lues"
But, the pluralized string should be : "2 notes non-lues" (in French, the adjectives also must be pluralized)

Can you add this feature ?

Thank you in advance,
ProgVal

Discussion

  • My i18n hack allows locales to rewrite the pluralization-related fonctions.