[TYPO3-core] RFC #12650: Labels for calcAge: Singular/Plural

Bernhard Kraft kraftb at kraftb.at
Wed Nov 18 11:32:39 CET 2009


Hello!

This is a SVN patch request.

Branches: trunk (4.4)

Bugtracker reference:
http://bugs.typo3.org/view.php?id=12650

Description:
The labels for the "calcAge" method can only be given in grammatical
singular or plural.

So the results will be like "1 seconds" ... or "123 second" ... but
grammatical correct would be "1 second" and "123 seconds".



Solution:
Add a check if the result is only "1" and use the grammatical correct
singular form of the label in this case.


See attached patch and bugtracker entry


greets,
Bernhard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0012650.diff
Type: text/x-patch
Size: 4407 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20091118/e6173ee6/attachment.bin>


More information about the TYPO3-team-core mailing list