Zend Translate Plurals

This post is more than 18 months old. Since technology changes to rapidly, this content may be out of date (but that's not always the case). Please remember to verify any technical or programming information with the current release.

I know it should be pretty common sense to RTFM - but sometimes you miss things.

This one buggered me for a while…

How to do Zend Translate Plurals in ZF 1.x… Very simply, the manual tells us how.

But for those too lazy to click through…

$translate = new Zend_Translate($options);
echo $translate->translate(array('chicken', 'chickens', $numberOfChickens));

Yup. Very simple.

Return to All Posts