Removing gettext and using a translate function with dictionary as translation table