Changeset 1187

Show
Ignore:
Timestamp:
07/30/06 18:37:46
Author:
charsbar
Message:

Filter::Babelfish: oops! prepend_orginal -> prepend_original

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Filter/Babelfish.pm

    r1184 r1187  
    3737        return; 
    3838    } 
    39     $title_tr = $title . "\n\n" . $title_tr if $self->conf->{prepend_orginal}; 
     39    if ($self->conf->{prepend_original}) { 
     40        $title_tr = $title . "\n\n" . $title_tr; 
     41        $context->log(debug => "prepended original title"); 
     42    } 
    4043 
    4144    $args->{entry}->title($title_tr); 
     
    4952        return; 
    5053    } 
    51     $body_tr = $body . "\n\n" . $body_tr if $self->conf->{prepend_orginal}; 
     54    if ($self->conf->{prepend_original}) { 
     55        $body_tr = $body . "\n\n" . $body_tr; 
     56        $context->log(debug => "prepended original body"); 
     57    } 
    5258 
    5359    $args->{entry}->body($body_tr); 
     
    9197      destination: Japanese 
    9298      service: Google 
    93       prepend_orginal: 1 
     99      prepend_original: 1 
    94100 
    95101=head1 DESCRIPTION 
     
    117123Defaults to 'Japanese'. 
    118124 
    119 =item prepend_orginal 
     125=item prepend_original 
    120126 
    121127When set to 1, prepends original entry body. Defaults to 0.