The default messages are defined in $.validator.messages, and you can
overwrite those. Take a look at the existing localizations, eg.
http://jqueryjs.googlecode.com/svn/trunk/plugins/validate/localization/messages_es.js

The bracket issue is documented here:
http://docs.jquery.com/Plugins/Validation/Reference#Fields_with_complex_names_.28brackets.2C_dots.29

Jörn

On Wed, May 27, 2009 at 7:52 AM, elischer.flor...@googlemail.com
<elischer.flor...@googlemail.com> wrote:
>
> Hi,
> I need to localize my validation plugin in general. Hence I thought
> I have to override the default code with this one:
> ---------------------------------------------------------------------------------------------
> //further language validation
>   $(".myForm").validate({
>      messages: {
>         required: "Other language text."
>      }
>   });
> --------------------------------------------------------------------------------------------
> But it's not working. Another problem is, that I can't access input
> names
> like this > name="xyz[1]" Is there a workaround as the brackets seem
> to be the problem?
>
> thx
> TC
>

Reply via email to