new i18n api requiring $session
This commit is contained in:
parent
877bf082a0
commit
01d95a265e
141 changed files with 2266 additions and 1745 deletions
|
|
@ -79,13 +79,15 @@ A text label that will be displayed if toHtmlWithWrapper() is called. Defaults t
|
|||
|
||||
sub definition {
|
||||
my $class = shift;
|
||||
my $session = shift;
|
||||
my $definition = shift || [];
|
||||
my $i18n = WebGUI::International->new($session);
|
||||
push(@{$definition}, {
|
||||
formName=>{
|
||||
defaultValue=>WebGUI::International::get("LDAPLink_1075","AuthLDAP")
|
||||
defaultValue=>$i18n->get("LDAPLink_1075","AuthLDAP")
|
||||
},
|
||||
label=>{
|
||||
defaultValue=>WebGUI::International::get("LDAPLink_1075","AuthLDAP")
|
||||
defaultValue=>$i18n->get("LDAPLink_1075","AuthLDAP")
|
||||
},
|
||||
size=>{
|
||||
defaultValue=>1
|
||||
|
|
@ -103,7 +105,7 @@ sub definition {
|
|||
defaultValue=>undef
|
||||
}
|
||||
});
|
||||
return $class->SUPER::definition($definition);
|
||||
return $class->SUPER::definition($session, $definition);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue