Adding lang var for showing error message -refs #6373