{"action":"created","issue":{"url":"https://api.github.com/repos/getkirby/kirby/issues/2128","repository_url":"https://api.github.com/repos/getkirby/kirby","labels_url":"https://api.github.com/repos/getkirby/kirby/issues/2128/labels{/name}","comments_url":"https://api.github.com/repos/getkirby/kirby/issues/2128/comments","events_url":"https://api.github.com/repos/getkirby/kirby/issues/2128/events","html_url":"https://github.com/getkirby/kirby/issues/2128","id":495700250,"node_id":"MDU6SXNzdWU0OTU3MDAyNTA=","number":2128,"title":"[Panel] Class 'I18n' not found","user":{"login":"afbora","id":3393422,"node_id":"MDQ6VXNlcjMzOTM0MjI=","avatar_url":"https://avatars1.githubusercontent.com/u/3393422?v=4","gravatar_id":"","url":"https://api.github.com/users/afbora","html_url":"https://github.com/afbora","followers_url":"https://api.github.com/users/afbora/followers","following_url":"https://api.github.com/users/afbora/following{/other_user}","gists_url":"https://api.github.com/users/afbora/gists{/gist_id}","starred_url":"https://api.github.com/users/afbora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afbora/subscriptions","organizations_url":"https://api.github.com/users/afbora/orgs","repos_url":"https://api.github.com/users/afbora/repos","events_url":"https://api.github.com/users/afbora/events{/privacy}","received_events_url":"https://api.github.com/users/afbora/received_events","type":"User","site_admin":false},"labels":[{"id":848081540,"node_id":"MDU6TGFiZWw4NDgwODE1NDA=","url":"https://api.github.com/repos/getkirby/kirby/labels/type:%20bug%20%F0%9F%90%9B","name":"type: bug 🐛","color":"E91E63","default":false},{"id":1218464871,"node_id":"MDU6TGFiZWwxMjE4NDY0ODcx","url":"https://api.github.com/repos/getkirby/kirby/labels/type:%20regression%20%E2%9A%A1%EF%B8%8F","name":"type: regression ⚡️","color":"FFC107","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/getkirby/kirby/milestones/42","html_url":"https://github.com/getkirby/kirby/milestone/42","labels_url":"https://api.github.com/repos/getkirby/kirby/milestones/42/labels","id":4594609,"node_id":"MDk6TWlsZXN0b25lNDU5NDYwOQ==","number":42,"title":"3.2.5","description":"","creator":{"login":"bastianallgeier","id":24532,"node_id":"MDQ6VXNlcjI0NTMy","avatar_url":"https://avatars3.githubusercontent.com/u/24532?v=4","gravatar_id":"","url":"https://api.github.com/users/bastianallgeier","html_url":"https://github.com/bastianallgeier","followers_url":"https://api.github.com/users/bastianallgeier/followers","following_url":"https://api.github.com/users/bastianallgeier/following{/other_user}","gists_url":"https://api.github.com/users/bastianallgeier/gists{/gist_id}","starred_url":"https://api.github.com/users/bastianallgeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bastianallgeier/subscriptions","organizations_url":"https://api.github.com/users/bastianallgeier/orgs","repos_url":"https://api.github.com/users/bastianallgeier/repos","events_url":"https://api.github.com/users/bastianallgeier/events{/privacy}","received_events_url":"https://api.github.com/users/bastianallgeier/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":114,"state":"open","created_at":"2019-08-22T10:21:33Z","updated_at":"2019-09-19T10:45:56Z","due_on":"2019-09-24T07:00:00Z","closed_at":null},"comments":2,"created_at":"2019-09-19T10:04:23Z","updated_at":"2019-09-20T06:58:48Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"**Describe the bug**\r\nSections and some fields throw error following:\r\n\r\n> \"albums\" bölümü yüklenemedi: Class 'I18n' not found\r\n\r\n**As english translation**\r\n\r\n> The section \"albums\" could not be loaded: Class 'I18n' not found\r\n\r\nError in \"website\" field\r\nError in \"author\" field\r\nError in \"gallery\" field\r\n...\r\n...\r\n> Class 'I18n' not found\r\n\r\n**To Reproduce**\r\n\r\n1. Go to panel users\r\n2. Edit own account\r\n3. Change to language as `Turkish`\r\n4. Try these actions: Go to dashboard, edit any page, edit any user\r\n5. See error\r\n\r\n**Kirby Version**\r\n3.2.5-RC.2\r\n\r\n**Console output**\r\n```\r\ncode: 500\r\ndetails: []\r\nexception: \"Error\"\r\nfile: \"/kirby/config/sections/mixins/empty.php\"\r\nkey: null\r\nline: 9\r\nmessage: \"Class 'I18n' not found\"\r\nroute: \"site/sections/([a-zA-Z0-9\\.\\-_%= \\+\\@\\(\\)]+)\"\r\nstatus: \"error\"\r\n```\r\n\r\n**Desktop:**\r\n - Centos 6\r\n - Chrome 77\r\n\r\n**Additional context**\r\nThis issue is about locale `LC_CTYPE` constant (starting file/class names with `I` letter) and it was working by default in 3.2.4.\r\n\r\nWhen we want to use `locale` as turkish, we use it like following, not just for Kirby.\r\nhttps://getkirby.com/docs/reference/system/options/locale#detailed-settings\r\n\r\nEven if we want to use custom locale, the error continues.\r\nI would expect it to work without error, even if we didn't use custom locale as before versions, \r\n\r\n**Note**:\r\n\r\nWhen i add `use Kirby\\Toolkit\\I18n;` to top of files that have error fields/sections, error gone 🤔 \r\n"},"comment":{"url":"https://api.github.com/repos/getkirby/kirby/issues/comments/533434002","html_url":"https://github.com/getkirby/kirby/issues/2128#issuecomment-533434002","issue_url":"https://api.github.com/repos/getkirby/kirby/issues/2128","id":533434002,"node_id":"MDEyOklzc3VlQ29tbWVudDUzMzQzNDAwMg==","user":{"login":"bastianallgeier","id":24532,"node_id":"MDQ6VXNlcjI0NTMy","avatar_url":"https://avatars3.githubusercontent.com/u/24532?v=4","gravatar_id":"","url":"https://api.github.com/users/bastianallgeier","html_url":"https://github.com/bastianallgeier","followers_url":"https://api.github.com/users/bastianallgeier/followers","following_url":"https://api.github.com/users/bastianallgeier/following{/other_user}","gists_url":"https://api.github.com/users/bastianallgeier/gists{/gist_id}","starred_url":"https://api.github.com/users/bastianallgeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bastianallgeier/subscriptions","organizations_url":"https://api.github.com/users/bastianallgeier/orgs","repos_url":"https://api.github.com/users/bastianallgeier/repos","events_url":"https://api.github.com/users/bastianallgeier/events{/privacy}","received_events_url":"https://api.github.com/users/bastianallgeier/received_events","type":"User","site_admin":false},"created_at":"2019-09-20T06:58:47Z","updated_at":"2019-09-20T06:58:47Z","author_association":"CONTRIBUTOR","body":"The I18n class has an alias. I really don't understand why it breaks. "}}
{"actor":{"display_login":"bastianallgeier"}}