Closed mgedmin closed 4 years ago
Meanwhile I've opened #9 for fixing the tests Right Now to unblock the other PRs.
I wonder if @thefunny42 who implemented the plural translation support in zope.i18n could be enticed to help with this...
To be honest we do not use this package, and I am not sure what it does. We use the translation feature with a msgid:
_('This template consists of ${count} item',
msgid_plural='This template consists of ${count} items',
number=self.count,
mapping={'count': self.count})
That we use in a template or just call zope.i18n.translate()
on. The only feedback I have, is that the tool we use to extract translations (a patched lingua to support plurals, among others) does not like at all multiple lines on msgid_plural
).
@mgedmin Is this PR ready to merge? (At least to unblock using a current zope.i18n version.)
@mgedmin Is this PR ready to merge?
Not really?
It needs somebody who uses zope.app.i18n to play with the new zope.i18n and see what works and what breaks and what needs fixing.
I'm not currently using zope.app.i18n.
Same here: I neither use zope.app.i18n
.
@mgedmin I would actually be very happy, if we could merge that somehow. On multiple occasions I wanted to install zodbbrowser
lately and there is the transitive dependency via zope.app.zcmlfiles
, which causes trouble.
Could it be an option to explicitly raise a NotImplementedError
if the translate()
is called with the new attributes and state that in the readme? We could also encourage the users to open up an issue here, in case they need it.
Could it be an option to explicitly raise a NotImplementedError if the translate() is called with the new attributes and state that in the readme? We could also encourage the users to open up an issue here, in case they need it.
That sounds better than the status quo, but somebody would have to prepare a PR.
Then I will try to do it tomorrow.
@mgedmin I think I got every place of use.
Thanks for the feedback, I merge that now. @mgedmin Do you mind creating a new release?
4.1.0 is on PyPI.
Intended to fix #7.
There may be more work to it than I originally thought.