--- loncom/interface/lonhtmlcommon.pm 2010/08/08 02:00:38 1.282 +++ loncom/interface/lonhtmlcommon.pm 2010/10/04 14:34:46 1.284 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common html routines # -# $Id: lonhtmlcommon.pm,v 1.282 2010/08/08 02:00:38 raeburn Exp $ +# $Id: lonhtmlcommon.pm,v 1.284 2010/10/04 14:34:46 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -62,6 +62,11 @@ use Apache::lonlocal; use Apache::lonnet; use LONCAPA; +sub java_not_enabled { + return "\n".''. + &mt('The required Java applet could not be started. Please make sure to have Java installed and active in your browser.'). + "\n"; +} sub coursepreflink { my ($text,$category)=@_; @@ -2475,11 +2480,15 @@ sub generate_menu { # create the markup for the current $link and push it into @links. # each entry consists of an image and a text optionally followed # by a help link. + my $src; + if ($$link{icon} ne '') { + $src = '/res/adm/pages/'.$$link{icon}; + } push(@links,$li->( $a->( $img->("", { class => "LC_noBorder LC_middle", - src => "/res/adm/pages/$$link{icon}", + src => $src, alt => mt(defined($$link{alttext}) ? $$link{alttext} : $$link{linktext}) }), {