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

Sebastian Fischer typo3 at evoweb.de
Wed Nov 3 22:21:12 CET 2010


Am 19.10.2010 15:28, schrieb Susanne Moog:
> Hey,
>
> This is an SVN patch request.
>
> Type:
> feature
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=1333
>
> Branches:
> trunk
>
> Problem (from bug tracker):
> The .age stdWrap parameter currently only allows us to specify " min|
> hrs| days| yrs", which will also show plural text if we have a quantity
> of "1".
>
> Solution:
> 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>
>
>
> Best regards,
>
> Susanne

+1 by reading

Greetings
Sebastian


More information about the TYPO3-team-core mailing list