Fix compatibility with translation plugin

Fixes #22