# How to control the validation language

**URL:** <https://community.modx.com/t/how-to-control-the-validation-language/7585>\
**Category:** Random\
**Tags:** settings\
**Created:** [March 3, 2024, 12:15pm UTC](https://community.modx.com/t/how-to-control-the-validation-language/7585 "2024-03-03T12:15:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pierrot10](https://community.modx.com/letter_avatar_proxy/v4/letter/p/bc79bd/32.png) [@pierrot10](https://community.modx.com/u/pierrot10)\
**Post date:** [March 3, 2024, 12:15pm UTC](https://community.modx.com/t/how-to-control-the-validation-language/7585/1 "2024-03-03T12:15:30Z")

</div>

Hi,

I installed Formit and I install MODx in french.  
Everythings seems to be infrench.

When I send my formular, there is french message for the empty field, but I aslo have that message:

> A form validation error occurred. Please check the values you have entered.

I am a bit surpise to have it in english.

Then I went to Setting -\>Lexique and filter all entries by ‘formit’. Additional, I can filter by english or french

 ![Screenshot 2024-03-03 at 13.12.10](https://modx-community.s3.dualstack.us-east-1.amazonaws.com/original/2X/2/20c2b45273d92eeb4f6d1adeb28430584a37e95b.png)

When I filter by french, as show above, I can see that some has not been translate, but it does matter. My problem, I can not find the text

> A form validation error occurred. Please check the values you have entered

then I can not translate it. Then, where is it? 🙂

Cheers

---

<div class="post-metadata">

**Author:** ![halftrainedharry](https://community.modx.com/user_avatar/community.modx.com/halftrainedharry/32/1063_2.png) [@halftrainedharry](https://community.modx.com/u/halftrainedharry)\
**Post date:** [March 3, 2024, 12:38pm UTC](https://community.modx.com/t/how-to-control-the-validation-language/7585/2 "2024-03-03T12:38:21Z")

</div>

Use the property `&validationErrorMessage` to define the error message.

* * *

> [@pierrot10](#):
>
> Then, where is it?

It’s here in the code. But don’t change it in the file. Use the corresponding property.

> <https://github.com/Sterc/FormIt/blob/8d9f91faa263de9c38d6f5912b92205d967076f2/core/components/formit/src/FormIt/Validator.php#L50>
