I'm trying to move to a modern LaTeX setup, by using LuaLaTex, polyglossia, glossaries + xindy.
When I create a German document with a glossary, the title of the glossary correctly changes to "Glossar", the German translation of glossary.
If I add \usepackage{siunitx}
to load siunitx, translation will break - the title of the glossary will change back to "Glossary".
Example (compile with lualatex + makeglossaries + lualatex):
\documentclass{article}
\usepackage{fontspec}
\usepackage{polyglossia}
\setdefaultlanguage{german}
\usepackage{siunitx}
\usepackage[xindy]{glossaries}
\makeglossaries
\newglossaryentry{a}{name = ä, description = A Umlaut}
\begin{document}
\printglossaries
Testing the entry: \gls{a}.
\end{document}
Removing the line to load siunitx
will fix this problem, as will loading translator
explicity (before loading siunitx
) with \usepackage[german]{translator}
.
I believe this happens because siunitx.sty
loads translator
without any language options with \RequirePackage { translator }
.
I'm not an expert, so I'm not sure if this behaviour is to be expected. But from a user's perspective, it seems siunitx breaks translation. Is this a bug? If so, in which package, and who should I report this to?
One other thing: xindy will report Cannot locate xindy module for language german in codepage utf8
, and will switch to language general
, unless I add \GlsSetXdyCodePage{duden-utf8}
. Is this a bug?
siunitx
package with the optionlocale=DE
? – Mico Sep 13 '14 at 18:21locale=DE
option - I just removed it for the minimal example. It doesn't affect this translation issue, it only changes things like commas as decimal separators. – tdlrali Sep 13 '14 at 19:15siunitx
's fault, nice catch! I'm using XeLaTeX, not LuaLaTeX, but the problem seems to be fixed ifsiunitx
is loaded afterglossaries
, without needing to explicitly loadtranslator
. Can you confirm? – Zé Loff Sep 14 '14 at 2:30siunitx
afterglossaries
. But I hate all these load order dependencies, especially sincehyperref
's manual statesMake sure it comes last of your loaded packages
, and theglossaries
manual statesyou should load the hyperref package before the glossaries package
. From a user's perspective, it shouldn't matter when I loadsiunitx
... I believe this problem occurs becausesiunitx
doesn't usepolyglossia
correctly, or usestranslator
incorrectly. I'll try to getsiunitx
's author to notice this post. – tdlrali Sep 14 '14 at 8:28