Explicitly pass the language

This avoids depending on a particular layout of the admin screen.
Second place where the same code is used
Use type-safe comparisons
Merge pull request #1778 from patrys/language-fix

Explicitly pass the language