--- loncom/publisher/lonunauthorized.pm 2008/08/11 10:18:31 1.8 +++ loncom/publisher/lonunauthorized.pm 2009/05/14 15:36:29 1.9 @@ -1,7 +1,7 @@ # The LearningOnline Network # Unauthorized to access construction space # -# $Id: lonunauthorized.pm,v 1.8 2008/08/11 10:18:31 bisitz Exp $ +# $Id: lonunauthorized.pm,v 1.9 2009/05/14 15:36:29 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -54,8 +54,11 @@ sub handler { # figure out what went wrong if ($ownerdomain) { - $r->print('

'.&mt('Choose another server').'

' + $r->print('

' .&mt('The construction space for this resource is located on another server.') + .'

' + .'

' + .&mt('Choose another server.') .'

'); my $ownerhome=&Apache::lonnet::homeserver($ownername,$ownerdomain); unless ($ownerhome eq 'no_host') { @@ -65,9 +68,9 @@ sub handler { .'

'); } } else { - $r->print('

' + $r->print('

' .&mt('You do not have authoring privileges for this resource') - .'

'); + .'

'); my ($realownername)= ($env{'request.editurl'}=~m{/(?:~|priv/|home/)($LONCAPA::username_re)}); my $realownerhome= @@ -75,7 +78,7 @@ sub handler { $r->dir_config('lonDefDomain')); unless ($realownerhome eq 'no_host') { my $plainname=&Apache::loncommon::plainname($realownername,$r->dir_config('lonDefDomain')); - my $user=&mt('[_1] at [_2]',$realownername,$r->dir_config('lonDefDomain')); + my $user=$realownername.':'.$r->dir_config('lonDefDomain'); my $userlink=&Apache::loncommon::aboutmewrapper( $plainname.' ('.$user.')' ,$realownername