mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Adapt to refactoring of Babel class in latest docutils.
This commit is contained in:
parent
86658c8b8d
commit
dee8554dd8
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user