Changeset 7830


Ignore:
Timestamp:
2004-07-30T13:08:55+12:00 (20 years ago)
Author:
jrm21
Message:

change a couple of error messages to using gsprintf translated strings instead.

Location:
trunk/gsdl/perllib/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/EMAILPlug.pm

    r7703 r7830  
    6464# 12/05/02 Added usage datastructure - John Thompson
    6565
     66use strict;
     67no strict "refs"; # so we can use a variable as a filehandle for print $out
     68
    6669package EMAILPlug;
    6770
    6871use SplitPlug;
    69 
    70 use unicode;
     72# EMAILPlug is a sub-class of SplitPlug.
     73@EMAILPlug::ISA = ('SplitPlug');
     74
     75use unicode;  # gs conv functions
     76use gsprintf 'gsprintf'; # translations
    7177
    7278use sorttools;
     
    7480
    7581
    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 $out
    8482
    8583my $arguments =
     
    176174    print STDERR "<Processing n='$file' p='EMAILPlug'>\n" if ($gli);
    177175
    178     print $outhandle "EMAILPlug: processing $file\n"
     176    gsprintf($outhandle, "EMAILPlug: {common.processing} $file\n")
    179177    if $self->{'verbosity'} > 1;
    180178
     
    577575        # or it was an empty message...
    578576        # do nothing...
    579         print $outhandle "EMAILPlug: no text - empty body?\n";
     577        gsprintf($outhandle, "{BasPlug.empty_file} - empty body?\n");
    580578        } else {
    581579        $text = $part_text;
  • trunk/gsdl/perllib/plugins/SplitPlug.pm

    r7508 r7830  
    4141
    4242use BasPlug;
     43# SplitPlug is a sub-class of BasPlug.
     44@SplitPlug::ISA = ('BasPlug');
     45use gsprintf 'gsprintf';
    4346use util;
    4447
    4548
    46 # SplitPlug is a sub-class of BasPlug.
    47 sub BEGIN {
    48     @ISA = ('BasPlug');
    49 }
    5049
    5150my $arguments =
     
    147146    if ($text !~ /\w/) {
    148147    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)
    150150        if $self->{'verbosity'};
    151151
Note: See TracChangeset for help on using the changeset viewer.