{"action":"created","issue":{"url":"https://api.github.com/repos/zendframework/zf1/issues/556","labels_url":"https://api.github.com/repos/zendframework/zf1/issues/556/labels{/name}","comments_url":"https://api.github.com/repos/zendframework/zf1/issues/556/comments","events_url":"https://api.github.com/repos/zendframework/zf1/issues/556/events","html_url":"https://github.com/zendframework/zf1/issues/556","id":71871674,"number":556,"title":"Zend_Locale_Format is not locale aware","user":{"login":"mcnathanator","id":8667159,"avatar_url":"https://avatars.githubusercontent.com/u/8667159?v=3","gravatar_id":"","url":"https://api.github.com/users/mcnathanator","html_url":"https://github.com/mcnathanator","followers_url":"https://api.github.com/users/mcnathanator/followers","following_url":"https://api.github.com/users/mcnathanator/following{/other_user}","gists_url":"https://api.github.com/users/mcnathanator/gists{/gist_id}","starred_url":"https://api.github.com/users/mcnathanator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcnathanator/subscriptions","organizations_url":"https://api.github.com/users/mcnathanator/orgs","repos_url":"https://api.github.com/users/mcnathanator/repos","events_url":"https://api.github.com/users/mcnathanator/events{/privacy}","received_events_url":"https://api.github.com/users/mcnathanator/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zendframework/zf1/labels/Zend_Locale","name":"Zend_Locale","color":"008000"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-29T13:14:38Z","updated_at":"2015-04-29T13:28:12Z","closed_at":null,"body":"Zend_Locale_Format is not local aware\r\n\r\nVersion: 1.12.12dev\r\nClass: Zend_Locale_Format\r\n\r\nThis manual section:\r\n\r\nhttp://framework.zend.com/manual/1.12/en/zend.locale.introduction.html\r\n\r\nGives me the idea that Zend_Locale_Format should be among the classes which are locale aware, but it isn't:\r\n\r\n```\r\n$number = 1337;\r\n\r\n$oLocale = new Zend_Locale;\r\nZend_Debug::dump($oLocale->toString()); //My locale is: en_US\r\nZend_Debug::dump(Zend_Locale_Format::toNumber($number)); //returns: 1,337 as expected for en_US\r\n\r\n$oDesiredLocale = new Zend_Locale('nl_NL');\r\nZend_Registry::set('Zend_Locale', $oDesiredLocale);\r\n\r\nZend_Debug::dump(Zend_Locale_Format::toNumber($number)); //returns 1,337 expected is: 1.337\r\n\r\nZend_Locale_Format::setOptions(array('locale'=>$oDesiredLocale));\r\n\r\nZend_Debug::dump(Zend_Locale_Format::toNumber($number)); //returns 1.337  as expected\r\n```\r\n\r\nEither I misinterpreted the manual or this is an issue"},"comment":{"url":"https://api.github.com/repos/zendframework/zf1/issues/comments/97425997","html_url":"https://github.com/zendframework/zf1/issues/556#issuecomment-97425997","issue_url":"https://api.github.com/repos/zendframework/zf1/issues/556","id":97425997,"user":{"login":"froschdesign","id":103362,"avatar_url":"https://avatars.githubusercontent.com/u/103362?v=3","gravatar_id":"","url":"https://api.github.com/users/froschdesign","html_url":"https://github.com/froschdesign","followers_url":"https://api.github.com/users/froschdesign/followers","following_url":"https://api.github.com/users/froschdesign/following{/other_user}","gists_url":"https://api.github.com/users/froschdesign/gists{/gist_id}","starred_url":"https://api.github.com/users/froschdesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/froschdesign/subscriptions","organizations_url":"https://api.github.com/users/froschdesign/orgs","repos_url":"https://api.github.com/users/froschdesign/repos","events_url":"https://api.github.com/users/froschdesign/events{/privacy}","received_events_url":"https://api.github.com/users/froschdesign/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T13:28:12Z","updated_at":"2015-04-29T13:28:12Z","body":"> Gives me the idea that Zend_Locale_Format should be among the classes which are locale aware\r\n\r\nNo, `Zend_Locale_Format` is not locale aware.\r\n\r\nBut this would help:\r\n```php\r\nZend_Registry::set('Zend_Locale', new Zend_Locale('nl_NL'));\r\n\r\nZend_Debug::dump(Zend_Locale_Format::toNumber($number, array('locale' => null)));\r\n```"}}