# HG changeset patch # User Cédric Duval # Date 2009-07-24 10:20:40 # Node ID b6cb3af61582d79c0af507e138d2b375f81ff4b6 # Parent d8244ebcedc29c456d11060b564cb55a23a2a0ac gendoc: don't translate topic strings twice (issue1760) diff --git a/doc/gendoc.py b/doc/gendoc.py --- a/doc/gendoc.py +++ b/doc/gendoc.py @@ -5,7 +5,7 @@ sys.path.insert(0, "..") 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 @@ def show_doc(ui): # 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")