{"action":"opened","number":521,"pull_request":{"url":"https://api.github.com/repos/nmap/nmap/pulls/521","id":82208393,"html_url":"https://github.com/nmap/nmap/pull/521","diff_url":"https://github.com/nmap/nmap/pull/521.diff","patch_url":"https://github.com/nmap/nmap/pull/521.patch","issue_url":"https://api.github.com/repos/nmap/nmap/issues/521","number":521,"state":"open","locked":false,"title":"Use the AppleLocale prefs directly","user":{"login":"W0naN0w","id":16716213,"avatar_url":"https://avatars.githubusercontent.com/u/16716213?v=3","gravatar_id":"","url":"https://api.github.com/users/W0naN0w","html_url":"https://github.com/W0naN0w","followers_url":"https://api.github.com/users/W0naN0w/followers","following_url":"https://api.github.com/users/W0naN0w/following{/other_user}","gists_url":"https://api.github.com/users/W0naN0w/gists{/gist_id}","starred_url":"https://api.github.com/users/W0naN0w/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/W0naN0w/subscriptions","organizations_url":"https://api.github.com/users/W0naN0w/orgs","repos_url":"https://api.github.com/users/W0naN0w/repos","events_url":"https://api.github.com/users/W0naN0w/events{/privacy}","received_events_url":"https://api.github.com/users/W0naN0w/received_events","type":"User","site_admin":false},"body":"This is really easier and much more portable (Mac OS 10.5 and later) than the other solution proposed. The problem with the actual code happens when I set English as my main language with a French localisation and keyboard. Sometimes, the AppleLanguages configuration file contains names like \"English\" instead of \"en\", \"EN\" or \"en_EN\". Moreover, there can be more than one language defined here. Instead, I suggest with this PR to use AppleLocale directly, which is in the \"en_EN\" format (or whatever language) and is set to the current language used by the machine. This would allow users to just launch Zenmap and have the software launched in the desired language without having to use the terminal (they can still change their machine language in the System Preferences or via the terminal, but it would be easier to use). ","created_at":"2016-08-22T15:09:22Z","updated_at":"2016-08-22T15:09:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/nmap/nmap/pulls/521/commits","review_comments_url":"https://api.github.com/repos/nmap/nmap/pulls/521/comments","review_comment_url":"https://api.github.com/repos/nmap/nmap/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nmap/nmap/issues/521/comments","statuses_url":"https://api.github.com/repos/nmap/nmap/statuses/ea4dab8fee9c1478b3ac218ed122d86e8de205f7","head":{"label":"W0naN0w:zenmap/lang_err","ref":"zenmap/lang_err","sha":"ea4dab8fee9c1478b3ac218ed122d86e8de205f7","user":{"login":"W0naN0w","id":16716213,"avatar_url":"https://avatars.githubusercontent.com/u/16716213?v=3","gravatar_id":"","url":"https://api.github.com/users/W0naN0w","html_url":"https://github.com/W0naN0w","followers_url":"https://api.github.com/users/W0naN0w/followers","following_url":"https://api.github.com/users/W0naN0w/following{/other_user}","gists_url":"https://api.github.com/users/W0naN0w/gists{/gist_id}","starred_url":"https://api.github.com/users/W0naN0w/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/W0naN0w/subscriptions","organizations_url":"https://api.github.com/users/W0naN0w/orgs","repos_url":"https://api.github.com/users/W0naN0w/repos","events_url":"https://api.github.com/users/W0naN0w/events{/privacy}","received_events_url":"https://api.github.com/users/W0naN0w/received_events","type":"User","site_admin":false},"repo":{"id":62215558,"name":"nmap","full_name":"W0naN0w/nmap","owner":{"login":"W0naN0w","id":16716213,"avatar_url":"https://avatars.githubusercontent.com/u/16716213?v=3","gravatar_id":"","url":"https://api.github.com/users/W0naN0w","html_url":"https://github.com/W0naN0w","followers_url":"https://api.github.com/users/W0naN0w/followers","following_url":"https://api.github.com/users/W0naN0w/following{/other_user}","gists_url":"https://api.github.com/users/W0naN0w/gists{/gist_id}","starred_url":"https://api.github.com/users/W0naN0w/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/W0naN0w/subscriptions","organizations_url":"https://api.github.com/users/W0naN0w/orgs","repos_url":"https://api.github.com/users/W0naN0w/repos","events_url":"https://api.github.com/users/W0naN0w/events{/privacy}","received_events_url":"https://api.github.com/users/W0naN0w/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/W0naN0w/nmap","description":"Nmap - the Network Mapper. Github mirror of official SVN repository.","fork":true,"url":"https://api.github.com/repos/W0naN0w/nmap","forks_url":"https://api.github.com/repos/W0naN0w/nmap/forks","keys_url":"https://api.github.com/repos/W0naN0w/nmap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/W0naN0w/nmap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/W0naN0w/nmap/teams","hooks_url":"https://api.github.com/repos/W0naN0w/nmap/hooks","issue_events_url":"https://api.github.com/repos/W0naN0w/nmap/issues/events{/number}","events_url":"https://api.github.com/repos/W0naN0w/nmap/events","assignees_url":"https://api.github.com/repos/W0naN0w/nmap/assignees{/user}","branches_url":"https://api.github.com/repos/W0naN0w/nmap/branches{/branch}","tags_url":"https://api.github.com/repos/W0naN0w/nmap/tags","blobs_url":"https://api.github.com/repos/W0naN0w/nmap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/W0naN0w/nmap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/W0naN0w/nmap/git/refs{/sha}","trees_url":"https://api.github.com/repos/W0naN0w/nmap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/W0naN0w/nmap/statuses/{sha}","languages_url":"https://api.github.com/repos/W0naN0w/nmap/languages","stargazers_url":"https://api.github.com/repos/W0naN0w/nmap/stargazers","contributors_url":"https://api.github.com/repos/W0naN0w/nmap/contributors","subscribers_url":"https://api.github.com/repos/W0naN0w/nmap/subscribers","subscription_url":"https://api.github.com/repos/W0naN0w/nmap/subscription","commits_url":"https://api.github.com/repos/W0naN0w/nmap/commits{/sha}","git_commits_url":"https://api.github.com/repos/W0naN0w/nmap/git/commits{/sha}","comments_url":"https://api.github.com/repos/W0naN0w/nmap/comments{/number}","issue_comment_url":"https://api.github.com/repos/W0naN0w/nmap/issues/comments{/number}","contents_url":"https://api.github.com/repos/W0naN0w/nmap/contents/{+path}","compare_url":"https://api.github.com/repos/W0naN0w/nmap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/W0naN0w/nmap/merges","archive_url":"https://api.github.com/repos/W0naN0w/nmap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/W0naN0w/nmap/downloads","issues_url":"https://api.github.com/repos/W0naN0w/nmap/issues{/number}","pulls_url":"https://api.github.com/repos/W0naN0w/nmap/pulls{/number}","milestones_url":"https://api.github.com/repos/W0naN0w/nmap/milestones{/number}","notifications_url":"https://api.github.com/repos/W0naN0w/nmap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/W0naN0w/nmap/labels{/name}","releases_url":"https://api.github.com/repos/W0naN0w/nmap/releases{/id}","deployments_url":"https://api.github.com/repos/W0naN0w/nmap/deployments","created_at":"2016-06-29T09:57:50Z","updated_at":"2016-06-29T09:57:59Z","pushed_at":"2016-08-22T14:57:55Z","git_url":"git://github.com/W0naN0w/nmap.git","ssh_url":"git@github.com:W0naN0w/nmap.git","clone_url":"https://github.com/W0naN0w/nmap.git","svn_url":"https://github.com/W0naN0w/nmap","homepage":"https://svn.nmap.org/","size":74023,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"nmap:master","ref":"master","sha":"020980bcbab81416b768a4b3a9d293fb66822f94","user":{"login":"nmap","id":63385,"avatar_url":"https://avatars.githubusercontent.com/u/63385?v=3","gravatar_id":"","url":"https://api.github.com/users/nmap","html_url":"https://github.com/nmap","followers_url":"https://api.github.com/users/nmap/followers","following_url":"https://api.github.com/users/nmap/following{/other_user}","gists_url":"https://api.github.com/users/nmap/gists{/gist_id}","starred_url":"https://api.github.com/users/nmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmap/subscriptions","organizations_url":"https://api.github.com/users/nmap/orgs","repos_url":"https://api.github.com/users/nmap/repos","events_url":"https://api.github.com/users/nmap/events{/privacy}","received_events_url":"https://api.github.com/users/nmap/received_events","type":"Organization","site_admin":false},"repo":{"id":3671479,"name":"nmap","full_name":"nmap/nmap","owner":{"login":"nmap","id":63385,"avatar_url":"https://avatars.githubusercontent.com/u/63385?v=3","gravatar_id":"","url":"https://api.github.com/users/nmap","html_url":"https://github.com/nmap","followers_url":"https://api.github.com/users/nmap/followers","following_url":"https://api.github.com/users/nmap/following{/other_user}","gists_url":"https://api.github.com/users/nmap/gists{/gist_id}","starred_url":"https://api.github.com/users/nmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmap/subscriptions","organizations_url":"https://api.github.com/users/nmap/orgs","repos_url":"https://api.github.com/users/nmap/repos","events_url":"https://api.github.com/users/nmap/events{/privacy}","received_events_url":"https://api.github.com/users/nmap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nmap/nmap","description":"Nmap - the Network Mapper. Github mirror of official SVN repository.","fork":false,"url":"https://api.github.com/repos/nmap/nmap","forks_url":"https://api.github.com/repos/nmap/nmap/forks","keys_url":"https://api.github.com/repos/nmap/nmap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nmap/nmap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nmap/nmap/teams","hooks_url":"https://api.github.com/repos/nmap/nmap/hooks","issue_events_url":"https://api.github.com/repos/nmap/nmap/issues/events{/number}","events_url":"https://api.github.com/repos/nmap/nmap/events","assignees_url":"https://api.github.com/repos/nmap/nmap/assignees{/user}","branches_url":"https://api.github.com/repos/nmap/nmap/branches{/branch}","tags_url":"https://api.github.com/repos/nmap/nmap/tags","blobs_url":"https://api.github.com/repos/nmap/nmap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nmap/nmap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nmap/nmap/git/refs{/sha}","trees_url":"https://api.github.com/repos/nmap/nmap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nmap/nmap/statuses/{sha}","languages_url":"https://api.github.com/repos/nmap/nmap/languages","stargazers_url":"https://api.github.com/repos/nmap/nmap/stargazers","contributors_url":"https://api.github.com/repos/nmap/nmap/contributors","subscribers_url":"https://api.github.com/repos/nmap/nmap/subscribers","subscription_url":"https://api.github.com/repos/nmap/nmap/subscription","commits_url":"https://api.github.com/repos/nmap/nmap/commits{/sha}","git_commits_url":"https://api.github.com/repos/nmap/nmap/git/commits{/sha}","comments_url":"https://api.github.com/repos/nmap/nmap/comments{/number}","issue_comment_url":"https://api.github.com/repos/nmap/nmap/issues/comments{/number}","contents_url":"https://api.github.com/repos/nmap/nmap/contents/{+path}","compare_url":"https://api.github.com/repos/nmap/nmap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nmap/nmap/merges","archive_url":"https://api.github.com/repos/nmap/nmap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nmap/nmap/downloads","issues_url":"https://api.github.com/repos/nmap/nmap/issues{/number}","pulls_url":"https://api.github.com/repos/nmap/nmap/pulls{/number}","milestones_url":"https://api.github.com/repos/nmap/nmap/milestones{/number}","notifications_url":"https://api.github.com/repos/nmap/nmap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nmap/nmap/labels{/name}","releases_url":"https://api.github.com/repos/nmap/nmap/releases{/id}","deployments_url":"https://api.github.com/repos/nmap/nmap/deployments","created_at":"2012-03-09T14:47:43Z","updated_at":"2016-08-21T14:45:17Z","pushed_at":"2016-08-22T15:09:22Z","git_url":"git://github.com/nmap/nmap.git","ssh_url":"git@github.com:nmap/nmap.git","clone_url":"https://github.com/nmap/nmap.git","svn_url":"https://github.com/nmap/nmap","homepage":"https://svn.nmap.org/","size":163092,"stargazers_count":725,"watchers_count":725,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":289,"mirror_url":null,"open_issues_count":194,"forks":289,"open_issues":194,"watchers":725,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nmap/nmap/pulls/521"},"html":{"href":"https://github.com/nmap/nmap/pull/521"},"issue":{"href":"https://api.github.com/repos/nmap/nmap/issues/521"},"comments":{"href":"https://api.github.com/repos/nmap/nmap/issues/521/comments"},"review_comments":{"href":"https://api.github.com/repos/nmap/nmap/pulls/521/comments"},"review_comment":{"href":"https://api.github.com/repos/nmap/nmap/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nmap/nmap/pulls/521/commits"},"statuses":{"href":"https://api.github.com/repos/nmap/nmap/statuses/ea4dab8fee9c1478b3ac218ed122d86e8de205f7"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":7,"changed_files":1}}
{"actor":{"display_login":"W0naN0w"}}