Validation error messages with localized field and validation type

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • a.slyzhko
    Senior Member
    • Oct 2023
    • 117

    #1

    Validation error messages with localized field and validation type

    Currently, when a validation error occurs, the error message displays the internal field name and validation type. Example is in the attachments.

    This may be understandable for English-speaking users or developers, but for end-users who use EspoCRM in other languages, the error is confusing because it shows technical/internal names instead of translated ones.

    Feature request:
    Please improve validation error messages so that they display the localized field label and validation type (based on the user’s language) instead of the raw field name. This would make the system much clearer and more user-friendly for non-English users.
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9299

    #2
    It's not easy (though may seems as easy). The idea is that the frontend validation is applied in most of cases. The backend validation contains the information needed an API consumer, hence values are not translated. But there's no mechanism to translate them in the frontend.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • shalmaxb
      Senior Member
      • Mar 2015
      • 1725

      #3
      Two possibilities, that I use (not only for error search but also for formulas, because, I sometimes do not remeber the original fieldNames):

      check your i18n file for your entity/language, there you will have the pairs of fieldName and label, hence the translation of the technical field name.
      or
      upload the i18n fiel of your entity/label to a KI chat and ask to write a list with these pairs.

      The second possibility is the same as the first, but the output is a bit easier to rewd.

      Comment


      • yuri
        yuri commented
        Editing a comment
        The list of field names and their translations are available under Administration > Entity Manager > {Entity Type} > Fields. For each fields, it's also possible to view attributes and some their details.

      • shalmaxb
        shalmaxb commented
        Editing a comment
        sure, I know, but it can be handy to have the list printed or as a file to not having to switch to the entity manager.
    Working...