When loading the iflang package in a beamer presentation I get the warning Package iflang Warning: Mismatch between \language (patterns) (iflang) and setting of \languagename.
\documentclass{beamer}
\usepackage[english]{babel}
\usepackage{iflang}
\begin{document}
content...
\end{document}
This warning occurs regardless of whether I load the babel package or pass the language as class option as well.
If I change the document class from beamer to article I do not get this warning regardless of whether I load the babel package or pass the language as class option.
A question regarding this warning has been asked before, there however in the context of the article class (where I do not get this warning) and not in the context of pdflatex (because the polyglossia package was used). I have tried the three ways in the answer but I was unable to avoid the warning with any of them.
The beamer documentation section 2.6 Compatibility with Other Packages and Classes does not mention the iflang package.
I am using beamer 2013/12/02 3.33 and pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2015/dev/Debian) (preloaded format=pdflatex 2017.4.22).
Does this warning do any harm? How can I avoid it using the beamer class?