[MTOS-dev] A few questions about Movable Type interationalization

Mirco Macrelli mmacrelli at gmail.com
Thu May 8 02:51:24 PDT 2008


Il giorno 08/mag/08, alle ore 03:25, Fumiaki Yoshimatsu ha scritto:

> Hello Mirco,
>
>> 1- Is there a way to modify the way MT format the date in the admin
>> interface? Right now the month comes before the day and in italian it
>> sounds awful.
>
> Those are done with a few hacks for the other languages.  You can see
> those in lib/MT/Util.pm, in which there is a big hash called  
> %Language.
> Japanese has further hack.  Search for "dreadful" in lib/MT/Util.pm.

The values in %Language are correct but they seems to be ignored in  
this part of the code:

     # more than a week, same year
     if ((localtime($ts1))[5] == (localtime($ts2))[5]) {
         $fmt ||= "%b %e";
     } else {
         $fmt ||= "%b %e %Y";
     }

I've added this under the "dreadful hack" to swap %b and %e:

     if ($lang eq 'it') {
         $format =~ s!%b %e!%e %b!g;
     }

It's ugly but it works.


>> 2- The flash used to display the blog stats can be modified? Now
>> everything is displayed using english names.
>
> Right now, every language version shows it in English.  We are looking
> to localize it, but the Flash component itself is blocking for now.

Good news.

>
>> 3- I've translated all the strings related to mt-check.cgi in the  
>> file
>> it.pm but my changes dosen't seems to be seen. Is this a bug?
>
> In mt-check.cgi, there is a line like below (the actual language  
> depends
> on what version you are using):
>    my $lang = 'ja';
> This line determines in what language mt-check shows its content.  The
> language is embedded during the "make" time (by replacing
> __BUILD_LANGUAGE__ variable found in mt-check.cgi.pre, the original  
> file
> in subversion repository).  You can just replace the line to have "it"
> to see if it works.

Tried with 'it', 'es' and 'de'. The only things that changes is the  
meta tag for the language. If I use MTOS-4.15b5-ja the page is always  
in Japanes even when $lang is 'en_US'.

> Fumiaki Yoshimatsu
> Movable Type Engineering,
> Six Apart K.K.
>
>> -----Original Message-----
>> From: mtos-dev-bounces at sixapart.com
>> [mailto:mtos-dev-bounces at sixapart.com] On Behalf Of Mirco Macrelli
>> Sent: Thursday, May 08, 2008 7:55 AM
>> To: mtos-dev at sixapart.com
>> Subject: [MTOS-dev] A few questions about Movable Type
> interationalization
>
> _______________________________________________
> MTOS-dev mailing list
> MTOS-dev at sixapart.com
> http://www.sixapart.com/mailman/listinfo/mtos-dev



More information about the MTOS-dev mailing list