--- loncom/interface/lonpdfupload.pm 2010/03/18 16:08:48 1.17 +++ loncom/interface/lonpdfupload.pm 2012/09/14 11:24:06 1.22 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # PDF Form Upload Handler # -# $Id: lonpdfupload.pm,v 1.17 2010/03/18 16:08:48 raeburn Exp $ +# $Id: lonpdfupload.pm,v 1.22 2012/09/14 11:24:06 goltermann 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,15 +127,17 @@ sub get_javascripts() { # it's only for giving a message to the user my $result .= <