--- loncom/interface/loncreateuser.pm 2009/03/18 15:18:49 1.268.2.6 +++ 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.6 2009/03/18 15:18:49 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.'
'); 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.').'
' + .&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 { @@ -5043,7 +5075,7 @@ sub update_selfenroll_config { $warning{$item} = &mt('Section for self-enrolled users unchanged as the proposed section is a group').'