{"action":"created","comment":{"url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/pulls/comments/52759936","id":52759936,"diff_hunk":"@@ -14,6 +13,8 @@\n \n class GetTokensCommand extends ContainerAwareCommand","path":"Command/GetTokensCommand.php","position":12,"original_position":12,"commit_id":"f6e224f6dc037f44cf3a1d698cf24e62784c2664","original_commit_id":"207afeae8ce73159d07eed4484f0c00a240fca81","user":{"login":"vonschau","id":1563734,"avatar_url":"https://avatars.githubusercontent.com/u/1563734?v=3","gravatar_id":"","url":"https://api.github.com/users/vonschau","html_url":"https://github.com/vonschau","followers_url":"https://api.github.com/users/vonschau/followers","following_url":"https://api.github.com/users/vonschau/following{/other_user}","gists_url":"https://api.github.com/users/vonschau/gists{/gist_id}","starred_url":"https://api.github.com/users/vonschau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vonschau/subscriptions","organizations_url":"https://api.github.com/users/vonschau/orgs","repos_url":"https://api.github.com/users/vonschau/repos","events_url":"https://api.github.com/users/vonschau/events{/privacy}","received_events_url":"https://api.github.com/users/vonschau/received_events","type":"User","site_admin":false},"body":"Get -> Import","created_at":"2016-02-12T16:07:27Z","updated_at":"2016-02-12T16:07:27Z","html_url":"https://github.com/SYMBIO/orangegate4-translation-bundle/pull/2#discussion_r52759936","pull_request_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/pulls/comments/52759936"},"html":{"href":"https://github.com/SYMBIO/orangegate4-translation-bundle/pull/2#discussion_r52759936"},"pull_request":{"href":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/pulls/2","id":58905056,"html_url":"https://github.com/SYMBIO/orangegate4-translation-bundle/pull/2","diff_url":"https://github.com/SYMBIO/orangegate4-translation-bundle/pull/2.diff","patch_url":"https://github.com/SYMBIO/orangegate4-translation-bundle/pull/2.patch","issue_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/issues/2","number":2,"state":"open","locked":false,"title":"improvements of translation bundle","user":{"login":"Sklico","id":6402623,"avatar_url":"https://avatars.githubusercontent.com/u/6402623?v=3","gravatar_id":"","url":"https://api.github.com/users/Sklico","html_url":"https://github.com/Sklico","followers_url":"https://api.github.com/users/Sklico/followers","following_url":"https://api.github.com/users/Sklico/following{/other_user}","gists_url":"https://api.github.com/users/Sklico/gists{/gist_id}","starred_url":"https://api.github.com/users/Sklico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sklico/subscriptions","organizations_url":"https://api.github.com/users/Sklico/orgs","repos_url":"https://api.github.com/users/Sklico/repos","events_url":"https://api.github.com/users/Sklico/events{/privacy}","received_events_url":"https://api.github.com/users/Sklico/received_events","type":"User","site_admin":false},"body":"I made some changes in translation bundle, cause we need support for more message catalogues than one default (messages). I also created some commands and added translations to profiler to simplify the work with translations and possible debugging.\r\n\r\n**CHANGES**:\r\n- created TranslationsDataCollector, which shows translations loaded from database in profiler.\r\n\r\n- created LanguageCatalogue entity and LanguageCatalogueAdmin class, which represents message catalogue\r\n\r\n- edited LanguageToken entity, (System)LanguageTokenAdmin class, LanguageTranslation entity and (System)LanguageTranslationAdmin class to support message catalogues\r\n\r\n- edited DBLoader. Now it loads translations from all our catalogues in database\r\n\r\n- created ClearTranslationCacheCommand - it clears translation cache\r\n\r\n- created GetLoadedTranslationsCommand - it prints translations loaded from database. It is useful in production environment, where profiler doesn't exist   \r\n\r\n- created UpdateSystemTranslationsCommand - it updates all system translations in two ways:\r\n       1. from JSON dump file in dumps folder\r\n       2. from JSON dump file from specified folder\r\n\r\n- created UpdateTranslationDumpCommand - it updates JSON dump file in dumps folder\r\n\r\n- created composer ScriptHandler - it runs UpdateSystemTranslationsCommand. It is useful for our sandbox, when someone creates new project. This script will load all system translations from dump in to database.\r\n\r\n- edited GetTokensCommand to work with catalogues too","created_at":"2016-02-10T15:22:12Z","updated_at":"2016-02-12T16:07:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f65c7f280e7035abd7d5550e749b57f36ce6738e","assignee":{"login":"vonschau","id":1563734,"avatar_url":"https://avatars.githubusercontent.com/u/1563734?v=3","gravatar_id":"","url":"https://api.github.com/users/vonschau","html_url":"https://github.com/vonschau","followers_url":"https://api.github.com/users/vonschau/followers","following_url":"https://api.github.com/users/vonschau/following{/other_user}","gists_url":"https://api.github.com/users/vonschau/gists{/gist_id}","starred_url":"https://api.github.com/users/vonschau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vonschau/subscriptions","organizations_url":"https://api.github.com/users/vonschau/orgs","repos_url":"https://api.github.com/users/vonschau/repos","events_url":"https://api.github.com/users/vonschau/events{/privacy}","received_events_url":"https://api.github.com/users/vonschau/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/pulls/2/commits","review_comments_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/pulls/2/comments","review_comment_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/issues/2/comments","statuses_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/statuses/f6e224f6dc037f44cf3a1d698cf24e62784c2664","head":{"label":"SYMBIO:sklico","ref":"sklico","sha":"f6e224f6dc037f44cf3a1d698cf24e62784c2664","user":{"login":"SYMBIO","id":1370449,"avatar_url":"https://avatars.githubusercontent.com/u/1370449?v=3","gravatar_id":"","url":"https://api.github.com/users/SYMBIO","html_url":"https://github.com/SYMBIO","followers_url":"https://api.github.com/users/SYMBIO/followers","following_url":"https://api.github.com/users/SYMBIO/following{/other_user}","gists_url":"https://api.github.com/users/SYMBIO/gists{/gist_id}","starred_url":"https://api.github.com/users/SYMBIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SYMBIO/subscriptions","organizations_url":"https://api.github.com/users/SYMBIO/orgs","repos_url":"https://api.github.com/users/SYMBIO/repos","events_url":"https://api.github.com/users/SYMBIO/events{/privacy}","received_events_url":"https://api.github.com/users/SYMBIO/received_events","type":"Organization","site_admin":false},"repo":{"id":36424641,"name":"orangegate4-translation-bundle","full_name":"SYMBIO/orangegate4-translation-bundle","owner":{"login":"SYMBIO","id":1370449,"avatar_url":"https://avatars.githubusercontent.com/u/1370449?v=3","gravatar_id":"","url":"https://api.github.com/users/SYMBIO","html_url":"https://github.com/SYMBIO","followers_url":"https://api.github.com/users/SYMBIO/followers","following_url":"https://api.github.com/users/SYMBIO/following{/other_user}","gists_url":"https://api.github.com/users/SYMBIO/gists{/gist_id}","starred_url":"https://api.github.com/users/SYMBIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SYMBIO/subscriptions","organizations_url":"https://api.github.com/users/SYMBIO/orgs","repos_url":"https://api.github.com/users/SYMBIO/repos","events_url":"https://api.github.com/users/SYMBIO/events{/privacy}","received_events_url":"https://api.github.com/users/SYMBIO/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SYMBIO/orangegate4-translation-bundle","description":"","fork":false,"url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle","forks_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/forks","keys_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/teams","hooks_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/hooks","issue_events_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/issues/events{/number}","events_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/events","assignees_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/assignees{/user}","branches_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/branches{/branch}","tags_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/tags","blobs_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/statuses/{sha}","languages_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/languages","stargazers_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/stargazers","contributors_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/contributors","subscribers_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/subscribers","subscription_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/subscription","commits_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/contents/{+path}","compare_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/merges","archive_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/downloads","issues_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/issues{/number}","pulls_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/pulls{/number}","milestones_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/milestones{/number}","notifications_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/labels{/name}","releases_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/releases{/id}","deployments_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/deployments","created_at":"2015-05-28T08:21:20Z","updated_at":"2015-09-15T07:59:53Z","pushed_at":"2016-02-12T16:06:40Z","git_url":"git://github.com/SYMBIO/orangegate4-translation-bundle.git","ssh_url":"git@github.com:SYMBIO/orangegate4-translation-bundle.git","clone_url":"https://github.com/SYMBIO/orangegate4-translation-bundle.git","svn_url":"https://github.com/SYMBIO/orangegate4-translation-bundle","homepage":null,"size":44,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"SYMBIO:master","ref":"master","sha":"fd223f8bfb972e5f2f48614cc1c604bd73c39dbd","user":{"login":"SYMBIO","id":1370449,"avatar_url":"https://avatars.githubusercontent.com/u/1370449?v=3","gravatar_id":"","url":"https://api.github.com/users/SYMBIO","html_url":"https://github.com/SYMBIO","followers_url":"https://api.github.com/users/SYMBIO/followers","following_url":"https://api.github.com/users/SYMBIO/following{/other_user}","gists_url":"https://api.github.com/users/SYMBIO/gists{/gist_id}","starred_url":"https://api.github.com/users/SYMBIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SYMBIO/subscriptions","organizations_url":"https://api.github.com/users/SYMBIO/orgs","repos_url":"https://api.github.com/users/SYMBIO/repos","events_url":"https://api.github.com/users/SYMBIO/events{/privacy}","received_events_url":"https://api.github.com/users/SYMBIO/received_events","type":"Organization","site_admin":false},"repo":{"id":36424641,"name":"orangegate4-translation-bundle","full_name":"SYMBIO/orangegate4-translation-bundle","owner":{"login":"SYMBIO","id":1370449,"avatar_url":"https://avatars.githubusercontent.com/u/1370449?v=3","gravatar_id":"","url":"https://api.github.com/users/SYMBIO","html_url":"https://github.com/SYMBIO","followers_url":"https://api.github.com/users/SYMBIO/followers","following_url":"https://api.github.com/users/SYMBIO/following{/other_user}","gists_url":"https://api.github.com/users/SYMBIO/gists{/gist_id}","starred_url":"https://api.github.com/users/SYMBIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SYMBIO/subscriptions","organizations_url":"https://api.github.com/users/SYMBIO/orgs","repos_url":"https://api.github.com/users/SYMBIO/repos","events_url":"https://api.github.com/users/SYMBIO/events{/privacy}","received_events_url":"https://api.github.com/users/SYMBIO/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SYMBIO/orangegate4-translation-bundle","description":"","fork":false,"url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle","forks_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/forks","keys_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/teams","hooks_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/hooks","issue_events_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/issues/events{/number}","events_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/events","assignees_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/assignees{/user}","branches_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/branches{/branch}","tags_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/tags","blobs_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/statuses/{sha}","languages_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/languages","stargazers_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/stargazers","contributors_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/contributors","subscribers_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/subscribers","subscription_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/subscription","commits_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/contents/{+path}","compare_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/merges","archive_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/downloads","issues_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/issues{/number}","pulls_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/pulls{/number}","milestones_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/milestones{/number}","notifications_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/labels{/name}","releases_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/releases{/id}","deployments_url":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/deployments","created_at":"2015-05-28T08:21:20Z","updated_at":"2015-09-15T07:59:53Z","pushed_at":"2016-02-12T16:06:40Z","git_url":"git://github.com/SYMBIO/orangegate4-translation-bundle.git","ssh_url":"git@github.com:SYMBIO/orangegate4-translation-bundle.git","clone_url":"https://github.com/SYMBIO/orangegate4-translation-bundle.git","svn_url":"https://github.com/SYMBIO/orangegate4-translation-bundle","homepage":null,"size":44,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/pulls/2"},"html":{"href":"https://github.com/SYMBIO/orangegate4-translation-bundle/pull/2"},"issue":{"href":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/issues/2"},"comments":{"href":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/SYMBIO/orangegate4-translation-bundle/statuses/f6e224f6dc037f44cf3a1d698cf24e62784c2664"}}}}