gendoc: don't translate topic strings twice (issue1760)
authorCédric Duval <cedricduval@free.fr>
Fri, 24 Jul 2009 12:20:40 +0200
changeset 9240 b6cb3af61582
parent 9233 d8244ebcedc2
child 9241 d98cef25b5af
child 9242 6fd3f795e908
gendoc: don't translate topic strings twice (issue1760)
doc/gendoc.py
--- a/doc/gendoc.py	Thu Jul 23 15:25:47 2009 -0500
+++ b/doc/gendoc.py	Fri Jul 24 12:20:40 2009 +0200
@@ -5,7 +5,7 @@
 sys.path.append(os.path.join('..', 'mercurial', 'pure'))
 from mercurial import demandimport; demandimport.enable()
 from mercurial.commands import table, globalopts
-from mercurial.i18n import gettext, _
+from mercurial.i18n import _
 from mercurial.help import helptable
 
 def get_desc(docstr):
@@ -102,11 +102,9 @@
 
     # print topics
     for names, section, doc in helptable:
-        underlined(gettext(section).upper())
+        underlined(section.upper())
         if callable(doc):
             doc = doc()
-        else:
-            doc = gettext(doc)
         ui.write(doc)
         ui.write("\n")