{"action":"created","comment":{"url":"https://api.github.com/repos/mapsme/omim/pulls/comments/83413302","pull_request_review_id":4259660,"id":83413302,"diff_hunk":"@@ -0,0 +1,138 @@\n+#!/usr/bin/env python2.7\n+#coding: utf8\n+from __future__ import print_function\n+\n+from argparse import ArgumentParser\n+from collections import defaultdict\n+from find_untranslated_strings import ITUNES_LANGS\n+import re\n+\n+KEY_RE = re.compile(\"^(.+?):\")\n+\n+class CategoriesConverter:\n+    def __init__(self):\n+        args = self.parse_args()\n+        self.categories = CategoriesTxt(args.categories)\n+        self.should_format = args.format\n+        self.output = args.output\n+\n+\n+    def process(self):\n+        if self.should_format:\n+            self.categories.write_formatted()\n+            exit(0)","path":"tools/python/categories_converter.py","position":null,"original_position":23,"commit_id":"f83f7e04368ada8df1854eae75524a8af13381ca","original_commit_id":"92e695f3f70b39d0bf5f2f7c10572ad80e3bf360","user":{"login":"mapsmetest","id":13031967,"avatar_url":"https://avatars.githubusercontent.com/u/13031967?v=3","gravatar_id":"","url":"https://api.github.com/users/mapsmetest","html_url":"https://github.com/mapsmetest","followers_url":"https://api.github.com/users/mapsmetest/followers","following_url":"https://api.github.com/users/mapsmetest/following{/other_user}","gists_url":"https://api.github.com/users/mapsmetest/gists{/gist_id}","starred_url":"https://api.github.com/users/mapsmetest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapsmetest/subscriptions","organizations_url":"https://api.github.com/users/mapsmetest/orgs","repos_url":"https://api.github.com/users/mapsmetest/repos","events_url":"https://api.github.com/users/mapsmetest/events{/privacy}","received_events_url":"https://api.github.com/users/mapsmetest/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2016-10-14T12:38:44Z","updated_at":"2016-10-14T12:38:44Z","html_url":"https://github.com/mapsme/omim/pull/4497#discussion_r83413302","pull_request_url":"https://api.github.com/repos/mapsme/omim/pulls/4497","_links":{"self":{"href":"https://api.github.com/repos/mapsme/omim/pulls/comments/83413302"},"html":{"href":"https://github.com/mapsme/omim/pull/4497#discussion_r83413302"},"pull_request":{"href":"https://api.github.com/repos/mapsme/omim/pulls/4497"}}},"pull_request":{"url":"https://api.github.com/repos/mapsme/omim/pulls/4497","id":89224773,"html_url":"https://github.com/mapsme/omim/pull/4497","diff_url":"https://github.com/mapsme/omim/pull/4497.diff","patch_url":"https://github.com/mapsme/omim/pull/4497.patch","issue_url":"https://api.github.com/repos/mapsme/omim/issues/4497","number":4497,"state":"open","locked":false,"title":"A script for converting categories.txt:","user":{"login":"mapsmetest","id":13031967,"avatar_url":"https://avatars.githubusercontent.com/u/13031967?v=3","gravatar_id":"","url":"https://api.github.com/users/mapsmetest","html_url":"https://github.com/mapsmetest","followers_url":"https://api.github.com/users/mapsmetest/followers","following_url":"https://api.github.com/users/mapsmetest/following{/other_user}","gists_url":"https://api.github.com/users/mapsmetest/gists{/gist_id}","starred_url":"https://api.github.com/users/mapsmetest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapsmetest/subscriptions","organizations_url":"https://api.github.com/users/mapsmetest/orgs","repos_url":"https://api.github.com/users/mapsmetest/repos","events_url":"https://api.github.com/users/mapsmetest/events{/privacy}","received_events_url":"https://api.github.com/users/mapsmetest/received_events","type":"User","site_admin":false},"body":"1) to strings txt, so that we can send it to our translation partners.\r\n2) for sorting categories.txt so that it is easier to work with, esp with future additions to it (if any)\r\n3) for merging new strings from po files into a given categories.txt file","created_at":"2016-10-13T15:23:46Z","updated_at":"2016-10-14T12:38:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dea706e7da64e51a00304af8a6deb93865111416","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mapsme/omim/pulls/4497/commits","review_comments_url":"https://api.github.com/repos/mapsme/omim/pulls/4497/comments","review_comment_url":"https://api.github.com/repos/mapsme/omim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mapsme/omim/issues/4497/comments","statuses_url":"https://api.github.com/repos/mapsme/omim/statuses/f83f7e04368ada8df1854eae75524a8af13381ca","head":{"label":"therearesomewhocallmetim:cat_to_str_txt","ref":"cat_to_str_txt","sha":"f83f7e04368ada8df1854eae75524a8af13381ca","user":{"login":"therearesomewhocallmetim","id":14867234,"avatar_url":"https://avatars.githubusercontent.com/u/14867234?v=3","gravatar_id":"","url":"https://api.github.com/users/therearesomewhocallmetim","html_url":"https://github.com/therearesomewhocallmetim","followers_url":"https://api.github.com/users/therearesomewhocallmetim/followers","following_url":"https://api.github.com/users/therearesomewhocallmetim/following{/other_user}","gists_url":"https://api.github.com/users/therearesomewhocallmetim/gists{/gist_id}","starred_url":"https://api.github.com/users/therearesomewhocallmetim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/therearesomewhocallmetim/subscriptions","organizations_url":"https://api.github.com/users/therearesomewhocallmetim/orgs","repos_url":"https://api.github.com/users/therearesomewhocallmetim/repos","events_url":"https://api.github.com/users/therearesomewhocallmetim/events{/privacy}","received_events_url":"https://api.github.com/users/therearesomewhocallmetim/received_events","type":"User","site_admin":false},"repo":{"id":43429309,"name":"omim","full_name":"therearesomewhocallmetim/omim","owner":{"login":"therearesomewhocallmetim","id":14867234,"avatar_url":"https://avatars.githubusercontent.com/u/14867234?v=3","gravatar_id":"","url":"https://api.github.com/users/therearesomewhocallmetim","html_url":"https://github.com/therearesomewhocallmetim","followers_url":"https://api.github.com/users/therearesomewhocallmetim/followers","following_url":"https://api.github.com/users/therearesomewhocallmetim/following{/other_user}","gists_url":"https://api.github.com/users/therearesomewhocallmetim/gists{/gist_id}","starred_url":"https://api.github.com/users/therearesomewhocallmetim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/therearesomewhocallmetim/subscriptions","organizations_url":"https://api.github.com/users/therearesomewhocallmetim/orgs","repos_url":"https://api.github.com/users/therearesomewhocallmetim/repos","events_url":"https://api.github.com/users/therearesomewhocallmetim/events{/privacy}","received_events_url":"https://api.github.com/users/therearesomewhocallmetim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/therearesomewhocallmetim/omim","description":"MAPS.ME - Offline OpenStreetMap maps for iOS/Android/Mac/Linux/Windows","fork":true,"url":"https://api.github.com/repos/therearesomewhocallmetim/omim","forks_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/forks","keys_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/teams","hooks_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/hooks","issue_events_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/issues/events{/number}","events_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/events","assignees_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/assignees{/user}","branches_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/branches{/branch}","tags_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/tags","blobs_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/git/refs{/sha}","trees_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/statuses/{sha}","languages_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/languages","stargazers_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/stargazers","contributors_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/contributors","subscribers_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/subscribers","subscription_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/subscription","commits_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/commits{/sha}","git_commits_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/git/commits{/sha}","comments_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/comments{/number}","issue_comment_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/issues/comments{/number}","contents_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/contents/{+path}","compare_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/merges","archive_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/downloads","issues_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/issues{/number}","pulls_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/pulls{/number}","milestones_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/milestones{/number}","notifications_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/labels{/name}","releases_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/releases{/id}","deployments_url":"https://api.github.com/repos/therearesomewhocallmetim/omim/deployments","created_at":"2015-09-30T11:33:11Z","updated_at":"2015-09-30T11:35:20Z","pushed_at":"2016-10-14T12:38:26Z","git_url":"git://github.com/therearesomewhocallmetim/omim.git","ssh_url":"git@github.com:therearesomewhocallmetim/omim.git","clone_url":"https://github.com/therearesomewhocallmetim/omim.git","svn_url":"https://github.com/therearesomewhocallmetim/omim","homepage":null,"size":2691717,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"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":0,"default_branch":"master"}},"base":{"label":"mapsme:master","ref":"master","sha":"3db6928a63942bafd1262bec0751eb72f0de3f2f","user":{"login":"mapsme","id":14185141,"avatar_url":"https://avatars.githubusercontent.com/u/14185141?v=3","gravatar_id":"","url":"https://api.github.com/users/mapsme","html_url":"https://github.com/mapsme","followers_url":"https://api.github.com/users/mapsme/followers","following_url":"https://api.github.com/users/mapsme/following{/other_user}","gists_url":"https://api.github.com/users/mapsme/gists{/gist_id}","starred_url":"https://api.github.com/users/mapsme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapsme/subscriptions","organizations_url":"https://api.github.com/users/mapsme/orgs","repos_url":"https://api.github.com/users/mapsme/repos","events_url":"https://api.github.com/users/mapsme/events{/privacy}","received_events_url":"https://api.github.com/users/mapsme/received_events","type":"Organization","site_admin":false},"repo":{"id":42798033,"name":"omim","full_name":"mapsme/omim","owner":{"login":"mapsme","id":14185141,"avatar_url":"https://avatars.githubusercontent.com/u/14185141?v=3","gravatar_id":"","url":"https://api.github.com/users/mapsme","html_url":"https://github.com/mapsme","followers_url":"https://api.github.com/users/mapsme/followers","following_url":"https://api.github.com/users/mapsme/following{/other_user}","gists_url":"https://api.github.com/users/mapsme/gists{/gist_id}","starred_url":"https://api.github.com/users/mapsme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapsme/subscriptions","organizations_url":"https://api.github.com/users/mapsme/orgs","repos_url":"https://api.github.com/users/mapsme/repos","events_url":"https://api.github.com/users/mapsme/events{/privacy}","received_events_url":"https://api.github.com/users/mapsme/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapsme/omim","description":"MAPS.ME - Offline OpenStreetMap maps for iOS/Android/Mac/Linux/Windows","fork":false,"url":"https://api.github.com/repos/mapsme/omim","forks_url":"https://api.github.com/repos/mapsme/omim/forks","keys_url":"https://api.github.com/repos/mapsme/omim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapsme/omim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapsme/omim/teams","hooks_url":"https://api.github.com/repos/mapsme/omim/hooks","issue_events_url":"https://api.github.com/repos/mapsme/omim/issues/events{/number}","events_url":"https://api.github.com/repos/mapsme/omim/events","assignees_url":"https://api.github.com/repos/mapsme/omim/assignees{/user}","branches_url":"https://api.github.com/repos/mapsme/omim/branches{/branch}","tags_url":"https://api.github.com/repos/mapsme/omim/tags","blobs_url":"https://api.github.com/repos/mapsme/omim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapsme/omim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapsme/omim/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapsme/omim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapsme/omim/statuses/{sha}","languages_url":"https://api.github.com/repos/mapsme/omim/languages","stargazers_url":"https://api.github.com/repos/mapsme/omim/stargazers","contributors_url":"https://api.github.com/repos/mapsme/omim/contributors","subscribers_url":"https://api.github.com/repos/mapsme/omim/subscribers","subscription_url":"https://api.github.com/repos/mapsme/omim/subscription","commits_url":"https://api.github.com/repos/mapsme/omim/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapsme/omim/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapsme/omim/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapsme/omim/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapsme/omim/contents/{+path}","compare_url":"https://api.github.com/repos/mapsme/omim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapsme/omim/merges","archive_url":"https://api.github.com/repos/mapsme/omim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapsme/omim/downloads","issues_url":"https://api.github.com/repos/mapsme/omim/issues{/number}","pulls_url":"https://api.github.com/repos/mapsme/omim/pulls{/number}","milestones_url":"https://api.github.com/repos/mapsme/omim/milestones{/number}","notifications_url":"https://api.github.com/repos/mapsme/omim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapsme/omim/labels{/name}","releases_url":"https://api.github.com/repos/mapsme/omim/releases{/id}","deployments_url":"https://api.github.com/repos/mapsme/omim/deployments","created_at":"2015-09-20T02:57:13Z","updated_at":"2016-10-14T04:25:59Z","pushed_at":"2016-10-14T12:38:27Z","git_url":"git://github.com/mapsme/omim.git","ssh_url":"git@github.com:mapsme/omim.git","clone_url":"https://github.com/mapsme/omim.git","svn_url":"https://github.com/mapsme/omim","homepage":null,"size":2842535,"stargazers_count":2005,"watchers_count":2005,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":375,"mirror_url":null,"open_issues_count":346,"forks":375,"open_issues":346,"watchers":2005,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mapsme/omim/pulls/4497"},"html":{"href":"https://github.com/mapsme/omim/pull/4497"},"issue":{"href":"https://api.github.com/repos/mapsme/omim/issues/4497"},"comments":{"href":"https://api.github.com/repos/mapsme/omim/issues/4497/comments"},"review_comments":{"href":"https://api.github.com/repos/mapsme/omim/pulls/4497/comments"},"review_comment":{"href":"https://api.github.com/repos/mapsme/omim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mapsme/omim/pulls/4497/commits"},"statuses":{"href":"https://api.github.com/repos/mapsme/omim/statuses/f83f7e04368ada8df1854eae75524a8af13381ca"}}}}
{"actor":{"display_login":"mapsmetest"}}