Mercurial > hg
changeset 8939:bc9ac7a29a73
keyword: make kwdemo more translation friendly
author | Christian Ebert <blacktrash@gmx.net> |
---|---|
date | Thu, 25 Jun 2009 09:53:47 +0200 |
parents | 9b8c9266c59d |
children | 01ada7b1861d |
files | hgext/keyword.py |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/keyword.py Wed Jun 24 19:15:58 2009 +0200 +++ b/hgext/keyword.py Thu Jun 25 09:53:47 2009 +0200 @@ -281,9 +281,6 @@ Override current keyword template maps with "default" option. ''' - def demostatus(stat): - ui.status(_('\n\t%s\n') % stat) - def demoitems(section, items): ui.write('[%s]\n' % section) for k, v in items: @@ -323,7 +320,7 @@ if k.endswith('keyword'): extension = '%s = %s' % (k, v) break - demostatus('config using %s keyword template maps' % kwstatus) + ui.status(_('\n\tconfig using %s keyword template maps\n') % kwstatus) ui.write('[extensions]\n%s\n' % extension) demoitems('keyword', ui.configitems('keyword')) demoitems('keywordmaps', kwmaps.iteritems()) @@ -346,7 +343,7 @@ ui.note('hg -R "%s" ci -m "%s"\n' % (tmpdir, msg)) repo.commit(text=msg) fmt = ui.verbose and ' in %s' % path or '' - demostatus('%s keywords expanded%s' % (kwstatus, fmt)) + ui.status(_('\n\t%s keywords expanded%s\n') % (kwstatus, fmt)) ui.write(repo.wread(fn)) ui.debug(_('\nremoving temporary repository %s\n') % tmpdir) shutil.rmtree(tmpdir, ignore_errors=True)