<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:five="http://namespaces.zope.org/five"
    xmlns:zcml="http://namespaces.zope.org/zcml"
    xmlns:i18n="http://namespaces.zope.org/i18n">

  <include package=".browser" />
  <include package=".mov" />
  <include package=".flv" />
  <include package=".wmv" />
  <include package=".real-media" />
  <include package=".swf" />

  <!-- Zope 2.9 / 3.2 support -->
  <configure zcml:condition="installed zope.app.annotation.tests">
    <include package="zope.app.annotation" />

    <adapter
        for=".interfaces.IPossibleVideo"
        provides="zope.app.annotation.interfaces.IAnnotations"
        factory="zope.app.annotation.attribute.AttributeAnnotations"
        />
  </configure>

  <!-- Zope 2.10 / 3.3 support -->
  <configure zcml:condition="installed zope.annotation">
    <include package="zope.annotation" />

    <adapter
        for=".interfaces.IPossibleVideo"
        provides="zope.annotation.interfaces.IAnnotations"
        factory="zope.annotation.attribute.AttributeAnnotations"
        />
  </configure>

  <adapter factory=".media.MediaActivator" />

  <utility
      factory=".migration.Migrator"
      />
  
  <i18n:registerTranslations directory="locales" />
  
</configure>
