fixes #2942 - plugin i18n support

WIP do not merge

@domcleal - these changes are necessary to test discovery gettext - change
the path in the bundle.d