[TYPO3] translation of time and date format in tt_news
JoH asenau
info at cybercraft.de
Tue Apr 17 12:39:55 CEST 2007
> 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
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com
More information about the TYPO3-english
mailing list