[TYPO3] translation of time and date format in tt_news

Morten Kjems mortenkjems at gmail.com
Tue Apr 17 13:15:30 CEST 2007


Thanks!!

You where right.

It works perfect now!

/Morten

JoH asenau skrev:
>> I am developing a multilanguage site and have a question that relate
>> to tt_news.
>> I want to set a different time and date format each language.
>> So far I have tried this:
>>
>> -------------------------------------------------
>> [globalVar = GP:L = 1]
>>      displayList {
>> date_stdWrap.strftime= %d.%m.%y TEST
>>      time_stdWrap.strftime= %H:%M TEST
>> }
>> [global]
>> -------------------------------------------------
>>
>> When I use this approach the inserted code simply overwrites the the
>> default in both languages! So both the default and the second language
>> get the same time and date format.
>>
>> Any suggestions on how to achieve a correct translation?
> 
> Move the condition to a place outside of any brackets.
> 
> The code you posted shows that you are still inside, since there is
> something like:
> 
> plugin.tt_news {
>     displayList {
>         #blah
>     }
> }
> 
> So you should put the condition after the closing bracket and add
> "plugin.tt_news" to your setup.
> 
> [globalVar = GP:L = 1]
> 
> plugin.tt_news {
>     displayList {
>         date_stdWrap.strftime= %d.%m.%y TEST
>         time_stdWrap.strftime= %H:%M TEST
>     }
> }
> [global]
> 
> HTH
> 
> Joey
> 


More information about the TYPO3-english mailing list