People who worked with gettext in past will be more common with traditional plural
translations. There is a own
plural() method which can be
used for plural translations.
Example 980. Example of traditional plural translations
plural() method accepts 4 parameters. The first
parameter is the singular messageId, the second is the plural messageId and the
third is the number or amount.
The number will be used to detect the plural which has to be returned. A optional fourth parameter can be used to give a locale which will be used to return the translation.
$translate = new Zend_Translate(
'adapter' => 'gettext',
'content' => '/path/to/german.mo',
'locale' => 'de'
$translate->plural('Car', 'Cars', $number);