Check*: Tolerate variables set with names of languages

Fix the language checks added by !5223 (merged) and !5281 (merged) to work when variables of the language names are set.

Fixes: #21500 (closed)
Backport: release

Merge request reports

Loading