Zend Translate Plurals

Sep 24, 2013 zend-framework
This post is more than 18 months old. Since technology changes too 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.

Go to All Posts