Mercurial > hg
changeset 12855:d01c21002e82 stable
i18n: translate revset predicate docstrings
author | Wagner Bruna <wbruna@yahoo.com> |
---|---|
date | Tue, 26 Oct 2010 23:51:01 -0200 |
parents | 5d3f3d577218 |
children | 5c6c10e6b5a6 |
files | mercurial/revset.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revset.py Tue Oct 26 23:07:14 2010 -0200 +++ b/mercurial/revset.py Tue Oct 26 23:51:01 2010 -0200 @@ -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 @@ 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