{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/8968","repository_url":"https://api.github.com/repos/cakephp/cakephp","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/8968/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/8968/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/8968/events","html_url":"https://github.com/cakephp/cakephp/issues/8968","id":159561892,"number":8968,"title":"CakeTime utility translates the day but not the month when using timehelper's niceShort() method.","user":{"login":"Tomicapo","id":2481454,"avatar_url":"https://avatars.githubusercontent.com/u/2481454?v=3","gravatar_id":"","url":"https://api.github.com/users/Tomicapo","html_url":"https://github.com/Tomicapo","followers_url":"https://api.github.com/users/Tomicapo/followers","following_url":"https://api.github.com/users/Tomicapo/following{/other_user}","gists_url":"https://api.github.com/users/Tomicapo/gists{/gist_id}","starred_url":"https://api.github.com/users/Tomicapo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tomicapo/subscriptions","organizations_url":"https://api.github.com/users/Tomicapo/orgs","repos_url":"https://api.github.com/users/Tomicapo/repos","events_url":"https://api.github.com/users/Tomicapo/events{/privacy}","received_events_url":"https://api.github.com/users/Tomicapo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-10T05:33:04Z","updated_at":"2016-06-10T15:35:03Z","closed_at":null,"body":"This is a (multiple allowed):\r\n* [x] bug\r\n* [ ] enhancement\r\n* [ ] feature-discussion (RFC)\r\n\r\n* CakePHP Version: 2.8.4\r\n* Platform and Target: Windows, Xampp (1.8.1), I think any platform would be the same.\r\n\r\n### What you did\r\nI set my locale in core.php this way:\r\n\r\n```PHP\r\n\tdate_default_timezone_set('America/Argentina/Buenos_Aires');\r\n\t$os = env('OS');\r\n\tif (!empty ($os) && strpos($os, 'Windows') !== false) {\r\n\t\tsetlocale(LC_ALL, 'Spanish (Argentina)');\r\n\t} else {\r\n\t\tsetlocale(LC_ALL, 'es_AR');\r\n\t}\r\n\r\n\tConfigure::write('Config.language', 'esp');\r\n```\r\n\r\nThen I echo a date using Time Helper's method niceShort() this way:\r\n```PHP\r\n<?= $this->Time->niceShort($object['Product']['modified']); ?>\r\n```\r\n\r\n### Expected Behavior\r\nI expect to see the dates in spanish.\r\n\r\n### Actual Behavior\r\nI see the day in spanish but the months are in english.\r\nExample: \t\r\n> Miércoles **June** 08, 19:52\r\n\r\nShould be:\r\n> Miércoles **08 de Junio**, 19:52\r\n\r\nOr at least:\r\n> Miércoles **Junio** 08, 19:52"},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/225216347","html_url":"https://github.com/cakephp/cakephp/issues/8968#issuecomment-225216347","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/8968","id":225216347,"user":{"login":"Tomicapo","id":2481454,"avatar_url":"https://avatars.githubusercontent.com/u/2481454?v=3","gravatar_id":"","url":"https://api.github.com/users/Tomicapo","html_url":"https://github.com/Tomicapo","followers_url":"https://api.github.com/users/Tomicapo/followers","following_url":"https://api.github.com/users/Tomicapo/following{/other_user}","gists_url":"https://api.github.com/users/Tomicapo/gists{/gist_id}","starred_url":"https://api.github.com/users/Tomicapo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tomicapo/subscriptions","organizations_url":"https://api.github.com/users/Tomicapo/orgs","repos_url":"https://api.github.com/users/Tomicapo/repos","events_url":"https://api.github.com/users/Tomicapo/events{/privacy}","received_events_url":"https://api.github.com/users/Tomicapo/received_events","type":"User","site_admin":false},"created_at":"2016-06-10T15:35:03Z","updated_at":"2016-06-10T15:35:03Z","body":"Hi, Tzaoh. Thanks for your comment. I do have that same file in: app\\Locale\\esp\\LC_MESSAGES\\cake.po\r\nApart from the main issue, that file doesn't even include translations for 3 letter day and month abbreviations.\r\n\r\nFor what I've seen, the translation is simply not implemented in the file:\r\n[/lib/Cake/Utility/CakeTime.php](https://github.com/cakephp/cakephp/blob/2.8.4/lib/Cake/Utility/CakeTime.php)\r\n\r\nI can see the days get translated on line 407 but not months."}}
{"actor":{"display_login":"Tomicapo"}}