Remove more echo calls from ITransact driver.

Add an i18n ITransact label to the ITransact i18n.
Add a PayDriver i18n label called Credit Card to be used by any credit card processing pay driver.
Change the ITransact getButton method to use that label.
Updated the PayDriver label hover help to say the label is only used in the Payment method screen
and not anywhere else.
This commit is contained in:
Colin Kuskie 2008-07-11 18:14:17 +00:00
parent 4720a6a217
commit f6a5ad64db
4 changed files with 18 additions and 6 deletions

View file

@ -376,7 +376,7 @@ sub definition {
);
push @{ $definition }, {
name => $i18n->echo('Itransact'),
name => $i18n->get('Itransact'),
properties => \%fields,
};
@ -430,11 +430,11 @@ sub doXmlRequest {
sub getButton {
my $self = shift;
my $session = $self->session;
my $i18n = WebGUI::International->new($session, 'PayDriver_ITansact');
my $i18n = WebGUI::International->new($session, 'PayDriver');
my $payForm = WebGUI::Form::formHeader($session)
. $self->getDoFormTags('getCredentials')
. WebGUI::Form::submit($session, {value => $i18n->echo('ITransact') })
. WebGUI::Form::submit($session, {value => $i18n->get('credit card') })
. WebGUI::Form::formFooter($session);
return $payForm;
@ -619,7 +619,7 @@ sub www_getCredentials {
# Process form errors
if ( $errors ) {
#### TODO: i18n
$output .= $i18n->echo('The following errors occurred:')
$output .= $i18n->get('error occurred message')
. '<ul><li>' . join( '</li><li>', @{ $errors } ) . '</li></ul>';
}