Hi,

To translate the auto-generated questions is neccesary to reemplace $form['security_question'] for this code:

	$opt=array();
	foreach($options AS $_c=>$_v){
		$opt[$_c]=t($_v);
	}
  $form['security_question'] = array(
    '#type' => 'select',
    '#required' => TRUE,
    '#options' => $opt,
    '#title' => t('Question'),
    '#default_value' => $qid,
  );

Line: 377. security_questions.php


And replace $q->sc for t($q->sc) here:

  while ($q = db_fetch_object($questions)) {
    $options[$q->qid] = t($q->sc);
  }

Line: 521. security_questions.php


And add t() to this line::

t(check_plain($row->security_question)),

Line: 259. security_questions.php


Regards.

Comments

muriqui’s picture

Status: Active » Closed (duplicate)

Marking this as a duplicate of #1655148: How to make question multi-lingual?.

muriqui’s picture

Issue summary: View changes

Add information.