Show More
@@ -48,6 +48,7 b' import re' | |||||
48 |
|
48 | |||
49 | from docutils import nodes, writers, languages |
|
49 | from docutils import nodes, writers, languages | |
50 | import roman |
|
50 | import roman | |
|
51 | import inspect | |||
51 |
|
52 | |||
52 | FIELD_LIST_INDENT = 7 |
|
53 | FIELD_LIST_INDENT = 7 | |
53 | DEFINITION_LIST_INDENT = 7 |
|
54 | DEFINITION_LIST_INDENT = 7 | |
@@ -160,7 +161,12 b' class Translator(nodes.NodeVisitor):' | |||||
160 | nodes.NodeVisitor.__init__(self, document) |
|
161 | nodes.NodeVisitor.__init__(self, document) | |
161 | self.settings = settings = document.settings |
|
162 | self.settings = settings = document.settings | |
162 | lcode = settings.language_code |
|
163 | lcode = settings.language_code | |
163 |
|
|
164 | arglen = len(inspect.getargspec(languages.get_language)[0]) | |
|
165 | if arglen == 2: | |||
|
166 | self.language = languages.get_language(lcode, | |||
|
167 | self.document.reporter) | |||
|
168 | else: | |||
|
169 | self.language = languages.get_language(lcode) | |||
164 | self.head = [] |
|
170 | self.head = [] | |
165 | self.body = [] |
|
171 | self.body = [] | |
166 | self.foot = [] |
|
172 | self.foot = [] |
General Comments 0
You need to be logged in to leave comments.
Login now