[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm
bisitz
bisitz at source.lon-capa.org
Tue Aug 20 10:33:42 EDT 2013
bisitz Tue Aug 20 14:33:42 2013 EDT
Modified files:
/loncom/interface loncommon.pm
Log:
Correct and improve error message internationalization:
Do not translate already translated phrases. Allow to switch for such content.
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.1149 loncom/interface/loncommon.pm:1.1150
--- loncom/interface/loncommon.pm:1.1149 Tue Aug 20 02:32:59 2013
+++ loncom/interface/loncommon.pm Tue Aug 20 14:33:42 2013
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.1149 2013/08/20 02:32:59 raeburn Exp $
+# $Id: loncommon.pm,v 1.1150 2013/08/20 14:33:42 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -8044,10 +8044,12 @@
}
sub simple_error_page {
- my ($r,$title,$msg) = @_;
+ my ($r,$title,$msg,$args) = @_;
+ if (!$args->{'no_auto_mt_msg'}) { $msg = &mt($msg); }
+
my $page =
&Apache::loncommon::start_page($title).
- '<p class="LC_error">'.&mt($msg).'</p>'.
+ '<p class="LC_error">'.$msg.'</p>'.
&Apache::loncommon::end_page();
if (ref($r)) {
$r->print($page);
More information about the LON-CAPA-cvs
mailing list