Skip to content

Commit

Permalink
Better docstring
Browse files Browse the repository at this point in the history
From z3c.recipe.i18n.
  • Loading branch information
regebro committed Feb 18, 2016
1 parent 3f7e715 commit c7da468
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/zope/app/locales/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,12 @@ def py_strings(dir, domain="zope", exclude=(), verify_domain=False):

def zcml_strings(path, domain="zope", site_zcml=None):
"""Retrieve all ZCML messages from `dir` that are in the `domain`.
Note, the pot maker runs in a loop for each package and the maker collects
only the given messages from such a package by the given path. This allows
us to collect messages from eggs and external packages. This also prevents
to collect the same message more then one time since we use the same zcml
configuration for each package path.
"""
from zope.configuration import xmlconfig, config

Expand Down

0 comments on commit c7da468

Please sign in to comment.