diff options
author | Melissa Draper <melissa@catalyst.net.nz> | 2012-05-10 23:30:30 +1200 |
---|---|---|
committer | Melissa Draper <melissa@catalyst.net.nz> | 2012-05-10 23:30:30 +1200 |
commit | 1d634d64c2c3aeaaaeb30e685baf7808e31ec867 (patch) | |
tree | d60d4bff16b7bc2b324b3bbdafe2a368a085d0f3 | |
parent | dd72c354bcdb9a32e774c37ac83f4017caa89d2b (diff) | |
download | sphinx-1d634d64c2c3aeaaaeb30e685baf7808e31ec867.tar.gz |
Added language names to the shorthandoff helper
Docutils 0.8.1 reports full language names not codes
-rw-r--r-- | sphinx/writers/latex.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index f2ebad36..e5ef3a61 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -100,7 +100,8 @@ class LaTeXWriter(writers.Writer): 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 '' |