ebc7bd
------------------------
ebc7bd
diff -r 6c54df68d1de doc/hgmanpage.py
ebc7bd
--- a/doc/hgmanpage.py     Thu Jun 02 08:41:01 2011 -0500
ebc7bd
+++ b/doc/hgmanpage.py     Thu Jun 02 08:45:18 2011 -0500
ebc7bd
@@ -48,6 +48,7 @@
ebc7bd
 
ebc7bd
 from docutils import nodes, writers, languages
ebc7bd
 import roman
ebc7bd
+import inspect
ebc7bd
 
ebc7bd
 FIELD_LIST_INDENT = 7
ebc7bd
 DEFINITION_LIST_INDENT = 7
ebc7bd
@@ -160,7 +161,11 @@
ebc7bd
         nodes.NodeVisitor.__init__(self, document)
ebc7bd
         self.settings = settings = document.settings
ebc7bd
         lcode = settings.language_code
ebc7bd
-        self.language = languages.get_language(lcode)
ebc7bd
+        arglen=len(inspect.getargspec(languages.get_language)[0])
ebc7bd
+        if arglen == 2:
ebc7bd
+          self.language = languages.get_language(lcode,self.document.reporter)
ebc7bd
+        else:
ebc7bd
+          self.language = languages.get_language(lcode)
ebc7bd
         self.head = []
ebc7bd
         self.body = []
ebc7bd
         self.foot = []