include the correct language and direction in the html element. fixes #1930. fixes...