Hi tsili,
Here's a workaround - but it involves hacking the code in administrator/components/com_chronoforms/form_actions/cfaction_show_html.php
Find this line around line 173
$document->addScript($CF_PATH.'components/com_chronoforms/js/formcheck/lang/'.$form->form_params->get('jsvalidation_lang', 'en').'.js');
and replace it with this code:
$short_tag = $form->form_params->get('jsvalidation_lang', '');
if ( !$short_tag ) {
$lang =& JFactory::getLanguage();
$tag = $lang->getTag();
$dtag = $lang->getDefault();
if ( !$tag ) {
$tag = $dtag;
}
$short_tag = strstr($tag, '-', true);
}
jimport('joomla.filesystem.file');
$lang_path = JPATH_SITE.DS.'components'.DS.'com_chronoforms'.DS.'js'.DS.'formcheck'.DS.'lang'.DS;
if ( !JFile::exists($lang_path.$short_tag.'.js') ) {
$short_tag = 'en';
}
$script = $CF_PATH.'components/com_chronoforms/js/formcheck/lang/'.$short_tag.'.js';
$document->addScript($script);
//$document->addScript($CF_PATH.'components/com_chronoforms/js/formcheck/lang/'.$form->form_params->get('jsvalidation_lang', 'en').'.js');
This looks first to see if a language is configured in the form General tab;
if not then it looks for the currently set user language;
if that isn't set it uses the site default language.
It will load that language file if it exists; or, if it doesn't exist, the English language file.
I'll go and add this to my customised Show HTML [GH] action shortly.
Bob
Later: the updated Show HTML [GH] action is available
here