Re: Intl extension class MessageFormatter instantiation returns NULL
| From: | Stanislav Malyshev | Date: | Wed, 09 Dec 2009 20:40:29 +0000 |
| Subject: | Re: Intl extension class MessageFormatter instantiation returns NULL | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-6887@lists.php.net to get a copy of this message | ||
Hi!
This may be a incorrect use, but regardless null should not be returned because no error code or error message can be returned. I am struggling to find documentation on plural usage. Can someone point me in the right direction?See links to ICU docs here: http://www.php.net/messageformatter You can also use error functions here: http://www.php.net/manual/en/ref.intl.php to see what ICU doesn't like in your call. Your example's correct form probably would be something like: r = new MessageFormatter("en", "There are {0,choice,0#are no files|1#is one file|1<are many files} ok"); -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com