gettext: change depricated and removed setlocale