--- loncom/interface/lonpdfupload.pm 2010/03/18 14:50:15 1.16 +++ loncom/interface/lonpdfupload.pm 2010/03/18 19:11:05 1.18 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # PDF Form Upload Handler # -# $Id: lonpdfupload.pm,v 1.16 2010/03/18 14:50:15 raeburn Exp $ +# $Id: lonpdfupload.pm,v 1.18 2010/03/18 19:11:05 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -32,9 +32,11 @@ use Apache::Constants qw(:common :http); use Apache::lonnet; use Apache::lonhtmlcommon(); use Apache::loncommon(); +use Apache::lonnavmaps(); use Apache::lonlocal; use File::MMagic; use CAM::PDF; +use LONCAPA qw(:DEFAULT :match); use strict; @@ -79,7 +81,8 @@ sub handler() { } } else { $r->print('
'. - &mt('Could not determine identity of this course. you may need to [_1]re-select[_2] the course.','',''). + &mt('Could not determine identity of this course.').' '. + &mt('You may need to [_1]re-select[_2] the course.','',''). '
'. &Apache::loncommon::end_page()); return OK; @@ -124,6 +127,7 @@ sub get_javascripts() { # it's only for giving a message to the user my $result .= <