At validation, the required message is not translated because form.inc uses !name instead of !title.
The form_error should be as follows:

function checkbox_validate_element_validate($element, &$form_state) {
  if (empty($element['#value'])) {
    form_error($element, t('!name field is required.', array('!name' => filter_xss_admin($element['#title']))));
  }
}

Thanks,
John

Comments

sashainparis’s picture

In SVN: not the same name function but seems to be OK

function checkbox_validate_validation($element) {
  if (empty($element['#value'])) form_error($element, t('!title field is required.', array('!title' => filter_xss_admin(($element['#title'])))));
  return;
}

Is your code updated from svn?

Alexandre

realityloop’s picture

Status: Active » Closed (fixed)

These changes are in current D6 release