Correct lookup logic for Qt translations

Fixes #1661