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
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/I18N/fr.po

    r1546 r1549  
     1# SOME DESCRIPTIVE TITLE. 
     2# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 
     3# This file is distributed under the same license as the PACKAGE package. 
     4# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. 
     5# 
     6#, fuzzy 
     7msgid "" 
     8msgstr "" 
     9"Project-Id-Version: 1\n" 
     10"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" 
     11"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 
     12"Last-Translator: Olivier Thauvin <olivier.thauvin@latmos.ipsl.fr\n" 
     13"Language-Team: LANGUAGE <LL@li.org>\n" 
     14"Language: \n" 
     15"MIME-Version: 1.0\n" 
     16"Content-Type: text/plain; charset=UTF-8\n" 
     17"Content-Transfer-Encoding: 8bit\n" 
     18 
    119#: root/html/includes/wrapper.tt:47 
    220msgid "IT management" 
  • 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.