Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Validator Error Message & Localization

    Hi,

    I've configured the following validator in the xml :

    Code:
    <field name="NAME" type="text" title="$name" required="true">
    <validators>
     <validator type="regexp" expression="^[^()!?:;,#~]*$" requiresServer="true" errorMessage="The name contains invalid characters."/>
     </validators>    
    </field>
    We would like to be able to 'localize' the error message... i.e, put a key instead which will be dynamically translated on the client side, using the client's locale.

    Any advice about how we could achieve this using your API's would be greatly appreciated!

    Thanks,
    Thomas

    #2
    In the Internationalization overview there's a dedicated section on DataSource localization.

    Comment


      #3
      That's exactly what I was looking for.
      Thank you very much.

      Thomas

      Comment

      Working...
      X