automatically check text when switching the language