store the language so that error messages can be localized