# HG changeset patch # User Vadim Gelfer # Date 1138723723 28800 # Node ID fe19c54ee4035ff1beacd5d58275f7533760ae53 # Parent 91d40fc959f047718160f2c0bd33ae5959ba5194 add _ to several strings diff -r 91d40fc959f0 -r fe19c54ee403 hgext/patchbomb.py --- a/hgext/patchbomb.py Tue Jan 31 08:06:35 2006 -0800 +++ b/hgext/patchbomb.py Tue Jan 31 08:08:43 2006 -0800 @@ -95,7 +95,7 @@ if r: return r if default is not None: return default if empty_ok: return r - ui.warn('Please enter a valid value.\n') + ui.warn(_('Please enter a valid value.\n')) def confirm(s): if not prompt(s, default = 'y', rest = '? ').lower().startswith('y'): @@ -107,7 +107,7 @@ if summary: ui.write(summary, '\n') ui.write(s, '\n') - confirm('Does the diffstat above look okay') + confirm(_('Does the diffstat above look okay')) return s def makepatch(patch, idx, total): @@ -167,13 +167,13 @@ jumbo = [] msgs = [] - ui.write('This patch series consists of %d patches.\n\n' % len(patches)) + ui.write(_('This patch series consists of %d patches.\n\n') % len(patches)) for p, i in zip(patches, range(len(patches))): jumbo.extend(p) msgs.append(makepatch(p, i + 1, len(patches))) - ui.write('\nWrite the introductory message for the patch series.\n\n') + ui.write(_('\nWrite the introductory message for the patch series.\n\n')) sender = (opts['from'] or ui.config('patchbomb', 'from') or prompt('From', ui.username())) @@ -191,7 +191,7 @@ to = getaddrs('to', 'To') cc = getaddrs('cc', 'Cc', '') - ui.write('Finish with ^D or a dot on a line by itself.\n\n') + ui.write(_('Finish with ^D or a dot on a line by itself.\n\n')) body = [] @@ -206,7 +206,7 @@ ui.write('\n') if opts['diffstat']: - d = cdiffstat('Final summary:\n', jumbo) + d = cdiffstat(_('Final summary:\n'), jumbo) if d: msg.attach(MIMEText(d)) msgs.insert(0, msg)