Commits

ral...@hp  committed 871b59b

pass language for hyphenation correctly

  • Participants
  • Parent commits 0ac5ae8

Comments (0)

Files changed (1)

File sphinx/writers/pdf.py

         self.builder = builder
         self.output = ''
         self.stylesheets = stylesheets
-        self.language = language
+        self.__language = language
         self.breaklevel = int(breaklevel)
         self.fontpath = fontpath
         self.fitmode = fitmode
         sio=StringIO('')
         createpdf.RstToPdf(sphinx=True,
                  stylesheets=self.stylesheets,
-                 # FIXME
-                 language='en_US',
+                 language=self.__language,
                  breaklevel=self.breaklevel,
                  fit_mode=self.fitmode,
                  font_path=self.fontpath,