translation function ready for testing