summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelissa Draper <melissa@catalyst.net.nz>2012-05-10 23:30:30 +1200
committerMelissa Draper <melissa@catalyst.net.nz>2012-05-10 23:30:30 +1200
commit1d634d64c2c3aeaaaeb30e685baf7808e31ec867 (patch)
treed60d4bff16b7bc2b324b3bbdafe2a368a085d0f3
parentdd72c354bcdb9a32e774c37ac83f4017caa89d2b (diff)
downloadsphinx-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.py3
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 ''