comparison mercurial/commands.py @ 16231:ce292f1379ba stable

i18n: fix all remaining uses of % inside _()
author Matt Mackall <mpm@selenic.com>
date Thu, 08 Mar 2012 13:35:27 -0600
parents d4d35fd0889d
children 877aea86fb73 8ca7187d479f
comparison
equal deleted inserted replaced
16230:d4d35fd0889d 16231:ce292f1379ba
2902 haveheads = set(h.branch() for h in heads) 2902 haveheads = set(h.branch() for h in heads)
2903 if branches - haveheads: 2903 if branches - haveheads:
2904 headless = ', '.join(b for b in branches - haveheads) 2904 headless = ', '.join(b for b in branches - haveheads)
2905 msg = _('no open branch heads found on branches %s') 2905 msg = _('no open branch heads found on branches %s')
2906 if opts.get('rev'): 2906 if opts.get('rev'):
2907 msg += _(' (started at %s)' % opts['rev']) 2907 msg += _(' (started at %s)') % opts['rev']
2908 ui.warn((msg + '\n') % headless) 2908 ui.warn((msg + '\n') % headless)
2909 2909
2910 if not heads: 2910 if not heads:
2911 return 1 2911 return 1
2912 2912
2995 else: 2995 else:
2996 if name == 'shortlist': 2996 if name == 'shortlist':
2997 msg = _('use "hg help" for the full list of commands ' 2997 msg = _('use "hg help" for the full list of commands '
2998 'or "hg -v" for details') 2998 'or "hg -v" for details')
2999 elif name and not full: 2999 elif name and not full:
3000 msg = _('use "hg help %s" to show the full help text' % name) 3000 msg = _('use "hg help %s" to show the full help text') % name
3001 elif aliases: 3001 elif aliases:
3002 msg = _('use "hg -v help%s" to show builtin aliases and ' 3002 msg = _('use "hg -v help%s" to show builtin aliases and '
3003 'global options') % (name and " " + name or "") 3003 'global options') % (name and " " + name or "")
3004 else: 3004 else:
3005 msg = _('use "hg -v help %s" to show more info') % name 3005 msg = _('use "hg -v help %s" to show more info') % name