Move gettext() to global where it should be
Merge pull request #2514 from darkwing/gettext-global

Move gettext() to global where it should be