jQuery validation plugin localization
Permalink
I am working on some code that uses the jquery validation plugin. This does front end validation of form elements with messages such as 'Input required'. These messages are completely within the jQuery, so cannot be used with t('') in php.
However, with the plugin are a whole host of jquery language files selectable by language code with appropriate translations. What I would like to do is load the appropriate jquery language file for the current C5 localization.
Has anyone done this and can offer tips?
Can anyone advise how in php & C5 to get the current language code? (I can probably work out the rest from that)
However, with the plugin are a whole host of jquery language files selectable by language code with appropriate translations. What I would like to do is load the appropriate jquery language file for the current C5 localization.
Has anyone done this and can offer tips?
Can anyone advise how in php & C5 to get the current language code? (I can probably work out the rest from that)