Products/Five/i18n.zcml uses namespace package in configure package directive

Reported by Jens KLEIN on 2008-05-08
2
Affects Status Importance Assigned to Milestone
Zope 2
Undecided
Jens KLEIN

Bug Description

when using eggified zope.* packages in Zope2 (i.e. for use with singing-dancing or z3c.forms) zope. and zope.app. are namespace packages.

Five uses in its i18n.zcml http://svn.zope.org/Products.Five/branches/1.5/i18n.zcml?rev=70512&view=markup a the follwing:

  <configure package="zope.app">
    <i18n:registerTranslations directory="locales"/>
  </configure>

which is wrong: zope.app as a namespace has several location. the directory locales cant be found in every case (it maybe found randomly).

solution is to use the full package name zope.app.locales and as directory just a dot:

  <configure package="zope.app.locales">
    <i18n:registerTranslations directory="."/>
  </configure>

this will work in all cases.

Andreas Jung (ajung) wrote :

Please commit the change.

Changed in zope2:
assignee: nobody → jens-bluedynamics
Jens KLEIN (jensens) wrote :

would like to, but i dont have commit access to zope. I need to chnage this, sure.

Andreas Jung (ajung) wrote :

Create a Five 1.5.8 tag and adjusted the svn externals on the 2.10 trunk

Changed in zope2:
status: New → Fix Committed
Changed in zope2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers