fixed translation check suggested by https://github.com/TiagoTT