{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/7203","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/7203/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/7203/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/7203/events","html_url":"https://github.com/cakephp/cakephp/issues/7203","id":99779496,"number":7203,"title":"Problem with plural and i18n translate function","user":{"login":"shingosama","id":3535658,"avatar_url":"https://avatars.githubusercontent.com/u/3535658?v=3","gravatar_id":"","url":"https://api.github.com/users/shingosama","html_url":"https://github.com/shingosama","followers_url":"https://api.github.com/users/shingosama/followers","following_url":"https://api.github.com/users/shingosama/following{/other_user}","gists_url":"https://api.github.com/users/shingosama/gists{/gist_id}","starred_url":"https://api.github.com/users/shingosama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shingosama/subscriptions","organizations_url":"https://api.github.com/users/shingosama/orgs","repos_url":"https://api.github.com/users/shingosama/repos","events_url":"https://api.github.com/users/shingosama/events{/privacy}","received_events_url":"https://api.github.com/users/shingosama/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cakephp/cakephp/labels/On%20hold","name":"On hold","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/55","html_url":"https://github.com/cakephp/cakephp/milestones/3.0.12","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/55/labels","id":1243170,"number":55,"title":"3.0.12","description":"Bugfixes and enhancements for 3.0.x","creator":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"open_issues":22,"closed_issues":12,"state":"open","created_at":"2015-08-06T02:07:36Z","updated_at":"2015-08-08T15:42:54Z","due_on":"2015-08-26T04:00:00Z","closed_at":null},"comments":1,"created_at":"2015-08-08T07:01:02Z","updated_at":"2015-08-08T15:48:09Z","closed_at":null,"body":"Hello, I have a problem concerning translation and plurality. All functions that I try to use, but they go back only singular. I did several tests trying to see what was going on in the source code of cakephp, but I did not find anything wrong.\r\n\r\n````php\r\n<?php\r\necho $feed->status->created->timeAgoInWords();\r\n// display 13 hour, 55 minute ago\r\n?>\r\n````\r\n\r\n````php\r\n<?php\r\necho __dn('cake', '{0} car', '{0} cars', 2, 2);\r\n// display 2 car\r\n?>\r\n````\r\n\r\n```php\r\n<?php\r\nfunction __dn($domain, $singular, $plural, $count, $args = null)\r\n    {\r\n        if (!$singular) {\r\n            return;\r\n        }\r\n\r\n        $arguments = func_num_args() === 5 ? (array)$args : array_slice(func_get_args(), 4);\r\n        return I18n::translator($domain)->translate(\r\n            $plural,\r\n            ['_count' => $count, '_singular' => $singular] + $arguments\r\n        );\r\n    }\r\n````\r\n\r\nAm I the only one to experience this issue?\r\n\r\nThank you for your help."},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/128992759","html_url":"https://github.com/cakephp/cakephp/issues/7203#issuecomment-128992759","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/7203","id":128992759,"user":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"created_at":"2015-08-08T15:48:09Z","updated_at":"2015-08-08T15:48:09Z","body":"What do your translation files look like? There are quite a few tests that cover the plural forms that work. Also plurals are working fine locally:\r\n\r\n```php\r\n>>> $t = new Cake\\I18n\\Time('2015-08-07 23:10:10');\r\n=> Cake\\I18n\\Time {#222\r\n     +\"time\": \"2015-08-07T23:10:10+0000\",\r\n     +\"timezone\": \"UTC\",\r\n     +\"fixedNowTime\": false,\r\n   }\r\n>>> $t->timeAgoInWords();\r\n=> \"16 hours, 37 minutes ago\"\r\n```"}}