[Checkins] SVN: grok/branches/ulif-i18n/src/grok/interfaces.py
Define interface for localesdir directive.
Uli Fouquet
uli at gnufix.de
Thu Oct 18 07:32:42 EDT 2007
Log message for revision 80914:
Define interface for localesdir directive.
Changed:
U grok/branches/ulif-i18n/src/grok/interfaces.py
-=-
Modified: grok/branches/ulif-i18n/src/grok/interfaces.py
===================================================================
--- grok/branches/ulif-i18n/src/grok/interfaces.py 2007-10-18 10:01:34 UTC (rev 80913)
+++ grok/branches/ulif-i18n/src/grok/interfaces.py 2007-10-18 11:32:42 UTC (rev 80914)
@@ -101,6 +101,17 @@
of the directory. This can be overridden using
``templatedir``."""
+ def localesdir(directory):
+ """Register translations in a directory.
+
+ By default, grok will look for a directory ``locales`` in the
+ package of a module and - if found - try to register
+ translations in it.
+
+ The name of the directory or additional directories can be
+ declared using ``localesdir``.
+ """
+
def provides(interface):
"""Explicitly specify with which interface a component will be
looked up."""
More information about the Checkins
mailing list