using code from locales that help to run xgettext with different gettext versions.