Move gettext code not suitable for a header to gettext.cpp