# HG changeset patch # User timeless@mozdev.org # Date 1441851828 14400 # Node ID 3d9a546dcbc54340c1252decffe8d38b8e125f42 # Parent cebe06c1683704a70bd4e5d2817635f7338e35f3 evolve: annotate translatable strings with _() diff --git a/hgext/evolve.py b/hgext/evolve.py --- a/hgext/evolve.py +++ b/hgext/evolve.py @@ -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'))