Fix references to configured languages. Fixes #1579