new i18n api requiring $session
This commit is contained in:
parent
877bf082a0
commit
01d95a265e
141 changed files with 2266 additions and 1745 deletions
|
|
@ -82,10 +82,11 @@ sub configurationForm {
|
|||
$form = shift;
|
||||
|
||||
$f = WebGUI::HTMLForm->new($self->session);
|
||||
my $i18n = WebGUI::International->new($self->session, 'Commerce');
|
||||
$f->yesNo(
|
||||
-name => $self->prepend('enabled'),
|
||||
-value => $self->enabled,
|
||||
-label => WebGUI::International::get('enable', 'Commerce'),
|
||||
-label => $i18n->get('enable'),
|
||||
);
|
||||
$f->raw($form);
|
||||
|
||||
|
|
@ -420,7 +421,7 @@ The period you want the name for.
|
|||
|
||||
sub recurringPeriodValues {
|
||||
my ($i18n, %periods);
|
||||
$i18n = WebGUI::International->new('Commerce');
|
||||
$i18n = WebGUI::International->new($self->session, 'Commerce');
|
||||
tie %periods, "Tie::IxHash";
|
||||
%periods = (
|
||||
Weekly => $i18n->get('weekly'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue