{"action":"created","issue":{"url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/issues/1525","labels_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/issues/1525/labels{/name}","comments_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/issues/1525/comments","events_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/issues/1525/events","html_url":"https://github.com/wp-e-commerce/WP-e-Commerce/issues/1525","id":41732011,"number":1525,"title":"Generate $view_labels from purchlog statuses, add filter","user":{"login":"timstl","id":1755043,"avatar_url":"https://avatars.githubusercontent.com/u/1755043?v=3","gravatar_id":"","url":"https://api.github.com/users/timstl","html_url":"https://github.com/timstl","followers_url":"https://api.github.com/users/timstl/followers","following_url":"https://api.github.com/users/timstl/following{/other_user}","gists_url":"https://api.github.com/users/timstl/gists{/gist_id}","starred_url":"https://api.github.com/users/timstl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timstl/subscriptions","organizations_url":"https://api.github.com/users/timstl/orgs","repos_url":"https://api.github.com/users/timstl/repos","events_url":"https://api.github.com/users/timstl/events{/privacy}","received_events_url":"https://api.github.com/users/timstl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/milestones/7","labels_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/milestones/7/labels","id":234069,"number":7,"title":"4.0","description":"Primary focus for this release:\r\n\r\n## Major\r\n##### (Headline changes that would be sad to punt.)\r\n* Integrate new theme engine (#848, #1600, #1263)\r\n* Add Package/Grouped Product Type (#386)\r\n* Make Store Reports and extensible API (#462)\r\n* Recurring Sales API (#83)\r\n\r\n## Minor\r\n##### (General improvements, completed iterations on prior enhancements, etc.  Avoid punting if possible)\r\n* Improved Stock Level handling (#720)\r\n* Add an upgraded_from option (#1569)\r\n\r\n## Iterative\r\n##### (Feature-as-plugins, minor enhancements.  happy to punt.)\r\n* Stats-API improvements (#739)\r\n* REST API (#406)","creator":{"login":"JustinSainton","id":1168754,"avatar_url":"https://avatars.githubusercontent.com/u/1168754?v=3","gravatar_id":"","url":"https://api.github.com/users/JustinSainton","html_url":"https://github.com/JustinSainton","followers_url":"https://api.github.com/users/JustinSainton/followers","following_url":"https://api.github.com/users/JustinSainton/following{/other_user}","gists_url":"https://api.github.com/users/JustinSainton/gists{/gist_id}","starred_url":"https://api.github.com/users/JustinSainton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustinSainton/subscriptions","organizations_url":"https://api.github.com/users/JustinSainton/orgs","repos_url":"https://api.github.com/users/JustinSainton/repos","events_url":"https://api.github.com/users/JustinSainton/events{/privacy}","received_events_url":"https://api.github.com/users/JustinSainton/received_events","type":"User","site_admin":false},"open_issues":69,"closed_issues":14,"state":"open","created_at":"2012-12-22T23:13:36Z","updated_at":"2015-01-09T00:08:04Z","due_on":"2014-12-29T08:00:00Z","closed_at":null},"comments":4,"created_at":"2014-09-02T17:08:10Z","updated_at":"2015-01-09T10:28:51Z","closed_at":"2015-01-09T00:08:04Z","body":"This is in reference to pull request #1422. Apologize for the delay in getting back to this.\r\n\r\nI'd like to find a way to generate $view_labels from the global $wpsc_purchlog_statuses to accommodate any custom statuses and label changes that are made with the wpsc_set_purchlog_statuses filter. \r\n\r\nI'm currently using my proposed solution from the pull request, but it needs to be improved because \"the i18n functions in WordPress are not intended to be used with variables, but rather, strings.\" Would something as simple as using PHP's strval function on the labels work, or is another approach needed entirely?\r\n\r\n\r\nThanks,\r\n\r\nTim "},"comment":{"url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/issues/comments/69317482","html_url":"https://github.com/wp-e-commerce/WP-e-Commerce/issues/1525#issuecomment-69317482","issue_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/issues/1525","id":69317482,"user":{"login":"leewillis77","id":1097338,"avatar_url":"https://avatars.githubusercontent.com/u/1097338?v=3","gravatar_id":"","url":"https://api.github.com/users/leewillis77","html_url":"https://github.com/leewillis77","followers_url":"https://api.github.com/users/leewillis77/followers","following_url":"https://api.github.com/users/leewillis77/following{/other_user}","gists_url":"https://api.github.com/users/leewillis77/gists{/gist_id}","starred_url":"https://api.github.com/users/leewillis77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leewillis77/subscriptions","organizations_url":"https://api.github.com/users/leewillis77/orgs","repos_url":"https://api.github.com/users/leewillis77/repos","events_url":"https://api.github.com/users/leewillis77/events{/privacy}","received_events_url":"https://api.github.com/users/leewillis77/received_events","type":"User","site_admin":false},"created_at":"2015-01-09T10:28:51Z","updated_at":"2015-01-09T10:28:51Z","body":"Yes, any additional statuses added via the wpsc_set_purchlog_statuses will have view labels generated for them automatically (If there are orders in that status).\r\n\r\nThis will use a default translation if none is provided in the array. To achieve a custom label, you can provide a 'view_label' entry in the wpsc_purchlog_statuses array - I've not got an example to hand, but will post one later today."}}