[PATCH 1 of 5] i18n, convert: mark command line options for translation
Martin Geisler
mg at daimi.au.dk
Sat Sep 6 14:36:45 UTC 2008
# HG changeset patch
# User Martin Geisler <mg at daimi.au.dk>
# Date 1220709517 -7200
# Node ID d69d85cd80eefc9a42dc0a51eedf6785b7174bee
# Parent 4e62be0208d3465cf241d8fb6fb7c9ce125a490b
i18n, convert: mark command line options for translation
diff --git a/hgext/convert/__init__.py b/hgext/convert/__init__.py
--- a/hgext/convert/__init__.py
+++ b/hgext/convert/__init__.py
@@ -8,6 +8,7 @@
import convcmd
from mercurial import commands
+from mercurial.i18n import _
# Commands definition was moved elsewhere to ease demandload job.
@@ -181,14 +182,14 @@
cmdtable = {
"convert":
(convert,
- [('A', 'authors', '', 'username mapping filename'),
- ('d', 'dest-type', '', 'destination repository type'),
- ('', 'filemap', '', 'remap file names using contents of file'),
- ('r', 'rev', '', 'import up to target revision REV'),
- ('s', 'source-type', '', 'source repository type'),
- ('', 'splicemap', '', 'splice synthesized history into place'),
- ('', 'datesort', None, 'try to sort changesets by date')],
- 'hg convert [OPTION]... SOURCE [DEST [REVMAP]]'),
+ [('A', 'authors', '', _('username mapping filename')),
+ ('d', 'dest-type', '', _('destination repository type')),
+ ('', 'filemap', '', _('remap file names using contents of file')),
+ ('r', 'rev', '', _('import up to target revision REV')),
+ ('s', 'source-type', '', _('source repository type')),
+ ('', 'splicemap', '', _('splice synthesized history into place')),
+ ('', 'datesort', None, _('try to sort changesets by date'))],
+ _('hg convert [OPTION]... SOURCE [DEST [REVMAP]]')),
"debugsvnlog":
(debugsvnlog,
[],
More information about the Mercurial-devel
mailing list