[TYPO3-core] RFC #1333: (Mini)Feature: stdWrap.age should differenciate between singular/plural

JoH asenau info at cybercraft.de
Wed Oct 27 16:33:36 CEST 2010


>> The attached patch changes the possible value of the .age setting to
>> allow 8 values:
>> 
>> " min| hrs| days| yrs| min| hour| day| year"
>> 
>> The second set is the singular variant. So we can have outputs like
>> "1 hour" and "1 year". It remains backwards compatible, in that
>> older TYPO3 (with newer TypoScript) will still show the "good-old"
>> plural variants. 
>> 
>> Notes / How to test:
>> Original patch from bug tracker was from Ernesto (in 2005), I only
>> adapted it.
>> 
>> You can test it by using the date field of the header content element
>> and setting the following TypoScript:
>> lib.stdheader.5.field = date
>> lib.stdheader.5.age = 1
>> lib.stdheader.5.strftime >

+1 by reading and testing.

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com


More information about the TYPO3-team-core mailing list