Correct html lang attributes with current language

Changed core getLanguage function to return formatted country code for usage (for example in the header).