Replace translation function