{"action":"opened","number":33,"pull_request":{"url":"https://api.github.com/repos/joomla-framework/language/pulls/33","id":35573606,"html_url":"https://github.com/joomla-framework/language/pull/33","diff_url":"https://github.com/joomla-framework/language/pull/33.diff","patch_url":"https://github.com/joomla-framework/language/pull/33.patch","issue_url":"https://api.github.com/repos/joomla-framework/language/issues/33","number":33,"state":"open","locked":false,"title":"Add support for named parameters","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},"body":"This PR introduces support for named parameters in the `translate()` and `alt()` methods and serves as a potential replacement for sprintf support.\r\n\r\nThis enables users to create language strings using replaceable parameters such as `MY_KEY=\"%term% Rocks!\"`.  Calls to `Text::translate()` using the named parameter would replace the parameter with a specified value, i.e. `$text->translate('MY_KEY', array('%term%' => 'Joomla');` will result in `Joomla Rocks!`.","created_at":"2015-05-16T16:33:06Z","updated_at":"2015-05-16T16:33:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/joomla-framework/language/pulls/33/commits","review_comments_url":"https://api.github.com/repos/joomla-framework/language/pulls/33/comments","review_comment_url":"https://api.github.com/repos/joomla-framework/language/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joomla-framework/language/issues/33/comments","statuses_url":"https://api.github.com/repos/joomla-framework/language/statuses/8452d07c98fe9ea08a54473faede05d39a032895","head":{"label":"joomla-framework:namedParams","ref":"namedParams","sha":"8452d07c98fe9ea08a54473faede05d39a032895","user":{"login":"joomla-framework","id":6124926,"avatar_url":"https://avatars.githubusercontent.com/u/6124926?v=3","gravatar_id":"","url":"https://api.github.com/users/joomla-framework","html_url":"https://github.com/joomla-framework","followers_url":"https://api.github.com/users/joomla-framework/followers","following_url":"https://api.github.com/users/joomla-framework/following{/other_user}","gists_url":"https://api.github.com/users/joomla-framework/gists{/gist_id}","starred_url":"https://api.github.com/users/joomla-framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joomla-framework/subscriptions","organizations_url":"https://api.github.com/users/joomla-framework/orgs","repos_url":"https://api.github.com/users/joomla-framework/repos","events_url":"https://api.github.com/users/joomla-framework/events{/privacy}","received_events_url":"https://api.github.com/users/joomla-framework/received_events","type":"Organization","site_admin":false},"repo":{"id":8385819,"name":"language","full_name":"joomla-framework/language","owner":{"login":"joomla-framework","id":6124926,"avatar_url":"https://avatars.githubusercontent.com/u/6124926?v=3","gravatar_id":"","url":"https://api.github.com/users/joomla-framework","html_url":"https://github.com/joomla-framework","followers_url":"https://api.github.com/users/joomla-framework/followers","following_url":"https://api.github.com/users/joomla-framework/following{/other_user}","gists_url":"https://api.github.com/users/joomla-framework/gists{/gist_id}","starred_url":"https://api.github.com/users/joomla-framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joomla-framework/subscriptions","organizations_url":"https://api.github.com/users/joomla-framework/orgs","repos_url":"https://api.github.com/users/joomla-framework/repos","events_url":"https://api.github.com/users/joomla-framework/events{/privacy}","received_events_url":"https://api.github.com/users/joomla-framework/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/joomla-framework/language","description":"Joomla Framework Language Package","fork":false,"url":"https://api.github.com/repos/joomla-framework/language","forks_url":"https://api.github.com/repos/joomla-framework/language/forks","keys_url":"https://api.github.com/repos/joomla-framework/language/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joomla-framework/language/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joomla-framework/language/teams","hooks_url":"https://api.github.com/repos/joomla-framework/language/hooks","issue_events_url":"https://api.github.com/repos/joomla-framework/language/issues/events{/number}","events_url":"https://api.github.com/repos/joomla-framework/language/events","assignees_url":"https://api.github.com/repos/joomla-framework/language/assignees{/user}","branches_url":"https://api.github.com/repos/joomla-framework/language/branches{/branch}","tags_url":"https://api.github.com/repos/joomla-framework/language/tags","blobs_url":"https://api.github.com/repos/joomla-framework/language/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joomla-framework/language/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joomla-framework/language/git/refs{/sha}","trees_url":"https://api.github.com/repos/joomla-framework/language/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joomla-framework/language/statuses/{sha}","languages_url":"https://api.github.com/repos/joomla-framework/language/languages","stargazers_url":"https://api.github.com/repos/joomla-framework/language/stargazers","contributors_url":"https://api.github.com/repos/joomla-framework/language/contributors","subscribers_url":"https://api.github.com/repos/joomla-framework/language/subscribers","subscription_url":"https://api.github.com/repos/joomla-framework/language/subscription","commits_url":"https://api.github.com/repos/joomla-framework/language/commits{/sha}","git_commits_url":"https://api.github.com/repos/joomla-framework/language/git/commits{/sha}","comments_url":"https://api.github.com/repos/joomla-framework/language/comments{/number}","issue_comment_url":"https://api.github.com/repos/joomla-framework/language/issues/comments{/number}","contents_url":"https://api.github.com/repos/joomla-framework/language/contents/{+path}","compare_url":"https://api.github.com/repos/joomla-framework/language/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joomla-framework/language/merges","archive_url":"https://api.github.com/repos/joomla-framework/language/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joomla-framework/language/downloads","issues_url":"https://api.github.com/repos/joomla-framework/language/issues{/number}","pulls_url":"https://api.github.com/repos/joomla-framework/language/pulls{/number}","milestones_url":"https://api.github.com/repos/joomla-framework/language/milestones{/number}","notifications_url":"https://api.github.com/repos/joomla-framework/language/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joomla-framework/language/labels{/name}","releases_url":"https://api.github.com/repos/joomla-framework/language/releases{/id}","created_at":"2013-02-24T03:24:58Z","updated_at":"2015-05-03T16:07:27Z","pushed_at":"2015-05-16T16:26:10Z","git_url":"git://github.com/joomla-framework/language.git","ssh_url":"git@github.com:joomla-framework/language.git","clone_url":"https://github.com/joomla-framework/language.git","svn_url":"https://github.com/joomla-framework/language","homepage":"","size":899,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":6,"forks":12,"open_issues":6,"watchers":2,"default_branch":"master"}},"base":{"label":"joomla-framework:2.0-dev","ref":"2.0-dev","sha":"c4b2985bf901a46e2d1112e412c12c32ec75ccba","user":{"login":"joomla-framework","id":6124926,"avatar_url":"https://avatars.githubusercontent.com/u/6124926?v=3","gravatar_id":"","url":"https://api.github.com/users/joomla-framework","html_url":"https://github.com/joomla-framework","followers_url":"https://api.github.com/users/joomla-framework/followers","following_url":"https://api.github.com/users/joomla-framework/following{/other_user}","gists_url":"https://api.github.com/users/joomla-framework/gists{/gist_id}","starred_url":"https://api.github.com/users/joomla-framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joomla-framework/subscriptions","organizations_url":"https://api.github.com/users/joomla-framework/orgs","repos_url":"https://api.github.com/users/joomla-framework/repos","events_url":"https://api.github.com/users/joomla-framework/events{/privacy}","received_events_url":"https://api.github.com/users/joomla-framework/received_events","type":"Organization","site_admin":false},"repo":{"id":8385819,"name":"language","full_name":"joomla-framework/language","owner":{"login":"joomla-framework","id":6124926,"avatar_url":"https://avatars.githubusercontent.com/u/6124926?v=3","gravatar_id":"","url":"https://api.github.com/users/joomla-framework","html_url":"https://github.com/joomla-framework","followers_url":"https://api.github.com/users/joomla-framework/followers","following_url":"https://api.github.com/users/joomla-framework/following{/other_user}","gists_url":"https://api.github.com/users/joomla-framework/gists{/gist_id}","starred_url":"https://api.github.com/users/joomla-framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joomla-framework/subscriptions","organizations_url":"https://api.github.com/users/joomla-framework/orgs","repos_url":"https://api.github.com/users/joomla-framework/repos","events_url":"https://api.github.com/users/joomla-framework/events{/privacy}","received_events_url":"https://api.github.com/users/joomla-framework/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/joomla-framework/language","description":"Joomla Framework Language Package","fork":false,"url":"https://api.github.com/repos/joomla-framework/language","forks_url":"https://api.github.com/repos/joomla-framework/language/forks","keys_url":"https://api.github.com/repos/joomla-framework/language/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joomla-framework/language/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joomla-framework/language/teams","hooks_url":"https://api.github.com/repos/joomla-framework/language/hooks","issue_events_url":"https://api.github.com/repos/joomla-framework/language/issues/events{/number}","events_url":"https://api.github.com/repos/joomla-framework/language/events","assignees_url":"https://api.github.com/repos/joomla-framework/language/assignees{/user}","branches_url":"https://api.github.com/repos/joomla-framework/language/branches{/branch}","tags_url":"https://api.github.com/repos/joomla-framework/language/tags","blobs_url":"https://api.github.com/repos/joomla-framework/language/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joomla-framework/language/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joomla-framework/language/git/refs{/sha}","trees_url":"https://api.github.com/repos/joomla-framework/language/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joomla-framework/language/statuses/{sha}","languages_url":"https://api.github.com/repos/joomla-framework/language/languages","stargazers_url":"https://api.github.com/repos/joomla-framework/language/stargazers","contributors_url":"https://api.github.com/repos/joomla-framework/language/contributors","subscribers_url":"https://api.github.com/repos/joomla-framework/language/subscribers","subscription_url":"https://api.github.com/repos/joomla-framework/language/subscription","commits_url":"https://api.github.com/repos/joomla-framework/language/commits{/sha}","git_commits_url":"https://api.github.com/repos/joomla-framework/language/git/commits{/sha}","comments_url":"https://api.github.com/repos/joomla-framework/language/comments{/number}","issue_comment_url":"https://api.github.com/repos/joomla-framework/language/issues/comments{/number}","contents_url":"https://api.github.com/repos/joomla-framework/language/contents/{+path}","compare_url":"https://api.github.com/repos/joomla-framework/language/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joomla-framework/language/merges","archive_url":"https://api.github.com/repos/joomla-framework/language/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joomla-framework/language/downloads","issues_url":"https://api.github.com/repos/joomla-framework/language/issues{/number}","pulls_url":"https://api.github.com/repos/joomla-framework/language/pulls{/number}","milestones_url":"https://api.github.com/repos/joomla-framework/language/milestones{/number}","notifications_url":"https://api.github.com/repos/joomla-framework/language/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joomla-framework/language/labels{/name}","releases_url":"https://api.github.com/repos/joomla-framework/language/releases{/id}","created_at":"2013-02-24T03:24:58Z","updated_at":"2015-05-03T16:07:27Z","pushed_at":"2015-05-16T16:26:10Z","git_url":"git://github.com/joomla-framework/language.git","ssh_url":"git@github.com:joomla-framework/language.git","clone_url":"https://github.com/joomla-framework/language.git","svn_url":"https://github.com/joomla-framework/language","homepage":"","size":899,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":6,"forks":12,"open_issues":6,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/joomla-framework/language/pulls/33"},"html":{"href":"https://github.com/joomla-framework/language/pull/33"},"issue":{"href":"https://api.github.com/repos/joomla-framework/language/issues/33"},"comments":{"href":"https://api.github.com/repos/joomla-framework/language/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/joomla-framework/language/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/joomla-framework/language/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joomla-framework/language/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/joomla-framework/language/statuses/8452d07c98fe9ea08a54473faede05d39a032895"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":96,"deletions":28,"changed_files":5}}