{"action":"created","issue":{"url":"https://api.github.com/repos/mautic/mautic/issues/256","labels_url":"https://api.github.com/repos/mautic/mautic/issues/256/labels{/name}","comments_url":"https://api.github.com/repos/mautic/mautic/issues/256/comments","events_url":"https://api.github.com/repos/mautic/mautic/issues/256/events","html_url":"https://github.com/mautic/mautic/pull/256","id":65948469,"number":256,"title":"en_US catalogue is not generated after a cache clear when another locale is selected","user":{"login":"alanhartless","id":63312,"avatar_url":"https://avatars.githubusercontent.com/u/63312?v=3","gravatar_id":"","url":"https://api.github.com/users/alanhartless","html_url":"https://github.com/alanhartless","followers_url":"https://api.github.com/users/alanhartless/followers","following_url":"https://api.github.com/users/alanhartless/following{/other_user}","gists_url":"https://api.github.com/users/alanhartless/gists{/gist_id}","starred_url":"https://api.github.com/users/alanhartless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanhartless/subscriptions","organizations_url":"https://api.github.com/users/alanhartless/orgs","repos_url":"https://api.github.com/users/alanhartless/repos","events_url":"https://api.github.com/users/alanhartless/events{/privacy}","received_events_url":"https://api.github.com/users/alanhartless/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-02T15:16:32Z","updated_at":"2015-04-02T16:07:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mautic/mautic/pulls/256","html_url":"https://github.com/mautic/mautic/pull/256","diff_url":"https://github.com/mautic/mautic/pull/256.diff","patch_url":"https://github.com/mautic/mautic/pull/256.patch"},"body":"When the system is set to a locale other than en_US and the cache gets cleared, the en_US catalogue is not rebuilt so any language string missing in the translation will show the translation key instead.\r\n\r\nTo fix this, I added a catch to always load the en_US catalogue when building so that it's available for fallback.\r\n\r\nTo test, select a locale in your configuration other than English (preferably one that is not complete such as Portuguese).  Also make sure your current user's profile is set to use the system's default locale.  Clear your cache and refresh.  The page should have the translation keys throughout other than the ones included in the translation.\r\n\r\nNow apply the patch and repeat.  This time, English string should show for those missing strings."},"comment":{"url":"https://api.github.com/repos/mautic/mautic/issues/comments/88960548","html_url":"https://github.com/mautic/mautic/pull/256#issuecomment-88960548","issue_url":"https://api.github.com/repos/mautic/mautic/issues/256","id":88960548,"user":{"login":"mbabker","id":368545,"avatar_url":"https://avatars.githubusercontent.com/u/368545?v=3","gravatar_id":"","url":"https://api.github.com/users/mbabker","html_url":"https://github.com/mbabker","followers_url":"https://api.github.com/users/mbabker/followers","following_url":"https://api.github.com/users/mbabker/following{/other_user}","gists_url":"https://api.github.com/users/mbabker/gists{/gist_id}","starred_url":"https://api.github.com/users/mbabker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbabker/subscriptions","organizations_url":"https://api.github.com/users/mbabker/orgs","repos_url":"https://api.github.com/users/mbabker/repos","events_url":"https://api.github.com/users/mbabker/events{/privacy}","received_events_url":"https://api.github.com/users/mbabker/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T16:07:48Z","updated_at":"2015-04-02T16:07:48Z","body":"Works as advertised"}}