Project

General

Profile

Actions

Bug #21601

closed

Labels for calcAge: Singular/Plural

Added by Bernhard Kraft about 15 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Could have
Category:
-
Target version:
-
Start date:
2009-11-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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 correct would be "1 second" and "123 seconds".

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

See attached patch

(issue imported from #M12650)


Files

0012650.diff (4.3 KB) 0012650.diff Administrator Admin, 2009-11-18 11:28
Actions

Also available in: Atom PDF