1. Antonio Valentino
  2. sphinx


Melissa Draper  committed 1648861 Draft

Added language names to the shorthandoff helper

Docutils 0.8.1 reports full language names not codes

  • Participants
  • Parent commits 8f0aca7
  • Branches stable

Comments (0)

Files changed (1)

File sphinx/writers/latex.py

View file
  • Ignore whitespace
 class ExtBabel(Babel):
     def get_shorthandoff(self):
         shortlang = self.language.split('_')[0]
-        if shortlang in ('de', 'sl', 'pt', 'es', 'nl', 'pl', 'it'):
+        if shortlang in ('de', 'ngerman', 'sl', 'slovene', 'pt', 'portuges', 'es', 'spanish',
+                         'nl', 'dutch', 'pl', 'polish', 'it', 'italian'):
             return '\\shorthandoff{"}'
         return ''