--- loncom/homework/chemresponse.pm 2013/01/15 18:09:43 1.91 +++ loncom/homework/chemresponse.pm 2014/02/13 18:13:22 1.93 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # chemical equation style response # -# $Id: chemresponse.pm,v 1.91 2013/01/15 18:09:43 raeburn Exp $ +# $Id: chemresponse.pm,v 1.93 2014/02/13 18:13:22 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -87,7 +87,7 @@ JMESECTION my $insert_answer; if ($shown_text eq '') { $insert_answer= - ''; + ''; } my $js = < 1,}); my $java_not_enabled=&Apache::lonhtmlcommon::java_not_enabled(); + my %lt = &Apache::lonlocal::texthash( + 'seltext' => 'Select substituent...', + 'close' => 'Close', + 'help' => 'Help', + ); my $body=< - + - Select substituent + $lt{'seltext'} -C(=O)OH -C(=O)OMe -OC(=O)Me @@ -151,9 +156,9 @@ $molecule $insert_answer - + - + CHEMPAGE @@ -377,7 +382,7 @@ sub end_organicresponse { sub format_prior_answer_organic { my ($mode,$answer,$other_data) = @_; - my $result=&mt('Smile representation: "[_1]"',''.$answer.''); + my $result=&mt('Smile representation: [_1]','"'.$answer.'"'); my $jme=$other_data->[0]; $result.=&jme_img($jme,$answer,400); return $result;