I am currently writing a class and there I need to test the current language.
Therefore I use the package iflang. A strange warning pops up when I change
the default language, consider:
\documentclass{article}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\usepackage{iflang}
\begin{document}
\makeatletter
\noindent PATT: \the\l@dutch \\
LANG: \the\language
\makeatother
\end{document}
The code does not produce any warnings, but if I change the code to \setdefaultlanguage{dutch}, the package iflang produces a warning:
Package iflang Warning: Mismatch between \language (patterns)
(iflang) and setting of \languagename.
despite the two variables having the same value. Is this a bug in the package?