Fixes a bug with widgets translations.

Fixes #313.