added translation function