Mercurial > hg
changeset 29646:a8a5dd8986f0 stable
revset: refactor to make xgettext put i18n comments into hg.pot file
xgettext expects both "_()" and (a part of) text to be placed at just
next line of "i18n:" comment.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Mon, 01 Aug 2016 06:08:26 +0900 |
parents | 3b4d69b3988d |
children | 9b6dc989f02b |
files | mercurial/revset.py |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revset.py Mon Aug 01 06:08:26 2016 +0900 +++ b/mercurial/revset.py Mon Aug 01 06:08:26 2016 +0900 @@ -1866,8 +1866,8 @@ if len(keyflags) > 1 and any(k == 'topo' for k, reverse in keyflags): # i18n: "topo" is a keyword - raise error.ParseError(_( - 'topo sort order cannot be combined with other sort keys')) + raise error.ParseError(_('topo sort order cannot be combined ' + 'with other sort keys')) opts = {} if 'topo.firstbranch' in args: @@ -1875,9 +1875,8 @@ opts['topo.firstbranch'] = args['topo.firstbranch'] else: # i18n: "topo" and "topo.firstbranch" are keywords - raise error.ParseError(_( - 'topo.firstbranch can only be used when using the topo sort ' - 'key')) + raise error.ParseError(_('topo.firstbranch can only be used ' + 'when using the topo sort key')) return args['set'], keyflags, opts