Adapt to refactoring of Babel class in latest docutils.

This commit is contained in:
Georg Brandl 2011-01-05 18:06:08 +01:00
parent 86658c8b8d
commit dee8554dd8

View File

@ -102,8 +102,10 @@ class ExtBabel(Babel):
return '\\shorthandoff{"}' return '\\shorthandoff{"}'
return '' return ''
_ISO639_TO_BABEL = Babel._ISO639_TO_BABEL.copy() # in latest trunk, the attribute is called Babel.language_codes and already
_ISO639_TO_BABEL['sl'] = 'slovene' # includes Slovene
if hasattr(Babel, '_ISO639_TO_BABEL'):
Babel._ISO639_TO_BABEL['sl'] = 'slovene'
class Table(object): class Table(object):