Closed (duplicate)
Project:
Security Questions
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Feb 2013 at 15:25 UTC
Updated:
26 Feb 2013 at 15:30 UTC
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
Comment #1
muriqui commentedMarking this as a duplicate of #1655148: How to make question multi-lingual?.
Comment #1.0
muriqui commentedAdd information.