-
Notifications
You must be signed in to change notification settings - Fork 12
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
Why for plone domain we specify only $SOURCE/configure.zcml $SOURCE/profiles/default in rebuild_i18n-sh? (TODO: Search for profiles and *.zcml in the script) #49
Comments
i18ndude can search for an explicit domain without problems in zcml and xml files and in page templates. But not in Python files. In Python files it will look for any code like |
But is there a specific reason to search only |
No specific reason. |
@mauritsvanrees I have the following code in my package: from Products.CMFPlone import PloneMessageFactory as _
search = _(u'Search') When I run |
You can avoid this by not importing it as underscore. Just use the original
Then |
@mauritsvanrees do we have this hint somewhere in the documentation? Just a question since you develop in i18ndude as well. To run i18ndude we specify a domain ( |
I don't think we have that hint anywhere. The code in |
Where do you think this should be added? A hint in |
We can add it in |
For reference:
buildout.plonetest/qa.cfg
Line 109 in e86b3fb
In https://maurits.vanrees.org/weblog/archive/2010/10/i18n-plone-4:
is this why we only search for plone domain in the profile? Or there are more motivations for treating plone domain different from the package? Which situations are you trying to avoid by being specific to
configure.zcml
andprofiles/default
?buildout.plonetest/qa.cfg
Line 96 in e86b3fb
TODO: #49 (comment)
The text was updated successfully, but these errors were encountered: