{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2-gii/issues/176","repository_url":"https://api.github.com/repos/yiisoft/yii2-gii","labels_url":"https://api.github.com/repos/yiisoft/yii2-gii/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2-gii/issues/176/comments","events_url":"https://api.github.com/repos/yiisoft/yii2-gii/issues/176/events","html_url":"https://github.com/yiisoft/yii2-gii/issues/176","id":169912973,"number":176,"title":"crud update view should use i18n placeholder, not concatenation","user":{"login":"nkovacs","id":2269242,"avatar_url":"https://avatars.githubusercontent.com/u/2269242?v=3","gravatar_id":"","url":"https://api.github.com/users/nkovacs","html_url":"https://github.com/nkovacs","followers_url":"https://api.github.com/users/nkovacs/followers","following_url":"https://api.github.com/users/nkovacs/following{/other_user}","gists_url":"https://api.github.com/users/nkovacs/gists{/gist_id}","starred_url":"https://api.github.com/users/nkovacs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkovacs/subscriptions","organizations_url":"https://api.github.com/users/nkovacs/orgs","repos_url":"https://api.github.com/users/nkovacs/repos","events_url":"https://api.github.com/users/nkovacs/events{/privacy}","received_events_url":"https://api.github.com/users/nkovacs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2-gii/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-08T12:39:31Z","updated_at":"2016-08-09T09:32:12Z","closed_at":null,"body":"### What steps will reproduce the problem?\r\n\r\n1. Open the CRUD Generator\r\n2. Check \"Enable I18N\"\r\n3. Fill out the rest of the form\r\n4. Click preview\r\n\r\n### What's expected?\r\n\r\nThe update view's title should pass the model's name attribute as a placeholder to `Yii::t`.\r\n\r\n### What do you get instead?\r\n\r\nThe name attribute is concatenated to the end of the translated string. This makes it impossible to, for example, put the name into quotes.\r\n\r\n```php\r\n$this->title = Yii::t('app', 'Update {modelClass}: ', [\r\n    'modelClass' => 'User',\r\n]) . $model->name;\r\n```\r\n\r\n### Additional info\r\n\r\n| Q                | A\r\n| ---------------- | ---\r\n| Yii vesion       | 2.0.8\r\n| PHP version      | 5.6.22\r\n| Operating system | Debian 8\r\n"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2-gii/issues/comments/238502242","html_url":"https://github.com/yiisoft/yii2-gii/issues/176#issuecomment-238502242","issue_url":"https://api.github.com/repos/yiisoft/yii2-gii/issues/176","id":238502242,"user":{"login":"nkovacs","id":2269242,"avatar_url":"https://avatars.githubusercontent.com/u/2269242?v=3","gravatar_id":"","url":"https://api.github.com/users/nkovacs","html_url":"https://github.com/nkovacs","followers_url":"https://api.github.com/users/nkovacs/followers","following_url":"https://api.github.com/users/nkovacs/following{/other_user}","gists_url":"https://api.github.com/users/nkovacs/gists{/gist_id}","starred_url":"https://api.github.com/users/nkovacs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkovacs/subscriptions","organizations_url":"https://api.github.com/users/nkovacs/orgs","repos_url":"https://api.github.com/users/nkovacs/repos","events_url":"https://api.github.com/users/nkovacs/events{/privacy}","received_events_url":"https://api.github.com/users/nkovacs/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T09:32:12Z","updated_at":"2016-08-09T09:32:12Z","body":"Wasn't the translation added when the option to enable i18n was added?"}}
{"actor":{"display_login":"nkovacs"}}