def zcml_strings(dir, domain='zope', site_zcml=None):
    """Retrieve all ZCML messages from `dir` that are in the `domain`."""
    from zope.configuration import xmlconfig, config
    context = config.ConfigurationMachine()
    xmlconfig.registerCommonDirectives(context)
    context.provideFeature('devmode')
    context = xmlconfig.file(site_zcml, context=context, execute=False)
    return context.i18n_strings.get(domain, {})
