{"action":"created","issue":{"url":"https://api.github.com/repos/contao/core-bundle/issues/237","labels_url":"https://api.github.com/repos/contao/core-bundle/issues/237/labels{/name}","comments_url":"https://api.github.com/repos/contao/core-bundle/issues/237/comments","events_url":"https://api.github.com/repos/contao/core-bundle/issues/237/events","html_url":"https://github.com/contao/core-bundle/pull/237","id":71078797,"number":237,"title":"[RFC] Locale handling","user":{"login":"aschempp","id":1073273,"avatar_url":"https://avatars.githubusercontent.com/u/1073273?v=3","gravatar_id":"","url":"https://api.github.com/users/aschempp","html_url":"https://github.com/aschempp","followers_url":"https://api.github.com/users/aschempp/followers","following_url":"https://api.github.com/users/aschempp/following{/other_user}","gists_url":"https://api.github.com/users/aschempp/gists{/gist_id}","starred_url":"https://api.github.com/users/aschempp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aschempp/subscriptions","organizations_url":"https://api.github.com/users/aschempp/orgs","repos_url":"https://api.github.com/users/aschempp/repos","events_url":"https://api.github.com/users/aschempp/events{/privacy}","received_events_url":"https://api.github.com/users/aschempp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-04-26T14:53:30Z","updated_at":"2015-04-30T08:04:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/contao/core-bundle/pulls/237","html_url":"https://github.com/contao/core-bundle/pull/237","diff_url":"https://github.com/contao/core-bundle/pull/237.diff","patch_url":"https://github.com/contao/core-bundle/pull/237.patch"},"body":"Because there will be no quick solution to #233, this pull request implements the most simple solution:\r\n\r\n1. Use `kernel.request` event to convert our route locale (e.g. `de-CH`) to a locale ID (`de_CH`).\r\n2. Set request and translator locale when page or user is loaded\r\n3. Use new locale in `InitializeSystemListener`\r\n\r\n#### TODO\r\n - [ ] Should we replace `$GLOBALS['TL_LANGUAGE']` everywhere (in legacy code)?"},"comment":{"url":"https://api.github.com/repos/contao/core-bundle/issues/comments/97699784","html_url":"https://github.com/contao/core-bundle/pull/237#issuecomment-97699784","issue_url":"https://api.github.com/repos/contao/core-bundle/issues/237","id":97699784,"user":{"login":"aschempp","id":1073273,"avatar_url":"https://avatars.githubusercontent.com/u/1073273?v=3","gravatar_id":"","url":"https://api.github.com/users/aschempp","html_url":"https://github.com/aschempp","followers_url":"https://api.github.com/users/aschempp/followers","following_url":"https://api.github.com/users/aschempp/following{/other_user}","gists_url":"https://api.github.com/users/aschempp/gists{/gist_id}","starred_url":"https://api.github.com/users/aschempp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aschempp/subscriptions","organizations_url":"https://api.github.com/users/aschempp/orgs","repos_url":"https://api.github.com/users/aschempp/repos","events_url":"https://api.github.com/users/aschempp/events{/privacy}","received_events_url":"https://api.github.com/users/aschempp/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T08:04:08Z","updated_at":"2015-04-30T08:04:08Z","body":"I have added unit tests. However, there is one incomplete where we should validate the installed languages. Any suggestions how to do that? The bundle path is obviously not injected?"}}