Changeset 2317

Show
Ignore:
Timestamp:
05/14/08 00:36:31 (21 months ago)
Author:
fumiakiy
Message:

In Italian the date always come before the month. Thanks for the patch mirco! BugId:79728

Location:
branches/release-38
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/release-38/lib/MT/Util.pm

    r2118 r2317  
    327327        $format =~ s!%B %E,? %Y!$Languages{$lang}->[4]!ig; 
    328328        $format =~ s!%B %E!$Languages{$lang}->[7]!ig; 
     329    } 
     330    elsif ($lang eq 'it') { 
     331        ## Hack for the Italian dates 
     332        ## In Italian, the date always come before the month. 
     333        $format =~ s!%b %e!%e %b!g; 
    329334    } 
    330335    $format =~ s!%(\w)!$f{$1}!g if defined $format; 
  • branches/release-38/php/lib/MTUtil.php

    r2304 r2317  
    247247            $format = preg_replace('!%B %E!', $Languages[$lang][7], $format); 
    248248        } 
     249    } 
     250    elseif ( $lang == 'it' ) { 
     251        ## Hack for the Italian dates 
     252        ## In Italian, the date always come before the month. 
     253        $format = preg_replace('!%b %e!', '%e %b', $format); 
    249254    } 
    250255    if (isset($format)) {