0

Can anybody show me example of using Zend_Translate with Array Adapter when I need to make more than one plural forms for a word. For 1 entity first, for 2 - 4 entities second, for 5 and more - third form.

hakre
  • 193,403
  • 52
  • 435
  • 836

1 Answers1

1

AFAIK Zend_Translate does not do pluralization/inflection but only translation.

Yeroon
  • 3,223
  • 2
  • 22
  • 29
  • 1
    $translates = array('car' => array('car', '2 cars', 'X carss')); $_ = new Zend_Translate('array', $translates, 'ru'); $number = 3; echo $_->translate(array('car', $number, 'ru')); Such example works for $number = 1 or 2, but not for value of 3 and more – тараканы_простыли Nov 25 '10 at 13:11