{"action":"created","issue":{"url":"https://api.github.com/repos/nijel/weblate/issues/910","labels_url":"https://api.github.com/repos/nijel/weblate/issues/910/labels{/name}","comments_url":"https://api.github.com/repos/nijel/weblate/issues/910/comments","events_url":"https://api.github.com/repos/nijel/weblate/issues/910/events","html_url":"https://github.com/nijel/weblate/issues/910","id":114075823,"number":910,"title":"Invalid PHP array","user":{"login":"pc-jedi","id":9032867,"avatar_url":"https://avatars.githubusercontent.com/u/9032867?v=3","gravatar_id":"","url":"https://api.github.com/users/pc-jedi","html_url":"https://github.com/pc-jedi","followers_url":"https://api.github.com/users/pc-jedi/followers","following_url":"https://api.github.com/users/pc-jedi/following{/other_user}","gists_url":"https://api.github.com/users/pc-jedi/gists{/gist_id}","starred_url":"https://api.github.com/users/pc-jedi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pc-jedi/subscriptions","organizations_url":"https://api.github.com/users/pc-jedi/orgs","repos_url":"https://api.github.com/users/pc-jedi/repos","events_url":"https://api.github.com/users/pc-jedi/events{/privacy}","received_events_url":"https://api.github.com/users/pc-jedi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nijel/weblate/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/nijel/weblate/labels/translate-toolkit","name":"translate-toolkit","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-10-29T15:31:54Z","updated_at":"2015-11-09T09:09:45Z","closed_at":"2015-11-03T14:31:52Z","body":"I'm using weblate 2.4 and try to configure it for my PHP language arrays.\r\n\r\nThis is the source file `en.php`\r\n```php\r\n<?php\r\n$lang = array(\r\n'login'=>'Login',\r\n'imprint'=>'Imprint',\r\n'contact'=>'Contakt',\r\n);\r\n```\r\nWhen I add a tranlation e.g. German, then I get the following `de.php`. The opening tag is missing and it is not valid php.\r\n\r\n```php\r\n$lang->'login'='Login';\r\n$lang->'imprint'='Impressum';\r\n$lang->'contact'='Kontakt';\r\n```\r\n\r\nDid I miss something in the configuration?"},"comment":{"url":"https://api.github.com/repos/nijel/weblate/issues/comments/155001988","html_url":"https://github.com/nijel/weblate/issues/910#issuecomment-155001988","issue_url":"https://api.github.com/repos/nijel/weblate/issues/910","id":155001988,"user":{"login":"pc-jedi","id":9032867,"avatar_url":"https://avatars.githubusercontent.com/u/9032867?v=3","gravatar_id":"","url":"https://api.github.com/users/pc-jedi","html_url":"https://github.com/pc-jedi","followers_url":"https://api.github.com/users/pc-jedi/followers","following_url":"https://api.github.com/users/pc-jedi/following{/other_user}","gists_url":"https://api.github.com/users/pc-jedi/gists{/gist_id}","starred_url":"https://api.github.com/users/pc-jedi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pc-jedi/subscriptions","organizations_url":"https://api.github.com/users/pc-jedi/orgs","repos_url":"https://api.github.com/users/pc-jedi/repos","events_url":"https://api.github.com/users/pc-jedi/events{/privacy}","received_events_url":"https://api.github.com/users/pc-jedi/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T09:09:45Z","updated_at":"2015-11-09T09:09:45Z","body":"Additional:\r\n`rephp` will fill up missing translations with the source string. I don't know if weblate could handle this, but maybe it would be better to save the .PO files.\r\ntranslate/translate#3366"}}