{"action":"created","comment":{"url":"https://api.github.com/repos/translate/translate/pulls/comments/56064779","id":56064779,"diff_hunk":"@@ -0,0 +1,76 @@\n+#!/usr/bin/env python\n+# -*- coding: utf-8 -*-\n+#\n+# Copyright 2006-2007 Zuza Software Foundation\n+#\n+# This file is part of translate.\n+#\n+# translate is free software; you can redistribute it and/or modify\n+# it under the terms of the GNU General Public License as published by\n+# the Free Software Foundation; either version 2 of the License, or\n+# (at your option) any later version.\n+#\n+# translate is distributed in the hope that it will be useful,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+# GNU General Public License for more details.\n+#\n+# You should have received a copy of the GNU General Public License\n+# along with this program; if not, see <http://www.gnu.org/licenses/>.\n+\n+\"\"\"Convert TermBase eXchange (.tbx) glossary file into a Gettext PO file\n+\n+See: http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/tbx2po.html\n+for examples and usage instructions\n+\"\"\"\n+\n+from translate.storage import po, tbx\n+\n+\n+class tbx2po:","path":"translate/convert/tbx2po.py","position":30,"original_position":30,"commit_id":"023d1b9e4bcb86cfa02135218c5245e6a4dd9ca3","original_commit_id":"023d1b9e4bcb86cfa02135218c5245e6a4dd9ca3","user":{"login":"unho","id":939880,"avatar_url":"https://avatars.githubusercontent.com/u/939880?v=3","gravatar_id":"","url":"https://api.github.com/users/unho","html_url":"https://github.com/unho","followers_url":"https://api.github.com/users/unho/followers","following_url":"https://api.github.com/users/unho/following{/other_user}","gists_url":"https://api.github.com/users/unho/gists{/gist_id}","starred_url":"https://api.github.com/users/unho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unho/subscriptions","organizations_url":"https://api.github.com/users/unho/orgs","repos_url":"https://api.github.com/users/unho/repos","events_url":"https://api.github.com/users/unho/events{/privacy}","received_events_url":"https://api.github.com/users/unho/received_events","type":"User","site_admin":false},"body":"I am ok with keeping the pattern as long as we don't introduce a class that doesn't inherit from `object`, which is not a good coding practice.","created_at":"2016-03-14T19:54:21Z","updated_at":"2016-03-14T19:54:21Z","html_url":"https://github.com/translate/translate/pull/3393#discussion_r56064779","pull_request_url":"https://api.github.com/repos/translate/translate/pulls/3393","_links":{"self":{"href":"https://api.github.com/repos/translate/translate/pulls/comments/56064779"},"html":{"href":"https://github.com/translate/translate/pull/3393#discussion_r56064779"},"pull_request":{"href":"https://api.github.com/repos/translate/translate/pulls/3393"}}},"pull_request":{"url":"https://api.github.com/repos/translate/translate/pulls/3393","id":62435484,"html_url":"https://github.com/translate/translate/pull/3393","diff_url":"https://github.com/translate/translate/pull/3393.diff","patch_url":"https://github.com/translate/translate/pull/3393.patch","issue_url":"https://api.github.com/repos/translate/translate/issues/3393","number":3393,"state":"open","locked":false,"title":"Add tbx2po","user":{"login":"dwaynebailey","id":647438,"avatar_url":"https://avatars.githubusercontent.com/u/647438?v=3","gravatar_id":"","url":"https://api.github.com/users/dwaynebailey","html_url":"https://github.com/dwaynebailey","followers_url":"https://api.github.com/users/dwaynebailey/followers","following_url":"https://api.github.com/users/dwaynebailey/following{/other_user}","gists_url":"https://api.github.com/users/dwaynebailey/gists{/gist_id}","starred_url":"https://api.github.com/users/dwaynebailey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwaynebailey/subscriptions","organizations_url":"https://api.github.com/users/dwaynebailey/orgs","repos_url":"https://api.github.com/users/dwaynebailey/repos","events_url":"https://api.github.com/users/dwaynebailey/events{/privacy}","received_events_url":"https://api.github.com/users/dwaynebailey/received_events","type":"User","site_admin":false},"body":"This adds a basic tbx2po converter.  It's aimed at Microsoft TBX files conversion and nothing much else.","created_at":"2016-03-10T18:40:22Z","updated_at":"2016-03-14T19:54:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"197ab4de8c538759313792677e4b630ea06e2d06","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/translate/translate/pulls/3393/commits","review_comments_url":"https://api.github.com/repos/translate/translate/pulls/3393/comments","review_comment_url":"https://api.github.com/repos/translate/translate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/translate/translate/issues/3393/comments","statuses_url":"https://api.github.com/repos/translate/translate/statuses/023d1b9e4bcb86cfa02135218c5245e6a4dd9ca3","head":{"label":"dwaynebailey:feature/tbx2po","ref":"feature/tbx2po","sha":"023d1b9e4bcb86cfa02135218c5245e6a4dd9ca3","user":{"login":"dwaynebailey","id":647438,"avatar_url":"https://avatars.githubusercontent.com/u/647438?v=3","gravatar_id":"","url":"https://api.github.com/users/dwaynebailey","html_url":"https://github.com/dwaynebailey","followers_url":"https://api.github.com/users/dwaynebailey/followers","following_url":"https://api.github.com/users/dwaynebailey/following{/other_user}","gists_url":"https://api.github.com/users/dwaynebailey/gists{/gist_id}","starred_url":"https://api.github.com/users/dwaynebailey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwaynebailey/subscriptions","organizations_url":"https://api.github.com/users/dwaynebailey/orgs","repos_url":"https://api.github.com/users/dwaynebailey/repos","events_url":"https://api.github.com/users/dwaynebailey/events{/privacy}","received_events_url":"https://api.github.com/users/dwaynebailey/received_events","type":"User","site_admin":false},"repo":{"id":16394763,"name":"translate","full_name":"dwaynebailey/translate","owner":{"login":"dwaynebailey","id":647438,"avatar_url":"https://avatars.githubusercontent.com/u/647438?v=3","gravatar_id":"","url":"https://api.github.com/users/dwaynebailey","html_url":"https://github.com/dwaynebailey","followers_url":"https://api.github.com/users/dwaynebailey/followers","following_url":"https://api.github.com/users/dwaynebailey/following{/other_user}","gists_url":"https://api.github.com/users/dwaynebailey/gists{/gist_id}","starred_url":"https://api.github.com/users/dwaynebailey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwaynebailey/subscriptions","organizations_url":"https://api.github.com/users/dwaynebailey/orgs","repos_url":"https://api.github.com/users/dwaynebailey/repos","events_url":"https://api.github.com/users/dwaynebailey/events{/privacy}","received_events_url":"https://api.github.com/users/dwaynebailey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dwaynebailey/translate","description":"Useful localization tools with Python API for building localization & translation systems","fork":true,"url":"https://api.github.com/repos/dwaynebailey/translate","forks_url":"https://api.github.com/repos/dwaynebailey/translate/forks","keys_url":"https://api.github.com/repos/dwaynebailey/translate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dwaynebailey/translate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dwaynebailey/translate/teams","hooks_url":"https://api.github.com/repos/dwaynebailey/translate/hooks","issue_events_url":"https://api.github.com/repos/dwaynebailey/translate/issues/events{/number}","events_url":"https://api.github.com/repos/dwaynebailey/translate/events","assignees_url":"https://api.github.com/repos/dwaynebailey/translate/assignees{/user}","branches_url":"https://api.github.com/repos/dwaynebailey/translate/branches{/branch}","tags_url":"https://api.github.com/repos/dwaynebailey/translate/tags","blobs_url":"https://api.github.com/repos/dwaynebailey/translate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dwaynebailey/translate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dwaynebailey/translate/git/refs{/sha}","trees_url":"https://api.github.com/repos/dwaynebailey/translate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dwaynebailey/translate/statuses/{sha}","languages_url":"https://api.github.com/repos/dwaynebailey/translate/languages","stargazers_url":"https://api.github.com/repos/dwaynebailey/translate/stargazers","contributors_url":"https://api.github.com/repos/dwaynebailey/translate/contributors","subscribers_url":"https://api.github.com/repos/dwaynebailey/translate/subscribers","subscription_url":"https://api.github.com/repos/dwaynebailey/translate/subscription","commits_url":"https://api.github.com/repos/dwaynebailey/translate/commits{/sha}","git_commits_url":"https://api.github.com/repos/dwaynebailey/translate/git/commits{/sha}","comments_url":"https://api.github.com/repos/dwaynebailey/translate/comments{/number}","issue_comment_url":"https://api.github.com/repos/dwaynebailey/translate/issues/comments{/number}","contents_url":"https://api.github.com/repos/dwaynebailey/translate/contents/{+path}","compare_url":"https://api.github.com/repos/dwaynebailey/translate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dwaynebailey/translate/merges","archive_url":"https://api.github.com/repos/dwaynebailey/translate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dwaynebailey/translate/downloads","issues_url":"https://api.github.com/repos/dwaynebailey/translate/issues{/number}","pulls_url":"https://api.github.com/repos/dwaynebailey/translate/pulls{/number}","milestones_url":"https://api.github.com/repos/dwaynebailey/translate/milestones{/number}","notifications_url":"https://api.github.com/repos/dwaynebailey/translate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dwaynebailey/translate/labels{/name}","releases_url":"https://api.github.com/repos/dwaynebailey/translate/releases{/id}","deployments_url":"https://api.github.com/repos/dwaynebailey/translate/deployments","created_at":"2014-01-30T23:49:15Z","updated_at":"2015-03-13T23:58:05Z","pushed_at":"2016-03-14T13:19:40Z","git_url":"git://github.com/dwaynebailey/translate.git","ssh_url":"git@github.com:dwaynebailey/translate.git","clone_url":"https://github.com/dwaynebailey/translate.git","svn_url":"https://github.com/dwaynebailey/translate","homepage":"http://toolkit.translatehouse.org","size":29262,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"translate:master","ref":"master","sha":"6b835e0e2574b55795c2183bb74e9e927fce421b","user":{"login":"translate","id":1538178,"avatar_url":"https://avatars.githubusercontent.com/u/1538178?v=3","gravatar_id":"","url":"https://api.github.com/users/translate","html_url":"https://github.com/translate","followers_url":"https://api.github.com/users/translate/followers","following_url":"https://api.github.com/users/translate/following{/other_user}","gists_url":"https://api.github.com/users/translate/gists{/gist_id}","starred_url":"https://api.github.com/users/translate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/translate/subscriptions","organizations_url":"https://api.github.com/users/translate/orgs","repos_url":"https://api.github.com/users/translate/repos","events_url":"https://api.github.com/users/translate/events{/privacy}","received_events_url":"https://api.github.com/users/translate/received_events","type":"Organization","site_admin":false},"repo":{"id":3769696,"name":"translate","full_name":"translate/translate","owner":{"login":"translate","id":1538178,"avatar_url":"https://avatars.githubusercontent.com/u/1538178?v=3","gravatar_id":"","url":"https://api.github.com/users/translate","html_url":"https://github.com/translate","followers_url":"https://api.github.com/users/translate/followers","following_url":"https://api.github.com/users/translate/following{/other_user}","gists_url":"https://api.github.com/users/translate/gists{/gist_id}","starred_url":"https://api.github.com/users/translate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/translate/subscriptions","organizations_url":"https://api.github.com/users/translate/orgs","repos_url":"https://api.github.com/users/translate/repos","events_url":"https://api.github.com/users/translate/events{/privacy}","received_events_url":"https://api.github.com/users/translate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/translate/translate","description":"Useful localization tools with Python API for building localization & translation systems","fork":false,"url":"https://api.github.com/repos/translate/translate","forks_url":"https://api.github.com/repos/translate/translate/forks","keys_url":"https://api.github.com/repos/translate/translate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/translate/translate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/translate/translate/teams","hooks_url":"https://api.github.com/repos/translate/translate/hooks","issue_events_url":"https://api.github.com/repos/translate/translate/issues/events{/number}","events_url":"https://api.github.com/repos/translate/translate/events","assignees_url":"https://api.github.com/repos/translate/translate/assignees{/user}","branches_url":"https://api.github.com/repos/translate/translate/branches{/branch}","tags_url":"https://api.github.com/repos/translate/translate/tags","blobs_url":"https://api.github.com/repos/translate/translate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/translate/translate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/translate/translate/git/refs{/sha}","trees_url":"https://api.github.com/repos/translate/translate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/translate/translate/statuses/{sha}","languages_url":"https://api.github.com/repos/translate/translate/languages","stargazers_url":"https://api.github.com/repos/translate/translate/stargazers","contributors_url":"https://api.github.com/repos/translate/translate/contributors","subscribers_url":"https://api.github.com/repos/translate/translate/subscribers","subscription_url":"https://api.github.com/repos/translate/translate/subscription","commits_url":"https://api.github.com/repos/translate/translate/commits{/sha}","git_commits_url":"https://api.github.com/repos/translate/translate/git/commits{/sha}","comments_url":"https://api.github.com/repos/translate/translate/comments{/number}","issue_comment_url":"https://api.github.com/repos/translate/translate/issues/comments{/number}","contents_url":"https://api.github.com/repos/translate/translate/contents/{+path}","compare_url":"https://api.github.com/repos/translate/translate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/translate/translate/merges","archive_url":"https://api.github.com/repos/translate/translate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/translate/translate/downloads","issues_url":"https://api.github.com/repos/translate/translate/issues{/number}","pulls_url":"https://api.github.com/repos/translate/translate/pulls{/number}","milestones_url":"https://api.github.com/repos/translate/translate/milestones{/number}","notifications_url":"https://api.github.com/repos/translate/translate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/translate/translate/labels{/name}","releases_url":"https://api.github.com/repos/translate/translate/releases{/id}","deployments_url":"https://api.github.com/repos/translate/translate/deployments","created_at":"2012-03-19T23:05:29Z","updated_at":"2016-03-10T04:52:51Z","pushed_at":"2016-03-14T13:19:00Z","git_url":"git://github.com/translate/translate.git","ssh_url":"git@github.com:translate/translate.git","clone_url":"https://github.com/translate/translate.git","svn_url":"https://github.com/translate/translate","homepage":"http://toolkit.translatehouse.org","size":29609,"stargazers_count":210,"watchers_count":210,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":103,"mirror_url":null,"open_issues_count":320,"forks":103,"open_issues":320,"watchers":210,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/translate/translate/pulls/3393"},"html":{"href":"https://github.com/translate/translate/pull/3393"},"issue":{"href":"https://api.github.com/repos/translate/translate/issues/3393"},"comments":{"href":"https://api.github.com/repos/translate/translate/issues/3393/comments"},"review_comments":{"href":"https://api.github.com/repos/translate/translate/pulls/3393/comments"},"review_comment":{"href":"https://api.github.com/repos/translate/translate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/translate/translate/pulls/3393/commits"},"statuses":{"href":"https://api.github.com/repos/translate/translate/statuses/023d1b9e4bcb86cfa02135218c5245e6a4dd9ca3"}}}}