--- loncom/interface/loncreateuser.pm 2009/03/18 15:27:13 1.268.2.7 +++ loncom/interface/loncreateuser.pm 2009/01/16 10:59:48 1.274 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Create a user # -# $Id: loncreateuser.pm,v 1.268.2.7 2009/03/18 15:27:13 raeburn Exp $ +# $Id: loncreateuser.pm,v 1.274 2009/01/16 10:59:48 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1687,8 +1687,8 @@ sub update_user_data { } if ( $env{'form.ccuname'} ne &LONCAPA::clean_username($env{'form.ccuname'}) ) { - $r->print($error.&mt('Invalid login name.').' '. - &mt('Only letters, numbers, periods, dashes, @, and underscores are valid.'). + $r->print($error.&mt('Invalid login name').'. '. + &mt('Only letters, numbers, periods, dashes, @, and underscores are valid').'.'. $end.$rtnlink); return; } @@ -1698,8 +1698,8 @@ sub update_user_data { } if ( $env{'form.ccdomain'} ne &LONCAPA::clean_domain($env{'form.ccdomain'}) ) { - $r->print($error.&mt ('Invalid domain name.').' '. - &mt('Only letters, numbers, periods, dashes, and underscores are valid.'). + $r->print($error.&mt ('Invalid domain name').'. '. + &mt('Only letters, numbers, periods, dashes, and underscores are valid').'.'. $end.$rtnlink); return; } @@ -2611,12 +2611,18 @@ sub update_roles { $r->print('

'.&mt('ERROR').': '.&mt('Unknown command').' '.$key.'


'); } foreach my $key (sort(keys(%disallowed))) { + $r->print('

'); if (($key eq 'none') || ($key eq 'all')) { - $r->print('

'.&mt('[_1] may not be used as the name for a section, as it is a reserved word.',$key)); + $r->print(&mt('[_1] may not be used as the name for a section, as it is a reserved word.',''.$key.'')); } else { - $r->print('

'.&mt('[_1] may not be used as the name for a section, as it is the name of a course group.',$key)); + $r->print(&mt('[_1] may not be used as the name for a section, as it is the name of a course group.',''.$key.'')); } - $r->print(' '.&mt('Please go back and choose a different section name.').'


'); + $r->print('

' + .&mt('Please [_1]go back[_2] and choose a different section name.' + ,''; - if (exists($menu_item->{'url'})) { - $menu_html.=qq{}; - } else { - $menu_html.= - qq{}; } - $menu_html.= &mt($menu_item->{'text'}).''; - $menu_html.='

'; - } - return $menu_html; } sub restore_prev_selections { @@ -3670,10 +3702,9 @@ ENDSCRIPT my ($visible,$cansetvis,$vismsgs,$visactions) = &visible_in_cat($cdom,$cnum); if (ref($visactions) eq 'HASH') { if ($visible) { - $output .= '

'.$visactions->{'vis'}.'

'; + $output .= '

'.$visactions->{'vis'}.'

'; } else { - $output .= '

'.$visactions->{'miss'}.'

' - .$visactions->{'yous'}. + $output .= $visactions->{'miss'}.'
'.$visactions->{'yous'}. '

'.$visactions->{'gen'}.'
'.$visactions->{'coca'}; if (ref($vismsgs) eq 'ARRAY') { $output .= '
'.$visactions->{'make'}.'