Changeset 7830
- Timestamp:
- 2004-07-30T13:08:55+12:00 (20 years ago)
- Location:
- trunk/gsdl/perllib/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/EMAILPlug.pm
r7703 r7830 64 64 # 12/05/02 Added usage datastructure - John Thompson 65 65 66 use strict; 67 no strict "refs"; # so we can use a variable as a filehandle for print $out 68 66 69 package EMAILPlug; 67 70 68 71 use SplitPlug; 69 70 use unicode; 72 # EMAILPlug is a sub-class of SplitPlug. 73 @EMAILPlug::ISA = ('SplitPlug'); 74 75 use unicode; # gs conv functions 76 use gsprintf 'gsprintf'; # translations 71 77 72 78 use sorttools; … … 74 80 75 81 76 # EMAILPlug is a sub-class of SplitPlug.77 78 sub BEGIN {79 @ISA = ('SplitPlug');80 }81 82 use strict;83 no strict "refs"; # so we can use a variable as a filehandle for print $out84 82 85 83 my $arguments = … … 176 174 print STDERR "<Processing n='$file' p='EMAILPlug'>\n" if ($gli); 177 175 178 print $outhandle "EMAILPlug: processing $file\n"176 gsprintf($outhandle, "EMAILPlug: {common.processing} $file\n") 179 177 if $self->{'verbosity'} > 1; 180 178 … … 577 575 # or it was an empty message... 578 576 # do nothing... 579 print $outhandle "EMAILPlug: no text - empty body?\n";577 gsprintf($outhandle, "{BasPlug.empty_file} - empty body?\n"); 580 578 } else { 581 579 $text = $part_text; -
trunk/gsdl/perllib/plugins/SplitPlug.pm
r7508 r7830 41 41 42 42 use BasPlug; 43 # SplitPlug is a sub-class of BasPlug. 44 @SplitPlug::ISA = ('BasPlug'); 45 use gsprintf 'gsprintf'; 43 46 use util; 44 47 45 48 46 # SplitPlug is a sub-class of BasPlug.47 sub BEGIN {48 @ISA = ('BasPlug');49 }50 49 51 50 my $arguments = … … 147 146 if ($text !~ /\w/) { 148 147 my $outhandle = $self->{'outhandle'}; 149 print $outhandle "$plugin_name: ERROR: $file contains no text\n" 148 gsprintf($outhandle, "$plugin_name: {BasPlug.file_has_no_text}\n", 149 $file) 150 150 if $self->{'verbosity'}; 151 151
Note:
See TracChangeset
for help on using the changeset viewer.