#!/bin/sh
TEMPLATES=`find ../skins -iregex '.*\..?pt'`
i18ndude rebuild-pot --pot pddbtypes-raw.pot --create PDDBTypes --merge generated.pot $TEMPLATES

if [ -f ../../CMFPlone/i18n/plone.pot ]; then
 echo filter out plone messages...
 i18ndude filter pddbtypes-raw.pot ../../CMFPlone/i18n/plone.pot > pddbtypes.pot
 rm pddbtypes-raw.pot
else
 echo no plone.pot
 mv pddbtypes-raw.pot pddbtypes.pot
fi
