I think the point here is that the plugin is not his own, and it
wasn't coded to support localisation. But I reckon that using that
approach, if possible, would make maintenance easier.
BTW, the jQuery validation plugin seems to support localization by
default:
http://bassistance.de/jquery-plugin
The easiest way to setup for localizations is to do local aliases for
basically anything important.
The idea is to have definition files (like localization.fr.js,
localization.en.js) and abstracted variable names. For instance, you'd
do things like:
jQuery.fn[loc.validationEngine] = function(set
allRules appears to be a var (global?) inside the validationEngine
function, not a property. Isn't it easier to just rewrite the whole
validation js?
On Feb 6, 12:46 pm, Karnius wrote:
> Hi guys, I got a plugin I want to do the localisation in french. I
> decided to go with a similar solution of
3 matches
Mail list logo