# HG changeset patch # User Wagner Bruna # Date 2010-10-27 01:51:01 # Node ID d01c21002e821cca1344072f0dd90e73e038a65e # Parent 5d3f3d577218758e6fa0de5c3ada48263ac2889b i18n: translate revset predicate docstrings diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -8,7 +8,7 @@ import re import parser, util, error, discovery import match as matchmod -from i18n import _ +from i18n import _, gettext elements = { "(": (20, ("group", 1, ")"), ("func", 1, ")")), @@ -785,10 +785,11 @@ def makedoc(topic, doc): text = symbols[name].__doc__ if not text: continue + text = gettext(text.rstrip()) lines = text.splitlines() lines[1:] = [(' ' + l.strip()) for l in lines[1:]] predicates.append('\n'.join(lines)) - predicates = '\n'.join(predicates) + predicates = '\n\n'.join(predicates) doc = doc.replace('.. predicatesmarker', predicates) return doc