CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Translation of validation messages

by assapan » 06 May 2014 11:13

Hi,
i use TIWCGJQedit for emails and i'd want to translate the messages like "This field is required" , "Please enter a valid email address." .
I haven't been able to found where they are :(
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by Jorge Sousa » 06 May 2014 11:22

Hi

In each Rule, you can set the property
ErrorMessage
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by assapan » 06 May 2014 11:42

Hi,
thanks , if i understand well , if the error message is empty it displays a default text ? if yes it could be easier for us to find where to translate if the property had the default value.
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by Alexander Bulei » 06 May 2014 12:07

Hi assapan,

Another solution is download localization file from here:

https://github.com/jzaefferer/jquery-validation/tree/master/src/localization

And include in ContentFiles, e.g:

delphi code
ContentFiles.Add('/data/messages_fr.js');


Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to JQEdit

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.