From d4a7b298a6eb62abb33c001f124ca9477f0afd84 Mon Sep 17 00:00:00 2001 From: Darko Poljak Date: Thu, 15 Mar 2018 13:49:22 +0100 Subject: [PATCH] Return translator_class for older sphinx versions. --- cdist/sphinxext/manpage.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cdist/sphinxext/manpage.py b/cdist/sphinxext/manpage.py index a436421d..135fe22e 100644 --- a/cdist/sphinxext/manpage.py +++ b/cdist/sphinxext/manpage.py @@ -27,6 +27,8 @@ class ManualPageWriter(sphinx.writers.manpage.ManualPageWriter): def __init__(self, builder): super().__init__(builder) + self.translator_class = ( + self.builder.translator_class or ManualPageTranslator) class ManualPageBuilder(sphinx.builders.manpage.ManualPageBuilder):