Hi developers,
I am trying to get the list options in a form to translate, but so far no luck. I can’t find how to code it properly. Tried the first option of the array to translate but it throws a syntax error:
in my new_form.class.php I have:
var $consciousness
var $consciousness_array = array("1" => '<?php echo xl('bright and alert'); ?>', "2" => "uncontrolled/hyperexcitable", "3" => "sopor", "4" => "stupor", "5" => "coma");
How do I do this? The only way the list is working is when I changed some " or ’ characters but then it only shows the code in the list and not the translation.
In my general_new.html it reads, and it works…:
{html_options name="consciousness" selected=$data->get_consciousness() options=$data->consciousness_array}
I am doing something wrong with " or ', but can’t figure it out. Any help greatly appreciated.
Roland