{"action":"created","comment":{"url":"https://api.github.com/repos/innstereo/innstereo/pulls/comments/34959256","id":34959256,"diff_hunk":"@@ -0,0 +1,79 @@\n+#==============================================================================#\n+#                     OpenStereoNet (fork of OpenStereo)                       #","path":"innstereo/i18n.py","position":2,"original_position":2,"commit_id":"7ca963264764d934891cd6cc48eb99e7a9ab8be9","original_commit_id":"7ca963264764d934891cd6cc48eb99e7a9ab8be9","user":{"login":"tobias47n9e","id":6953323,"avatar_url":"https://avatars.githubusercontent.com/u/6953323?v=3","gravatar_id":"","url":"https://api.github.com/users/tobias47n9e","html_url":"https://github.com/tobias47n9e","followers_url":"https://api.github.com/users/tobias47n9e/followers","following_url":"https://api.github.com/users/tobias47n9e/following{/other_user}","gists_url":"https://api.github.com/users/tobias47n9e/gists{/gist_id}","starred_url":"https://api.github.com/users/tobias47n9e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobias47n9e/subscriptions","organizations_url":"https://api.github.com/users/tobias47n9e/orgs","repos_url":"https://api.github.com/users/tobias47n9e/repos","events_url":"https://api.github.com/users/tobias47n9e/events{/privacy}","received_events_url":"https://api.github.com/users/tobias47n9e/received_events","type":"User","site_admin":false},"body":"Should the headline also say something like \"InnStereo: translation module\"?","created_at":"2015-07-19T15:54:17Z","updated_at":"2015-07-19T15:54:17Z","html_url":"https://github.com/innstereo/innstereo/pull/39#discussion_r34959256","pull_request_url":"https://api.github.com/repos/innstereo/innstereo/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/innstereo/innstereo/pulls/comments/34959256"},"html":{"href":"https://github.com/innstereo/innstereo/pull/39#discussion_r34959256"},"pull_request":{"href":"https://api.github.com/repos/innstereo/innstereo/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/innstereo/innstereo/pulls/39","id":40305818,"html_url":"https://github.com/innstereo/innstereo/pull/39","diff_url":"https://github.com/innstereo/innstereo/pull/39.diff","patch_url":"https://github.com/innstereo/innstereo/pull/39.patch","issue_url":"https://api.github.com/repos/innstereo/innstereo/issues/39","number":39,"state":"open","locked":false,"title":"Add support to i18n localization","user":{"login":"xquiet","id":2257148,"avatar_url":"https://avatars.githubusercontent.com/u/2257148?v=3","gravatar_id":"","url":"https://api.github.com/users/xquiet","html_url":"https://github.com/xquiet","followers_url":"https://api.github.com/users/xquiet/followers","following_url":"https://api.github.com/users/xquiet/following{/other_user}","gists_url":"https://api.github.com/users/xquiet/gists{/gist_id}","starred_url":"https://api.github.com/users/xquiet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xquiet/subscriptions","organizations_url":"https://api.github.com/users/xquiet/orgs","repos_url":"https://api.github.com/users/xquiet/repos","events_url":"https://api.github.com/users/xquiet/events{/privacy}","received_events_url":"https://api.github.com/users/xquiet/received_events","type":"User","site_admin":false},"body":"Hello,\r\nI managed to add multilingual support to InnStereo by using gettext through the i18n class (i18n.py).\r\nIt works for both glade gui and pure python code.\r\nThe EXTRAS file was added to briefely explains how to generate the pot file as it cannot be imported inside the repo for the rules specified inside .gitignore (anyway I think it should be added to repository to allow translators to download it and provide updated POs).\r\n\r\nRegards","created_at":"2015-07-19T09:40:29Z","updated_at":"2015-07-19T15:54:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8f7765591fb1279f342fcf992ad4293bded95fbd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/innstereo/innstereo/pulls/39/commits","review_comments_url":"https://api.github.com/repos/innstereo/innstereo/pulls/39/comments","review_comment_url":"https://api.github.com/repos/innstereo/innstereo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/innstereo/innstereo/issues/39/comments","statuses_url":"https://api.github.com/repos/innstereo/innstereo/statuses/7ca963264764d934891cd6cc48eb99e7a9ab8be9","head":{"label":"xquiet:master","ref":"master","sha":"7ca963264764d934891cd6cc48eb99e7a9ab8be9","user":{"login":"xquiet","id":2257148,"avatar_url":"https://avatars.githubusercontent.com/u/2257148?v=3","gravatar_id":"","url":"https://api.github.com/users/xquiet","html_url":"https://github.com/xquiet","followers_url":"https://api.github.com/users/xquiet/followers","following_url":"https://api.github.com/users/xquiet/following{/other_user}","gists_url":"https://api.github.com/users/xquiet/gists{/gist_id}","starred_url":"https://api.github.com/users/xquiet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xquiet/subscriptions","organizations_url":"https://api.github.com/users/xquiet/orgs","repos_url":"https://api.github.com/users/xquiet/repos","events_url":"https://api.github.com/users/xquiet/events{/privacy}","received_events_url":"https://api.github.com/users/xquiet/received_events","type":"User","site_admin":false},"repo":{"id":38713970,"name":"innstereo","full_name":"xquiet/innstereo","owner":{"login":"xquiet","id":2257148,"avatar_url":"https://avatars.githubusercontent.com/u/2257148?v=3","gravatar_id":"","url":"https://api.github.com/users/xquiet","html_url":"https://github.com/xquiet","followers_url":"https://api.github.com/users/xquiet/followers","following_url":"https://api.github.com/users/xquiet/following{/other_user}","gists_url":"https://api.github.com/users/xquiet/gists{/gist_id}","starred_url":"https://api.github.com/users/xquiet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xquiet/subscriptions","organizations_url":"https://api.github.com/users/xquiet/orgs","repos_url":"https://api.github.com/users/xquiet/repos","events_url":"https://api.github.com/users/xquiet/events{/privacy}","received_events_url":"https://api.github.com/users/xquiet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xquiet/innstereo","description":"An open source stereographic plotting program for structural geology and based on Mplstereonet.","fork":true,"url":"https://api.github.com/repos/xquiet/innstereo","forks_url":"https://api.github.com/repos/xquiet/innstereo/forks","keys_url":"https://api.github.com/repos/xquiet/innstereo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xquiet/innstereo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xquiet/innstereo/teams","hooks_url":"https://api.github.com/repos/xquiet/innstereo/hooks","issue_events_url":"https://api.github.com/repos/xquiet/innstereo/issues/events{/number}","events_url":"https://api.github.com/repos/xquiet/innstereo/events","assignees_url":"https://api.github.com/repos/xquiet/innstereo/assignees{/user}","branches_url":"https://api.github.com/repos/xquiet/innstereo/branches{/branch}","tags_url":"https://api.github.com/repos/xquiet/innstereo/tags","blobs_url":"https://api.github.com/repos/xquiet/innstereo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xquiet/innstereo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xquiet/innstereo/git/refs{/sha}","trees_url":"https://api.github.com/repos/xquiet/innstereo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xquiet/innstereo/statuses/{sha}","languages_url":"https://api.github.com/repos/xquiet/innstereo/languages","stargazers_url":"https://api.github.com/repos/xquiet/innstereo/stargazers","contributors_url":"https://api.github.com/repos/xquiet/innstereo/contributors","subscribers_url":"https://api.github.com/repos/xquiet/innstereo/subscribers","subscription_url":"https://api.github.com/repos/xquiet/innstereo/subscription","commits_url":"https://api.github.com/repos/xquiet/innstereo/commits{/sha}","git_commits_url":"https://api.github.com/repos/xquiet/innstereo/git/commits{/sha}","comments_url":"https://api.github.com/repos/xquiet/innstereo/comments{/number}","issue_comment_url":"https://api.github.com/repos/xquiet/innstereo/issues/comments{/number}","contents_url":"https://api.github.com/repos/xquiet/innstereo/contents/{+path}","compare_url":"https://api.github.com/repos/xquiet/innstereo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xquiet/innstereo/merges","archive_url":"https://api.github.com/repos/xquiet/innstereo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xquiet/innstereo/downloads","issues_url":"https://api.github.com/repos/xquiet/innstereo/issues{/number}","pulls_url":"https://api.github.com/repos/xquiet/innstereo/pulls{/number}","milestones_url":"https://api.github.com/repos/xquiet/innstereo/milestones{/number}","notifications_url":"https://api.github.com/repos/xquiet/innstereo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xquiet/innstereo/labels{/name}","releases_url":"https://api.github.com/repos/xquiet/innstereo/releases{/id}","created_at":"2015-07-07T20:47:41Z","updated_at":"2015-07-07T20:47:41Z","pushed_at":"2015-07-19T09:28:40Z","git_url":"git://github.com/xquiet/innstereo.git","ssh_url":"git@github.com:xquiet/innstereo.git","clone_url":"https://github.com/xquiet/innstereo.git","svn_url":"https://github.com/xquiet/innstereo","homepage":null,"size":12050,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"innstereo:master","ref":"master","sha":"c5840191a828a6d460da0fcd935a999d75450a45","user":{"login":"innstereo","id":11915271,"avatar_url":"https://avatars.githubusercontent.com/u/11915271?v=3","gravatar_id":"","url":"https://api.github.com/users/innstereo","html_url":"https://github.com/innstereo","followers_url":"https://api.github.com/users/innstereo/followers","following_url":"https://api.github.com/users/innstereo/following{/other_user}","gists_url":"https://api.github.com/users/innstereo/gists{/gist_id}","starred_url":"https://api.github.com/users/innstereo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/innstereo/subscriptions","organizations_url":"https://api.github.com/users/innstereo/orgs","repos_url":"https://api.github.com/users/innstereo/repos","events_url":"https://api.github.com/users/innstereo/events{/privacy}","received_events_url":"https://api.github.com/users/innstereo/received_events","type":"Organization","site_admin":false},"repo":{"id":30463632,"name":"innstereo","full_name":"innstereo/innstereo","owner":{"login":"innstereo","id":11915271,"avatar_url":"https://avatars.githubusercontent.com/u/11915271?v=3","gravatar_id":"","url":"https://api.github.com/users/innstereo","html_url":"https://github.com/innstereo","followers_url":"https://api.github.com/users/innstereo/followers","following_url":"https://api.github.com/users/innstereo/following{/other_user}","gists_url":"https://api.github.com/users/innstereo/gists{/gist_id}","starred_url":"https://api.github.com/users/innstereo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/innstereo/subscriptions","organizations_url":"https://api.github.com/users/innstereo/orgs","repos_url":"https://api.github.com/users/innstereo/repos","events_url":"https://api.github.com/users/innstereo/events{/privacy}","received_events_url":"https://api.github.com/users/innstereo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/innstereo/innstereo","description":"An open source stereographic plotting program for structural geology and based on Mplstereonet.","fork":false,"url":"https://api.github.com/repos/innstereo/innstereo","forks_url":"https://api.github.com/repos/innstereo/innstereo/forks","keys_url":"https://api.github.com/repos/innstereo/innstereo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/innstereo/innstereo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/innstereo/innstereo/teams","hooks_url":"https://api.github.com/repos/innstereo/innstereo/hooks","issue_events_url":"https://api.github.com/repos/innstereo/innstereo/issues/events{/number}","events_url":"https://api.github.com/repos/innstereo/innstereo/events","assignees_url":"https://api.github.com/repos/innstereo/innstereo/assignees{/user}","branches_url":"https://api.github.com/repos/innstereo/innstereo/branches{/branch}","tags_url":"https://api.github.com/repos/innstereo/innstereo/tags","blobs_url":"https://api.github.com/repos/innstereo/innstereo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/innstereo/innstereo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/innstereo/innstereo/git/refs{/sha}","trees_url":"https://api.github.com/repos/innstereo/innstereo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/innstereo/innstereo/statuses/{sha}","languages_url":"https://api.github.com/repos/innstereo/innstereo/languages","stargazers_url":"https://api.github.com/repos/innstereo/innstereo/stargazers","contributors_url":"https://api.github.com/repos/innstereo/innstereo/contributors","subscribers_url":"https://api.github.com/repos/innstereo/innstereo/subscribers","subscription_url":"https://api.github.com/repos/innstereo/innstereo/subscription","commits_url":"https://api.github.com/repos/innstereo/innstereo/commits{/sha}","git_commits_url":"https://api.github.com/repos/innstereo/innstereo/git/commits{/sha}","comments_url":"https://api.github.com/repos/innstereo/innstereo/comments{/number}","issue_comment_url":"https://api.github.com/repos/innstereo/innstereo/issues/comments{/number}","contents_url":"https://api.github.com/repos/innstereo/innstereo/contents/{+path}","compare_url":"https://api.github.com/repos/innstereo/innstereo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/innstereo/innstereo/merges","archive_url":"https://api.github.com/repos/innstereo/innstereo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/innstereo/innstereo/downloads","issues_url":"https://api.github.com/repos/innstereo/innstereo/issues{/number}","pulls_url":"https://api.github.com/repos/innstereo/innstereo/pulls{/number}","milestones_url":"https://api.github.com/repos/innstereo/innstereo/milestones{/number}","notifications_url":"https://api.github.com/repos/innstereo/innstereo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/innstereo/innstereo/labels{/name}","releases_url":"https://api.github.com/repos/innstereo/innstereo/releases{/id}","created_at":"2015-02-07T17:31:06Z","updated_at":"2015-07-05T22:20:39Z","pushed_at":"2015-07-19T09:40:30Z","git_url":"git://github.com/innstereo/innstereo.git","ssh_url":"git@github.com:innstereo/innstereo.git","clone_url":"https://github.com/innstereo/innstereo.git","svn_url":"https://github.com/innstereo/innstereo","homepage":null,"size":12245,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":22,"forks":3,"open_issues":22,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/innstereo/innstereo/pulls/39"},"html":{"href":"https://github.com/innstereo/innstereo/pull/39"},"issue":{"href":"https://api.github.com/repos/innstereo/innstereo/issues/39"},"comments":{"href":"https://api.github.com/repos/innstereo/innstereo/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/innstereo/innstereo/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/innstereo/innstereo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/innstereo/innstereo/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/innstereo/innstereo/statuses/7ca963264764d934891cd6cc48eb99e7a9ab8be9"}}}}