-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow test of overwriting translations of plone domain #17
Comments
@mauritsvanrees you can help here? |
I guess you could use a different layer for this. Do not use the plone.app.testing layers, but use a lower level one from plone.testing, for example the Zope 2 layer: |
@mauritsvanrees I even tried it. But I had to load all zcmls that my package required, one by one. That doesn't seem right. |
Loading your own Is 'all zcmls' such a long list then? Maybe including dependency packages? Maybe the list gets too long because you try to test too much. I can imagine that it is tricky to set this up correctly so you can test what a template returns. You could load the zcml that has your
See https://github.com/mauritsvanrees/maurits.i18ntalk/blob/master/talk.rst#explicit-translations |
If I create a product that overrides translations of domain plone following this documentation, I can't test the translations overwritten.
This is because the plone.app.testing always loads the zcml of the Products.CMFPlone (which in turn loads the zcml of the plone.app.locales) before of zcml of my product.
The text was updated successfully, but these errors were encountered: