On Sun, Apr 21, 2019 at 06:57:46AM -0500, George Feng wrote: > On Sun, Apr 21, 2019 at 6:42 AM Geert Stappers wrote: > > Hello, > > > > Here a dutch guy. The language of my audiance and me is 'nl'. In the > > conf.py I do have > > > > language = 'nl' > > > > When I do > > > > make latexpdf > > > > there is "chapter" in the generated layout, where I would like to get > > the translated word. > > > > > > Is it an incomplete translation that I'm facing? If so, where to update > > the ".po" ?? > > > > > > Is it me doing incomplete `make latexpdf`? Should I add parameter? Or > > prefix with something like 'SPHINX_LANG=nl' ?? > > > Hi there, > > You way try to add the corresponding language package (demo for Chinese) > in the following way: > > latex_elements['preamble'] = '\\usepackage{xeCJK}\n' > > Hope it will help you!
My three attempts failed. ( see below how ) How to get the generated string 'chapter' into local language generated?? > Best Wishes --- a/source/conf.py +++ b/source/conf.py @@ -126,6 +126,37 @@ latex_elements = { # 'figure_align': 'htbp', } +#latex_elements['preamble'] = '\\usepackage{nl}\n' +# ! LaTeX Error: File `nl.sty' not found. + +#latex_elements['preamble'] = '\\usepackage{dutch}\n' +# (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/hypcap.sty) +# (/usr/share/texlive/texmf-dist/tex/generic/babel/dutch.sty +# +# ! Package babel Error: You are loading directly a language style. +# (babel) This syntax is deprecated and you must use +# (babel) \usepackage[language]{babel}. + +#latex_elements['preamble'] = '\\usepackage[nl]{babel}\n' +# +# ! LaTeX Error: Option clash for package babel. +# +# See the LaTeX manual or LaTeX Companion for explanation. +# Type H <return> for immediate help. +# ... +# +# l.62 +# +# ? H +# The package babel has already been loaded with options: +# [] +# There has now been an attempt to load it with options +# [nl] +# Adding the global options: +# ,nl +# to your \documentclass declaration may fix this. + + # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). Groeten Geert Stappers -- 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.