changeset 6999:f1546aa94362

i18n, convert: mark command line options for translation
author Martin Geisler <mg@daimi.au.dk>
date Sat, 06 Sep 2008 17:43:59 +0200
parents ddfcefab8b97
children af694c6a888c
files hgext/convert/__init__.py
diffstat 1 files changed, 9 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/__init__.py	Sat Sep 06 17:04:01 2008 +0200
+++ b/hgext/convert/__init__.py	Sat Sep 06 17:43:59 2008 +0200
@@ -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,
          [],