{"action":"created","issue":{"url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/4730","labels_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/4730/labels{/name}","comments_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/4730/comments","events_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/4730/events","html_url":"https://github.com/DynamoDS/Dynamo/pull/4730","id":88930774,"number":4730,"title":"Fix unable to find localized GalleryContents issue","user":{"login":"Sancerio","id":6823427,"avatar_url":"https://avatars.githubusercontent.com/u/6823427?v=3","gravatar_id":"","url":"https://api.github.com/users/Sancerio","html_url":"https://github.com/Sancerio","followers_url":"https://api.github.com/users/Sancerio/followers","following_url":"https://api.github.com/users/Sancerio/following{/other_user}","gists_url":"https://api.github.com/users/Sancerio/gists{/gist_id}","starred_url":"https://api.github.com/users/Sancerio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sancerio/subscriptions","organizations_url":"https://api.github.com/users/Sancerio/orgs","repos_url":"https://api.github.com/users/Sancerio/repos","events_url":"https://api.github.com/users/Sancerio/events{/privacy}","received_events_url":"https://api.github.com/users/Sancerio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DynamoDS/Dynamo/labels/LGTM","name":"LGTM","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"Benglin","id":5086849,"avatar_url":"https://avatars.githubusercontent.com/u/5086849?v=3","gravatar_id":"","url":"https://api.github.com/users/Benglin","html_url":"https://github.com/Benglin","followers_url":"https://api.github.com/users/Benglin/followers","following_url":"https://api.github.com/users/Benglin/following{/other_user}","gists_url":"https://api.github.com/users/Benglin/gists{/gist_id}","starred_url":"https://api.github.com/users/Benglin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Benglin/subscriptions","organizations_url":"https://api.github.com/users/Benglin/orgs","repos_url":"https://api.github.com/users/Benglin/repos","events_url":"https://api.github.com/users/Benglin/events{/privacy}","received_events_url":"https://api.github.com/users/Benglin/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-06-17T06:50:11Z","updated_at":"2015-06-17T06:54:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/4730","html_url":"https://github.com/DynamoDS/Dynamo/pull/4730","diff_url":"https://github.com/DynamoDS/Dynamo/pull/4730.diff","patch_url":"https://github.com/DynamoDS/Dynamo/pull/4730.patch"},"body":"### Purpose\r\n\r\n- The localized Dynamo is not able to find the localized GalleryContents. (YT issue: http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-7681)\r\n\r\n- This is because the ```GetGalleryDirectory``` method in the PathManager checks whether there are sub-directories inside the ```gallery/<locale>``` (following the sample implementation), whereas there is no sub-directory inside.\r\n\r\n- This fix removes the checking of the sub-directories and checks whether there is an xml file inside the ```gallery/<locale>```\r\n\r\n### Declarations\r\n\r\nCheck these if you believe they are true\r\n\r\n- [x] The code base is in a better state after this PR\r\n- [ ] The level of testing this PR includes is appropriate\r\n\r\n### Reviewers\r\n\r\n@Benglin"},"comment":{"url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/comments/112680275","html_url":"https://github.com/DynamoDS/Dynamo/pull/4730#issuecomment-112680275","issue_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/4730","id":112680275,"user":{"login":"Benglin","id":5086849,"avatar_url":"https://avatars.githubusercontent.com/u/5086849?v=3","gravatar_id":"","url":"https://api.github.com/users/Benglin","html_url":"https://github.com/Benglin","followers_url":"https://api.github.com/users/Benglin/followers","following_url":"https://api.github.com/users/Benglin/following{/other_user}","gists_url":"https://api.github.com/users/Benglin/gists{/gist_id}","starred_url":"https://api.github.com/users/Benglin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Benglin/subscriptions","organizations_url":"https://api.github.com/users/Benglin/orgs","repos_url":"https://api.github.com/users/Benglin/repos","events_url":"https://api.github.com/users/Benglin/events{/privacy}","received_events_url":"https://api.github.com/users/Benglin/received_events","type":"User","site_admin":false},"created_at":"2015-06-17T06:54:37Z","updated_at":"2015-06-17T06:54:37Z","body":"Thanks for fixing this, @Sancerio."}}