{"action":"created","comment":{"url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/pulls/comments/193438034","pull_request_review_id":126410099,"id":193438034,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MzQzODAzNA==","diff_hunk":"@@ -0,0 +1,59 @@\n+import 'package:Tubuddy/translated_app.dart';\n+import 'package:Tubuddy/tubuddy_strings.dart';\n+import 'package:flutter/cupertino.dart';\n+import 'package:flutter/material.dart';\n+import 'package:flutter_cupertino_settings/flutter_cupertino_settings.dart';\n+import 'package:flutter/widgets.dart';\n+\n+class SettingsPage extends StatelessWidget {\n+  final List<String> languages = [\n+    'Deutsch',\n+    'English',\n+    'Nederlands',\n+    'Românesc'\n+  ];\n+\n+  final Map<String, String> languageCodes = {\n+    'English': 'en',\n+    'Deutsch': 'de',\n+    'Nederlands': 'nl',\n+    'Românesc': 'ro'\n+  };\n+\n+  final VoidCallback onLogOut;\n+\n+  SettingsPage(this.onLogOut);\n+\n+  @override\n+  Widget build(BuildContext context) {\n+    String languageCode = UserSettings.of(context).userLanguage;\n+    if (languageCode == '') {\n+      languageCode = Localizations.localeOf(context).languageCode;\n+      if (!languageCodes.containsValue(languageCode)) {\n+        languageCode = 'en';\n+      }\n+    }\n+\n+    int selectedItem = 1;\n+    int i = 0;\n+    languages.forEach((str) {\n+      if (languageCodes[str] == languageCode) {\n+        selectedItem = i;","path":"tuberculosis/lib/pages/settings_page.dart","position":41,"original_position":41,"commit_id":"0911ebae310e30e2fe9efa19dd59efdc824670f3","original_commit_id":"0911ebae310e30e2fe9efa19dd59efdc824670f3","user":{"login":"Micrified","id":6962320,"node_id":"MDQ6VXNlcjY5NjIzMjA=","avatar_url":"https://avatars3.githubusercontent.com/u/6962320?v=4","gravatar_id":"","url":"https://api.github.com/users/Micrified","html_url":"https://github.com/Micrified","followers_url":"https://api.github.com/users/Micrified/followers","following_url":"https://api.github.com/users/Micrified/following{/other_user}","gists_url":"https://api.github.com/users/Micrified/gists{/gist_id}","starred_url":"https://api.github.com/users/Micrified/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Micrified/subscriptions","organizations_url":"https://api.github.com/users/Micrified/orgs","repos_url":"https://api.github.com/users/Micrified/repos","events_url":"https://api.github.com/users/Micrified/events{/privacy}","received_events_url":"https://api.github.com/users/Micrified/received_events","type":"User","site_admin":false},"body":"Could break here to save an iteration or two no? Of course, it's only a trivial change.","created_at":"2018-06-06T14:48:00Z","updated_at":"2018-06-06T14:48:01Z","html_url":"https://github.com/RUGSoftEng/2018-Tuberculosis-iOS/pull/71#discussion_r193438034","pull_request_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/pulls/71","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/pulls/comments/193438034"},"html":{"href":"https://github.com/RUGSoftEng/2018-Tuberculosis-iOS/pull/71#discussion_r193438034"},"pull_request":{"href":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/pulls/71"}}},"pull_request":{"url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/pulls/71","id":192703899,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyNzAzODk5","html_url":"https://github.com/RUGSoftEng/2018-Tuberculosis-iOS/pull/71","diff_url":"https://github.com/RUGSoftEng/2018-Tuberculosis-iOS/pull/71.diff","patch_url":"https://github.com/RUGSoftEng/2018-Tuberculosis-iOS/pull/71.patch","issue_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/issues/71","number":71,"state":"open","locked":false,"title":"Development to master","user":{"login":"hiddefolkertsma","id":14166902,"node_id":"MDQ6VXNlcjE0MTY2OTAy","avatar_url":"https://avatars1.githubusercontent.com/u/14166902?v=4","gravatar_id":"","url":"https://api.github.com/users/hiddefolkertsma","html_url":"https://github.com/hiddefolkertsma","followers_url":"https://api.github.com/users/hiddefolkertsma/followers","following_url":"https://api.github.com/users/hiddefolkertsma/following{/other_user}","gists_url":"https://api.github.com/users/hiddefolkertsma/gists{/gist_id}","starred_url":"https://api.github.com/users/hiddefolkertsma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiddefolkertsma/subscriptions","organizations_url":"https://api.github.com/users/hiddefolkertsma/orgs","repos_url":"https://api.github.com/users/hiddefolkertsma/repos","events_url":"https://api.github.com/users/hiddefolkertsma/events{/privacy}","received_events_url":"https://api.github.com/users/hiddefolkertsma/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-05T13:17:41Z","updated_at":"2018-06-06T14:48:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4e7d7592ca0343cba017f121ff6879b31ad185d2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/pulls/71/commits","review_comments_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/pulls/71/comments","review_comment_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/issues/71/comments","statuses_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/statuses/0911ebae310e30e2fe9efa19dd59efdc824670f3","head":{"label":"RUGSoftEng:development","ref":"development","sha":"0911ebae310e30e2fe9efa19dd59efdc824670f3","user":{"login":"RUGSoftEng","id":17049951,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MDQ5OTUx","avatar_url":"https://avatars3.githubusercontent.com/u/17049951?v=4","gravatar_id":"","url":"https://api.github.com/users/RUGSoftEng","html_url":"https://github.com/RUGSoftEng","followers_url":"https://api.github.com/users/RUGSoftEng/followers","following_url":"https://api.github.com/users/RUGSoftEng/following{/other_user}","gists_url":"https://api.github.com/users/RUGSoftEng/gists{/gist_id}","starred_url":"https://api.github.com/users/RUGSoftEng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RUGSoftEng/subscriptions","organizations_url":"https://api.github.com/users/RUGSoftEng/orgs","repos_url":"https://api.github.com/users/RUGSoftEng/repos","events_url":"https://api.github.com/users/RUGSoftEng/events{/privacy}","received_events_url":"https://api.github.com/users/RUGSoftEng/received_events","type":"Organization","site_admin":false},"repo":{"id":125565639,"node_id":"MDEwOlJlcG9zaXRvcnkxMjU1NjU2Mzk=","name":"2018-Tuberculosis-iOS","full_name":"RUGSoftEng/2018-Tuberculosis-iOS","owner":{"login":"RUGSoftEng","id":17049951,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MDQ5OTUx","avatar_url":"https://avatars3.githubusercontent.com/u/17049951?v=4","gravatar_id":"","url":"https://api.github.com/users/RUGSoftEng","html_url":"https://github.com/RUGSoftEng","followers_url":"https://api.github.com/users/RUGSoftEng/followers","following_url":"https://api.github.com/users/RUGSoftEng/following{/other_user}","gists_url":"https://api.github.com/users/RUGSoftEng/gists{/gist_id}","starred_url":"https://api.github.com/users/RUGSoftEng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RUGSoftEng/subscriptions","organizations_url":"https://api.github.com/users/RUGSoftEng/orgs","repos_url":"https://api.github.com/users/RUGSoftEng/repos","events_url":"https://api.github.com/users/RUGSoftEng/events{/privacy}","received_events_url":"https://api.github.com/users/RUGSoftEng/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RUGSoftEng/2018-Tuberculosis-iOS","description":null,"fork":false,"url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS","forks_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/forks","keys_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/teams","hooks_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/hooks","issue_events_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/issues/events{/number}","events_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/events","assignees_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/assignees{/user}","branches_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/branches{/branch}","tags_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/tags","blobs_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/statuses/{sha}","languages_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/languages","stargazers_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/stargazers","contributors_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/contributors","subscribers_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/subscribers","subscription_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/subscription","commits_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/contents/{+path}","compare_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/merges","archive_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/downloads","issues_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/issues{/number}","pulls_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/pulls{/number}","milestones_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/milestones{/number}","notifications_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/labels{/name}","releases_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/releases{/id}","deployments_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/deployments","created_at":"2018-03-16T20:18:03Z","updated_at":"2018-04-25T08:50:10Z","pushed_at":"2018-06-05T13:17:41Z","git_url":"git://github.com/RUGSoftEng/2018-Tuberculosis-iOS.git","ssh_url":"git@github.com:RUGSoftEng/2018-Tuberculosis-iOS.git","clone_url":"https://github.com/RUGSoftEng/2018-Tuberculosis-iOS.git","svn_url":"https://github.com/RUGSoftEng/2018-Tuberculosis-iOS","homepage":null,"size":767,"stargazers_count":0,"watchers_count":0,"language":"Dart","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"RUGSoftEng:master","ref":"master","sha":"45cb02a22eade0d51f6ca50e0590718939c34c5e","user":{"login":"RUGSoftEng","id":17049951,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MDQ5OTUx","avatar_url":"https://avatars3.githubusercontent.com/u/17049951?v=4","gravatar_id":"","url":"https://api.github.com/users/RUGSoftEng","html_url":"https://github.com/RUGSoftEng","followers_url":"https://api.github.com/users/RUGSoftEng/followers","following_url":"https://api.github.com/users/RUGSoftEng/following{/other_user}","gists_url":"https://api.github.com/users/RUGSoftEng/gists{/gist_id}","starred_url":"https://api.github.com/users/RUGSoftEng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RUGSoftEng/subscriptions","organizations_url":"https://api.github.com/users/RUGSoftEng/orgs","repos_url":"https://api.github.com/users/RUGSoftEng/repos","events_url":"https://api.github.com/users/RUGSoftEng/events{/privacy}","received_events_url":"https://api.github.com/users/RUGSoftEng/received_events","type":"Organization","site_admin":false},"repo":{"id":125565639,"node_id":"MDEwOlJlcG9zaXRvcnkxMjU1NjU2Mzk=","name":"2018-Tuberculosis-iOS","full_name":"RUGSoftEng/2018-Tuberculosis-iOS","owner":{"login":"RUGSoftEng","id":17049951,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MDQ5OTUx","avatar_url":"https://avatars3.githubusercontent.com/u/17049951?v=4","gravatar_id":"","url":"https://api.github.com/users/RUGSoftEng","html_url":"https://github.com/RUGSoftEng","followers_url":"https://api.github.com/users/RUGSoftEng/followers","following_url":"https://api.github.com/users/RUGSoftEng/following{/other_user}","gists_url":"https://api.github.com/users/RUGSoftEng/gists{/gist_id}","starred_url":"https://api.github.com/users/RUGSoftEng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RUGSoftEng/subscriptions","organizations_url":"https://api.github.com/users/RUGSoftEng/orgs","repos_url":"https://api.github.com/users/RUGSoftEng/repos","events_url":"https://api.github.com/users/RUGSoftEng/events{/privacy}","received_events_url":"https://api.github.com/users/RUGSoftEng/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RUGSoftEng/2018-Tuberculosis-iOS","description":null,"fork":false,"url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS","forks_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/forks","keys_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/teams","hooks_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/hooks","issue_events_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/issues/events{/number}","events_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/events","assignees_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/assignees{/user}","branches_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/branches{/branch}","tags_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/tags","blobs_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/statuses/{sha}","languages_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/languages","stargazers_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/stargazers","contributors_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/contributors","subscribers_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/subscribers","subscription_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/subscription","commits_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/contents/{+path}","compare_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/merges","archive_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/downloads","issues_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/issues{/number}","pulls_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/pulls{/number}","milestones_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/milestones{/number}","notifications_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/labels{/name}","releases_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/releases{/id}","deployments_url":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/deployments","created_at":"2018-03-16T20:18:03Z","updated_at":"2018-04-25T08:50:10Z","pushed_at":"2018-06-05T13:17:41Z","git_url":"git://github.com/RUGSoftEng/2018-Tuberculosis-iOS.git","ssh_url":"git@github.com:RUGSoftEng/2018-Tuberculosis-iOS.git","clone_url":"https://github.com/RUGSoftEng/2018-Tuberculosis-iOS.git","svn_url":"https://github.com/RUGSoftEng/2018-Tuberculosis-iOS","homepage":null,"size":767,"stargazers_count":0,"watchers_count":0,"language":"Dart","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/pulls/71"},"html":{"href":"https://github.com/RUGSoftEng/2018-Tuberculosis-iOS/pull/71"},"issue":{"href":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/issues/71"},"comments":{"href":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/issues/71/comments"},"review_comments":{"href":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/pulls/71/comments"},"review_comment":{"href":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/pulls/71/commits"},"statuses":{"href":"https://api.github.com/repos/RUGSoftEng/2018-Tuberculosis-iOS/statuses/0911ebae310e30e2fe9efa19dd59efdc824670f3"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Micrified"}}