Hi,

with lualatex Sphinx uses LaTeX package polyglossia
not LaTeX package babel (however if you override the
'babel' key of latex_elements you can force use of babel
in place of polyglossia; I do this for French)

Turns out polyglossia indeed does not recognize "ngerman"
(which is regrettable in terms of facilitating to LaTeX
users converting babel-using pdflatex sources to polyglossia-
lualatex sources) but handles "german" as babel
does for "ngerman", i.e. by default it does use the
hyphenation patterns for reformed (1996) orthography.

Simplest is to follow @tk0miya advice so that polyglossia
does get the "german" it expects

As per the non-translated strings I asked to join
the transifex German team, so I can push your suggestion
once I have the access rights ...

(or the German Sphinx translators will do it before that)

You can use the 'preamble' key of latex_elements to
insert your translations, without having to post-process
the TeX file. Your renewcommand's will overwrite those
inserted a bit earlier in the preamble from the LaTeX template.

Best,

Jean-François

Le 02/03/2018 à 17:24, Komiya Takeshi a écrit :
Hi,

The "ngerman" came from docutils implementation.
How about updating it from conf.py like following?
```
import docutils.writers.latex2e
docutils.writers.latex2e.Babel.language_codes['de'] = 'german'
```

And \literalblockcontinuesname is not set to a german string at all.
I think at least the latter issue is a bug.

Simply it's not translated yet. It seems some messages are not
translated to German.
We're always welcome your contributions :-)
http://www.sphinx-doc.org/en/master/devguide.html#locale-updates

Thanks,
Takeshi KOMIYA

2018-02-27 20:44 GMT+09:00 Jan Ulrich Hasecke <juh+sphinx-us...@mailbox.org>:
Hi all,

I don't get german chapternames etc. when I compile my project.

The problem seems to be that lualatex does not know the language ngerman.

I edited the tex-file until I get the desired output.

Here is the diff.

10c10
< \documentclass[letterpaper,10pt,ngerman]{sphinxmanual}
---
\documentclass[letterpaper,10pt,german]{sphinxmanual}
21c21
< \setmainlanguage{ngerman}
---
\setmainlanguage{german}
55,57c55,57
< \addto\captionsngerman{\renewcommand{\figurename}{Abb.}}
< \addto\captionsngerman{\renewcommand{\tablename}{Tab.}}
< \addto\captionsngerman{\renewcommand{\literalblockname}{Quellcode}}
---
\addto\captionsgerman{\renewcommand{\figurename}{Abb.}}
\addto\captionsgerman{\renewcommand{\tablename}{Tab.}}
\addto\captionsgerman{\renewcommand{\literalblockname}{Quellcode}}
59,60c59,60
<
\addto\captionsngerman{\renewcommand{\literalblockcontinuedname}{Fortsetzung
der vorherigen Seite}}
<
\addto\captionsngerman{\renewcommand{\literalblockcontinuesname}{continues
on next page}}
---

\addto\captionsgerman{\renewcommand{\literalblockcontinuedname}{Fortsetzung
der vorherigen Seite}}

\addto\captionsgerman{\renewcommand{\literalblockcontinuesname}{Fortsetzung
auf der nächsten Seite}}
183c183

As you can see I switched from "ngerman" to "german".

And \literalblockcontinuesname is not set to a german string at all.

I think at least the latter issue is a bug.

Is there something special I have to set in conf.py to get the right output?


juh


--
Das ZEN von Pandoc
Bücher und E-Books einfach und professionell produzieren
http://www.amazon.de/Das-ZEN-von-Pandoc-professionell/dp/1505218799/
Paperback (232 Seiten) und E-Book

--
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To post to this group, send email to sphinx-users@googlegroups.com.
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.



--
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To post to this group, send email to sphinx-users@googlegroups.com.
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to