{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/6016","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6016/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6016/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6016/events","html_url":"https://github.com/joomla/joomla-cms/pull/6016","id":56937526,"number":6016,"title":"Deprecate JLanguage::setLanguage()","user":{"login":"mbabker","id":368545,"avatar_url":"https://avatars.githubusercontent.com/u/368545?v=3","gravatar_id":"","url":"https://api.github.com/users/mbabker","html_url":"https://github.com/mbabker","followers_url":"https://api.github.com/users/mbabker/followers","following_url":"https://api.github.com/users/mbabker/following{/other_user}","gists_url":"https://api.github.com/users/mbabker/gists{/gist_id}","starred_url":"https://api.github.com/users/mbabker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbabker/subscriptions","organizations_url":"https://api.github.com/users/mbabker/orgs","repos_url":"https://api.github.com/users/mbabker/repos","events_url":"https://api.github.com/users/mbabker/events{/privacy}","received_events_url":"https://api.github.com/users/mbabker/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/PR-staging","name":"PR-staging","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/joomla/joomla-cms/milestones/1","labels_url":"https://api.github.com/repos/joomla/joomla-cms/milestones/1/labels","id":798698,"number":1,"title":"Joomla! 3.4.0","description":"","creator":{"login":"mbabker","id":368545,"avatar_url":"https://avatars.githubusercontent.com/u/368545?v=3","gravatar_id":"","url":"https://api.github.com/users/mbabker","html_url":"https://github.com/mbabker","followers_url":"https://api.github.com/users/mbabker/followers","following_url":"https://api.github.com/users/mbabker/following{/other_user}","gists_url":"https://api.github.com/users/mbabker/gists{/gist_id}","starred_url":"https://api.github.com/users/mbabker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbabker/subscriptions","organizations_url":"https://api.github.com/users/mbabker/orgs","repos_url":"https://api.github.com/users/mbabker/repos","events_url":"https://api.github.com/users/mbabker/events{/privacy}","received_events_url":"https://api.github.com/users/mbabker/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":708,"state":"open","created_at":"2014-09-22T19:29:17Z","updated_at":"2015-02-08T15:34:01Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-02-08T03:46:46Z","updated_at":"2015-02-08T16:26:26Z","closed_at":"2015-02-08T15:33:58Z","pull_request":{"url":"https://api.github.com/repos/joomla/joomla-cms/pulls/6016","html_url":"https://github.com/joomla/joomla-cms/pull/6016","diff_url":"https://github.com/joomla/joomla-cms/pull/6016.diff","patch_url":"https://github.com/joomla/joomla-cms/pull/6016.patch"},"body":"Point blank, `JLanguage::setLanguage()` is a terrible API endpoint and can break JLanguage when used.  What the API endpoint suggests to do is essentially overload the current JLanguage instance with a new language, however it does not deal with re-loading pre-loaded language files or JLanguage's internal cache.\r\n\r\nUses of this method should be discouraged and instead a new JLanguage object be instantiated where this behavior was previously used."},"comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments/73418054","html_url":"https://github.com/joomla/joomla-cms/pull/6016#issuecomment-73418054","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6016","id":73418054,"user":{"login":"richard67","id":7413183,"avatar_url":"https://avatars.githubusercontent.com/u/7413183?v=3","gravatar_id":"","url":"https://api.github.com/users/richard67","html_url":"https://github.com/richard67","followers_url":"https://api.github.com/users/richard67/followers","following_url":"https://api.github.com/users/richard67/following{/other_user}","gists_url":"https://api.github.com/users/richard67/gists{/gist_id}","starred_url":"https://api.github.com/users/richard67/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richard67/subscriptions","organizations_url":"https://api.github.com/users/richard67/orgs","repos_url":"https://api.github.com/users/richard67/repos","events_url":"https://api.github.com/users/richard67/events{/privacy}","received_events_url":"https://api.github.com/users/richard67/received_events","type":"User","site_admin":false},"created_at":"2015-02-08T16:26:25Z","updated_at":"2015-02-08T16:26:25Z","body":"Hmm, but the constructor of JLanguage still calls the depreceated function. Shouldn't this be changed, too?<hr /><sub>This comment was created with the <a href=\"https://github.com/joomla/jissues\">J!Tracker Application</a> at <a href=\"http://issues.joomla.org/tracker/joomla-cms/6016\">issues.joomla.org/joomla-cms/6016</a>.</sub>"}}