Fix gettext method