Original PHP-gettext implementation