Hello, I've installed JoomFish, and translated the forms with the method of case selection of language of this post and works excellent.
Now, i want to translate the validators, I've tried the <title="You must enter..."> but its not quite effective, because are a lot of validations to do.
I looking for some multilanguage code like the case selection of the above link but with the validation labels, using any code in the mooValidator.js, but i've not idea on how to implement it.
Thanks in advance for any suggestions or comments.
Regards.
Bacardo!
Now, i want to translate the validators, I've tried the <title="You must enter..."> but its not quite effective, because are a lot of validations to do.
I looking for some multilanguage code like the case selection of the above link but with the validation labels, using any code in the mooValidator.js, but i've not idea on how to implement it.
Thanks in advance for any suggestions or comments.
Regards.
Bacardo!
Hi bacardo,
A couple of suggestions - you can of course edit moovalidation.js which is not too difficult, you'd then need to hack the code to load in different versions for different languages.
Alternatively, you could use the title approach and use some PHP defines to set the translations only once
Bob
A couple of suggestions - you can of course edit moovalidation.js which is not too difficult, you'd then need to hack the code to load in different versions for different languages.
Alternatively, you could use the title approach and use some PHP defines to set the translations only once
<?php
define('CF_ENTRY_REQUIRED'='An entry is required');
. . .
?>
. . .
<input . . . title='<?php echo CF_ENTRY_REQUIRED; ?>' . . ./>
Bob
Hello Bob, as usual your replies are really fast, and I'm glad of your dedication to the community.
I'm a novice programmer, my point is the design really, so I'd a little questions:
Where I can define those language constants only once (in what file)?
And... Is there a way to use the moovalidator and not override it? because i use different validations, like required , validate-number, validate-email, validate-url, validate-date-au, and overriding not works in all cases, i want to keep the validations, are really useful.
Thanks in advance.
Bacardo.
I'm a novice programmer, my point is the design really, so I'd a little questions:
Where I can define those language constants only once (in what file)?
And... Is there a way to use the moovalidator and not override it? because i use different validations, like required , validate-number, validate-email, validate-url, validate-date-au, and overriding not works in all cases, i want to keep the validations, are really useful.
Thanks in advance.
Bacardo.
Hi Bacardo,
following Bob's code example, you can do this in the form HTML code box and in this case you will not edit the mooValidation file at all!
Regards
Max
following Bob's code example, you can do this in the form HTML code box and in this case you will not edit the mooValidation file at all!
Regards
Max
This topic is locked and no more replies can be posted.