Ignore:
Timestamp:
12/28/15 17:45:18 (9 years ago)
Author:
nanardon
Message:

Fix I18N

Location:
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Model
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Model/AttrForms.pm

    r1530 r1549  
    323323    if ($label) { 
    324324        return $label; 
    325     } elsif (my $hash = LATMOS::Accounts::Web->config->{attrs}{$attr}) { 
    326         return $hash->{label}; 
    327325    } else { 
    328        return $attr; 
     326        my $oattr = $self->base->attribute($self->otype, $attr);  
     327        return $oattr->{label} ? $oattr->{label}->() : $attr; 
    329328    }  
    330329} 
  • trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Model/AttrFormsA.pm

    r1530 r1549  
    8989        ($hint ? sprintf('title="%s"', $self->escape($hint)) : ''), 
    9090        $self->escape($self->htmlname), 
    91         $self->escape($self->hconfig('label') || $self->htmlname), 
     91        $self->escape($self->{label} || $self->htmlname), 
    9292    ); 
    9393} 
Note: See TracChangeset for help on using the changeset viewer.