Mercurial > hg
comparison hgext/gpg.py @ 9183:d0225fa2f6c4
do not translate commit messages
It is not very helpful to have 'Added tag %s for changeset %s' and
similar messages translated into different languages when people work
together using different locales.
We now use English strings without support for translations. If
needed, the user can still supply a custom string for most commands.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Wed, 22 Jul 2009 22:50:34 +0200 |
parents | 9dda4c73fc3b |
children | 25e572394f5c |
comparison
equal
deleted
inserted
replaced
9182:3a319bc8906d | 9183:d0225fa2f6c4 |
---|---|
249 if opts["no_commit"]: | 249 if opts["no_commit"]: |
250 return | 250 return |
251 | 251 |
252 message = opts['message'] | 252 message = opts['message'] |
253 if not message: | 253 if not message: |
254 message = "\n".join([_("Added signature for changeset %s") | 254 # we don't translate commit messages |
255 message = "\n".join(["Added signature for changeset %s" | |
255 % hgnode.short(n) | 256 % hgnode.short(n) |
256 for n in nodes]) | 257 for n in nodes]) |
257 try: | 258 try: |
258 m = match.exact(repo.root, '', ['.hgsigs']) | 259 m = match.exact(repo.root, '', ['.hgsigs']) |
259 repo.commit(message, opts['user'], opts['date'], match=m) | 260 repo.commit(message, opts['user'], opts['date'], match=m) |