Changeset 1863

Show
Ignore:
Timestamp:
04/11/08 15:34:34 (3 months ago)
Author:
fumiakiy
Message:

Do not translate labels. They are automatically translated.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-34/lib/MT/CMS/Template.pm

    r1852 r1863  
    17091709    my $tmpl_list = MT::DefaultTemplates->templates($set) or return; 
    17101710 
    1711     my $trnames    = {}; 
    17121711    my $tmpl_types = {}; 
    17131712    my $tmpl_ids   = {}; 
     
    17171716        $tmpl_ids->{ $tmpl->{identifier} } = $tmpl 
    17181717            if $tmpl->{identifier}; 
    1719         $trnames->{ $app->translate( $tmpl->{name} ) } = $tmpl->{name}; 
    17201718        if ( $tmpl->{type} !~ m/^(archive|individual|page|category|index|custom|widget)$/ ) 
    17211719        { 
     
    17431741          $ts[4] + 1, @ts[ 3, 2, 1, 0 ]; 
    17441742 
    1745         my $orig_name = $trnames->{ $tmpl->name } || $tmpl->name; 
    17461743        my $val = ( $tmpl->identifier ? $tmpl_ids->{ $tmpl->identifier() } : undef ) 
    17471744          || $tmpl_types->{ $tmpl->type() } 
    1748           || $tmpls->{ $tmpl->type() }{$orig_name}; 
     1745          || $tmpls->{ $tmpl->type() }{ $tmpl->name }; 
    17491746        if ( !$val ) { 
    17501747            push @msg,