def text_for_label(self, label, style):
        """Translate text for label."""
        try:
            text = self.docutils_languages[
                        self.style_language(style)].labels[label]
        except __HOLE__:
            text = label.capitalize()
        return text
dataset/ETHPy150Open rst2pdf/rst2pdf/rst2pdf/createpdf.py/RstToPdf.text_for_label