added translation function to headings