changeset 7000:af694c6a888c

i18n, hgk: mark command line options for translation
author Martin Geisler <mg@daimi.au.dk>
date Sat, 06 Sep 2008 17:44:01 +0200
parents f1546aa94362
children 9a32b8a6868e
files hgext/hgk.py
diffstat 1 files changed, 20 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/hgk.py	Sat Sep 06 17:43:59 2008 +0200
+++ b/hgext/hgk.py	Sat Sep 06 17:44:01 2008 +0200
@@ -323,34 +323,34 @@
 cmdtable = {
     "^view":
         (view,
-         [('l', 'limit', '', 'limit number of changes displayed')],
-         'hg view [-l LIMIT] [REVRANGE]'),
+         [('l', 'limit', '', _('limit number of changes displayed'))],
+         _('hg view [-l LIMIT] [REVRANGE]')),
     "debug-diff-tree":
         (difftree,
-         [('p', 'patch', None, 'generate patch'),
-          ('r', 'recursive', None, 'recursive'),
-          ('P', 'pretty', None, 'pretty'),
-          ('s', 'stdin', None, 'stdin'),
-          ('C', 'copy', None, 'detect copies'),
-          ('S', 'search', "", 'search')],
-         'hg git-diff-tree [OPTION]... NODE1 NODE2 [FILE]...'),
+         [('p', 'patch', None, _('generate patch')),
+          ('r', 'recursive', None, _('recursive')),
+          ('P', 'pretty', None, _('pretty')),
+          ('s', 'stdin', None, _('stdin')),
+          ('C', 'copy', None, _('detect copies')),
+          ('S', 'search', "", _('search'))],
+         _('hg git-diff-tree [OPTION]... NODE1 NODE2 [FILE]...')),
     "debug-cat-file":
         (catfile,
-         [('s', 'stdin', None, 'stdin')],
-         'hg debug-cat-file [OPTION]... TYPE FILE'),
+         [('s', 'stdin', None, _('stdin'))],
+         _('hg debug-cat-file [OPTION]... TYPE FILE')),
     "debug-config":
-        (config, [], 'hg debug-config'),
+        (config, [], _('hg debug-config')),
     "debug-merge-base":
-        (base, [], 'hg debug-merge-base node node'),
+        (base, [], _('hg debug-merge-base node node')),
     "debug-rev-parse":
         (revparse,
-         [('', 'default', '', 'ignored')],
-         'hg debug-rev-parse REV'),
+         [('', 'default', '', _('ignored'))],
+         _('hg debug-rev-parse REV')),
     "debug-rev-list":
         (revlist,
-         [('H', 'header', None, 'header'),
-          ('t', 'topo-order', None, 'topo-order'),
-          ('p', 'parents', None, 'parents'),
-          ('n', 'max-count', 0, 'max-count')],
-         'hg debug-rev-list [options] revs'),
+         [('H', 'header', None, _('header')),
+          ('t', 'topo-order', None, _('topo-order')),
+          ('p', 'parents', None, _('parents')),
+          ('n', 'max-count', 0, _('max-count'))],
+         _('hg debug-rev-list [options] revs')),
 }