Mercurial > evolve
diff hgext/evolve.py @ 1498:3d9a546dcbc5
evolve: annotate translatable strings with _()
author | timeless@mozdev.org |
---|---|
date | Wed, 09 Sep 2015 22:23:48 -0400 |
parents | cebe06c16837 |
children | c936a243346a |
line wrap: on
line diff
--- a/hgext/evolve.py Wed Sep 09 22:22:01 2015 -0400 +++ b/hgext/evolve.py Wed Sep 09 22:23:48 2015 -0400 @@ -1496,17 +1496,17 @@ @command('^evolve|stabilize|solve', [('n', 'dry-run', False, - 'do not perform actions, just print what would be done'), + _('do not perform actions, just print what would be done')), ('', 'confirm', False, - 'ask for confirmation before performing the action'), - ('A', 'any', False, 'also consider troubled changesets unrelated to current working directory'), - ('r', 'rev', [], 'solves troubles of these revisions'), - ('', 'bumped', False, 'solves only bumped changesets'), - ('', 'divergent', False, 'solves only divergent changesets'), - ('', 'unstable', False, 'solves only unstable changesets (default)'), - ('a', 'all', False, 'evolve all troubled changesets related to the current ' - 'working directory and its descendants'), - ('c', 'continue', False, 'continue an interrupted evolution'), + _('ask for confirmation before performing the action')), + ('A', 'any', False, _('also consider troubled changesets unrelated to current working directory')), + ('r', 'rev', [], _('solves troubles of these revisions')), + ('', 'bumped', False, _('solves only bumped changesets')), + ('', 'divergent', False, _('solves only divergent changesets')), + ('', 'unstable', False, _('solves only unstable changesets (default)')), + ('a', 'all', False, _('evolve all troubled changesets related to the current ' + 'working directory and its descendants')), + ('c', 'continue', False, _('continue an interrupted evolution')), ] + mergetoolopts, _('[OPTIONS]...')) def evolve(ui, repo, **opts): @@ -1907,7 +1907,7 @@ displayer.show(other) ui.write(_('base: ')) displayer.show(base) - if confirm and ui.prompt('perform evolve? [Ny]', 'n') != 'y': + if confirm and ui.prompt(_('perform evolve? [Ny]'), 'n') != 'y': raise util.Abort(_('evolve aborted by user')) if dryrun: ui.write('hg update -c %s &&\n' % divergent) @@ -2078,7 +2078,7 @@ ui.warn(msg % len(aspchildren)) result = 1 elif 1 < len(aspchildren): - ui.warn("ambigious next (unstable) changeset:\n") + ui.warn(_("ambigious next (unstable) changeset:\n")) for c in aspchildren: displayer.show(repo[c]) ui.warn(_('(run "hg evolve --rev REV" on one of them)\n'))