messages if languages are tested in a group
u-fischer opened this issue · 1 comments
u-fischer commented
The following document tests languages in a group:
\documentclass{book}
\usepackage{polyglossia}
\setmainlanguage{english}
\begin{document}
%\IfLanguageDefinedTF{german}{}{}
{\IfLanguageDefinedTF{german}{}{}}
{\IfLanguageDefinedTF{german}{}{}}
{\IfLanguageDefinedTF{german}{}{}}
{\IfLanguageDefinedTF{german}{}{}}
{\IfLanguageDefinedTF{german}{}{}}
{\IfLanguageDefinedTF{german}{}{}}
xxx
\end{document}
This leads to lots of messages in the log:
Module polyglossia Info: Language german was not yet loaded; created with id 2 o
n input line 86
Module polyglossia Info: Language german already loaded; id is 2 on input line 8
7
Module polyglossia Info: Language german already loaded; id is 2 on input line 8
8
Module polyglossia Info: Language german already loaded; id is 2 on input line 8
9
Module polyglossia Info: Language german already loaded; id is 2 on input line 9
0
Module polyglossia Info: Language german already loaded; id is 2 on input line 9
1
If the first test is outside a group only the first message is issued.
This is a problem for biblatex, see plk/biblatex#1393.
I don't know where this at best fixed, but it would be nice if that could be resolved.
Udi-Fogiel commented
Thanks, should be fixed. I'll probably clean things a bit as well. Although i must wonder why would someone test \IfLanguageDefinedTF{german}{}{}
more than once, either a pattern is available in a TeX installation or it is not, it can not change during compilation time can it?