Hi developers,

I'd like to point out that in the next release there are some code
optimisations that clash with languages (like Catalan or Spanish)
that have different genre (male or female) for objects.  For
example (webcomment_templates.py):

        out = _("Your %s was successfully added") + '<br /><br />'
        out += '<a href="%s">' % link
        out += _('Back to record') + '</a>'
        out %= (reviews==1 and _('review') or _('comment'))
        return out

It turns out that, for example in Catalan:

- review: la cr?tica (female)
- comment: el comentari (male)

So, in my ca.po, I had to choose:

 #: modules/webcomment/lib/webcomment_templates.py:901
 #, fuzzy, python-format
 msgid "Your %s was successfully added"
 msgstr "El vostre %s ha estat afegit"

But it could well be:

 msgstr "La vostra %s ha estat afegida"

That is, 3 word changes (El -> La; vostre -> vostra; afegit -> afegida);
and similarly in Spanish, at least.

I know that gettext has sophisticated plural handling, but I don't
remember reading anything about genre.

Unless there is any solution, I'm afraid this message optimisation
should be avoided.

Thanks,

Ferran

Reply via email to