[LON-CAPA-cvs] cvs: loncom(version_2_6_X) /auth lonroles.pm
raeburn
lon-capa-cvs-allow@mail.lon-capa.org
Sat, 22 Mar 2008 03:41:01 -0000
raeburn Fri Mar 21 23:41:01 2008 EDT
Modified files: (Branch: version_2_6_X)
/loncom/auth lonroles.pm
Log:
- backport 1.184
Index: loncom/auth/lonroles.pm
diff -u loncom/auth/lonroles.pm:1.181 loncom/auth/lonroles.pm:1.181.2.1
--- loncom/auth/lonroles.pm:1.181 Fri Nov 9 15:56:34 2007
+++ loncom/auth/lonroles.pm Fri Mar 21 23:40:58 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# User Roles Screen
#
-# $Id: lonroles.pm,v 1.181 2007/11/09 20:56:34 albertel Exp $
+# $Id: lonroles.pm,v 1.181.2.1 2008/03/22 03:40:58 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -365,7 +365,7 @@
my $start_page=&Apache::loncommon::start_page('User Roles');
my $standby=&mt('Role selected. Please stand by.');
$standby=~s/\n/\\n/g;
- my $noscript='<span class="LC_error">'.&mt('Use of LON-CAPA requires Javascript to be enabled in your web browser.').'<br />'.&mt('As this is not the case, most functionality in the system will ba unavailable.').'</span><br />';
+ my $noscript='<span class="LC_error">'.&mt('Use of LON-CAPA requires Javascript to be enabled in your web browser.').'<br />'.&mt('As this is not the case, most functionality in the system will be unavailable.').'</span><br />';
$r->print(<<ENDHEADER);
$start_page
@@ -930,6 +930,10 @@
}
sub coursepick_jscript {
+ my %lt = &Apache::lonlocal::texthash(
+ plsu => "Please use the 'Select Course' link to open a separate pick course window where you may select the course you wish to enter.",
+ youc => 'You can only use this screen to select courses in the current domain.',
+ );
my $verify_script = <<"END";
<script type="text/javascript">
function verifyCoursePick(caller) {
@@ -945,11 +949,11 @@
}
}
else {
- alert("Please use the 'Select Course' link to open a separate pick course window where you may select the course you wish to enter.");
+ alert("$lt{'plsu'}");
}
}
else {
- alert("You can only use this screen to select courses in the current domain")
+ alert("$lt{'youc'}");
}
}
function getIndex(caller) {