From 15eebdc15525c787b9ffab7c2c6897d033ce644c Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Wed, 11 Aug 2004 20:47:15 +0000 Subject: [PATCH] Backport rev26612-13. --- metadirectives.py | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 metadirectives.py diff --git a/metadirectives.py b/metadirectives.py new file mode 100644 index 0000000..d95e929 --- /dev/null +++ b/metadirectives.py @@ -0,0 +1,29 @@ +############################################################################## +# +# Copyright (c) 2003 Zope Corporation and Contributors. +# All Rights Reserved. +# +# This software is subject to the provisions of the Zope Public License, +# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. +# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED +# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS +# FOR A PARTICULAR PURPOSE. +# +############################################################################## +"""``i18n`` ZCML namespace directive interfaces + +$Id$ +""" +__docformat__ = 'restructuredtext' +from zope.interface import Interface +from zope.configuration.fields import Path + +class IRegisterTranslationsDirective(Interface): + """Register translations with the global Translation Service.""" + + directory = Path( + title=u"Directory", + description=u"Directory containing the translations", + required=True + )