--- loncom/interface/lonhtmlcommon.pm 2008/11/11 20:12:17 1.183 +++ loncom/interface/lonhtmlcommon.pm 2008/12/01 21:54:23 1.189 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common html routines # -# $Id: lonhtmlcommon.pm,v 1.183 2008/11/11 20:12:17 droeschl Exp $ +# $Id: lonhtmlcommon.pm,v 1.189 2008/12/01 21:54:23 droeschl Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1708,6 +1708,7 @@ sub email_default_row { sub submit_row { my ($title,$cmd,$submit_text,$css_class) = @_; + $submit_text = &mt($submit_text); my $output = &row_title($title,$css_class,'LC_pick_box_submit'); $output .= qq|
@@ -2019,6 +2020,8 @@ END # url => 'URL the link is pointing to, i.e. /adm/site?action=dosomething', # permission => 'Contains permissions as returned from lonnet::allowed(), # must evaluate to true in order to activate the link', +# icon => 'icon filename', +# alttext => 'alt text for the icon', # help => 'Name of the corresponding helpfile', # linktitle => 'Description of the link (used for title tag)' # }, @@ -2035,26 +2038,39 @@ END # subject to change during this project. # Don't rely on its current functionality as it might be # changed or removed. +# TODO: +# check for empty values # -------------------------- sub generate_menu { my @menu = @_; - my $menu_html = ''; + my $menu_html = qq|
|; foreach my $category (@menu) { #FIXME: insert appropriate classnames for styles when they're finished. - $menu_html .='

'.$category->{'categorytitle'}.'

|; return $menu_html; }