--- loncom/auth/lonroles.pm 2003/09/17 18:16:39 1.71
+++ loncom/auth/lonroles.pm 2003/09/18 20:10:18 1.72
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# User Roles Screen
#
-# $Id: lonroles.pm,v 1.71 2003/09/17 18:16:39 albertel Exp $
+# $Id: lonroles.pm,v 1.72 2003/09/18 20:10:18 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -51,6 +51,7 @@ use Apache::File();
use Apache::lonmenu;
use Apache::loncommon;
use Apache::lonannounce;
+use Apache::lonlocal;
sub redirect_user {
my ($r,$title,$url,$msg) = @_;
@@ -164,7 +165,7 @@ ENDENTERKEY
'request.role.adv' => $tadv,
'request.role.domain' => $cdom,
'request.course.sec' => $csec);
- my $msg='Entering course ...';
+ my $msg=&mt('Entering course ...');
if (($cnum) && ($role ne 'ca')) {
my ($furl,$ferr)=
@@ -183,7 +184,9 @@ ENDENTERKEY
"request.course.id" => $cdom.'_'.$cnum);
$furl='/adm/roles?tryagain=1';
$msg=
- '
Could not initialize course at this time.
Please try again.
'.$ferr;
+ ''.
+ &mt('Could not initialize course at this time.').
+ '
'.&mt('Please try again.').'
'.$ferr;
}
# Check to see if the user is a CC entering a course
@@ -274,34 +277,35 @@ ENDHEADER
} else {
if ($ENV{'user.error.msg'}) {
$r->print(
- 'You need to choose another user role or '.
- 'enter a specific course for this function
');
+ ''.
+ &mt('You need to choose another user role or enter a specific course for this function').'
');
}
}
# -------------------------------------------------------- Choice or no choice?
if ($nochoose) {
if ($advanced) {
- $r->print("Assigned User Roles
\n");
+ $r->print("".&mt('Assigned User Roles')."
\n");
} else {
- $r->print("Sorry ...
\nThis resource might be part of");
+ $r->print("".&mt('Sorry ...')."
\n".
+ &mt('This resource might be part of'));
if ($ENV{'request.course.id'}) {
- $r->print(' another');
+ $r->print(&mt(' another'));
} else {
- $r->print(' a certain');
+ $r->print(&mt(' a certain'));
}
- $r->print(' course.