Feature #33959

Make quantity optional when using single numeric arguments in translations

Added by Karsten Dambekalns over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Should have
Category:
I18n
Start date:
2012-02-15
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

When using plural forms, the quantity to be used for finding the correct plural form has to be given explicitly. This is cumbersome when using a single numeric argument, as it means to pass the same value twice. Here is an example:

<f:translate arguments="{0: post.numberOfComments}" quantity="{post.numberOfComments}">

It would be nice if for single numeric arguments the quantity could be determined automatically:

<f:translate arguments="{0: post.numberOfComments}">

#1

Updated by Gerrit Code Review over 9 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9040

#2

Updated by Gerrit Code Review over 9 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9040

#3

Updated by Gerrit Code Review over 9 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9040

#4

Updated by Gerrit Code Review over 9 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9040

#5

Updated by Karsten Dambekalns over 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF