allow for custom scala gettext function from configuration