Fix error when missing gettext function
Add missing functions which was delete by merge