Fixed message dialogs not being displayed.

Also other translation-related fixes. Fixes #308.