summaryrefslogtreecommitdiff
path: root/repoze/bfg/interfaces.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2010-04-19 07:34:46 +0000
committerChris McDonough <chrism@agendaless.com>2010-04-19 07:34:46 +0000
commitf5c6c574ada26ec0b2766f5ca20bb2b5b7393ec5 (patch)
treefdc3eba986d4e598b3455e8402f30c9a3fcc3e69 /repoze/bfg/interfaces.py
parent334f4a7fff13b27d5c2be0bbe75d1507a534cbe0 (diff)
downloadpyramid-f5c6c574ada26ec0b2766f5ca20bb2b5b7393ec5.tar.gz
pyramid-f5c6c574ada26ec0b2766f5ca20bb2b5b7393ec5.tar.bz2
pyramid-f5c6c574ada26ec0b2766f5ca20bb2b5b7393ec5.zip
Dip a toe in the i18n waters.
Diffstat (limited to 'repoze/bfg/interfaces.py')
-rw-r--r--repoze/bfg/interfaces.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/repoze/bfg/interfaces.py b/repoze/bfg/interfaces.py
index 40d29348c..92003a9f9 100644
--- a/repoze/bfg/interfaces.py
+++ b/repoze/bfg/interfaces.py
@@ -229,3 +229,13 @@ class IPackageOverrides(Interface):
# VH_ROOT_KEY is an interface; its imported from other packages (e.g.
# traversalwrapper)
VH_ROOT_KEY = 'HTTP_X_VHM_ROOT'
+
+class ITranslatorFactory(Interface):
+ """ Internal interface representing an i18n translator factory """
+ def __call__(self, request):
+ """ Return a translator """
+
+class ITranslator(Interface):
+ def __call__(self, tstr):
+ """ Return a translation based on the translation string tstr """
+