|
@ -9,7 +9,7 @@ use yii\helpers\StringHelper; |
|
|
$urlParams = $generator->generateUrlParams(); |
|
|
$urlParams = $generator->generateUrlParams(); |
|
|
$modelClassName = Inflector::camel2words(StringHelper::basename($generator->modelClass)); |
|
|
$modelClassName = Inflector::camel2words(StringHelper::basename($generator->modelClass)); |
|
|
$nameAttributeTemplate = '$model->' . $generator->getNameAttribute(); |
|
|
$nameAttributeTemplate = '$model->' . $generator->getNameAttribute(); |
|
|
$titleTemplate = $generator->generateString('Update ' . $modelClassName . ': {name}', ['name' => '{nameAttribute}']); |
|
|
|
|
|
|
|
|
$titleTemplate = $generator->generateString('编辑 ' . $modelClassName . ': {name}', ['name' => '{nameAttribute}']); |
|
|
if ($generator->enableI18N) { |
|
|
if ($generator->enableI18N) { |
|
|
$title = strtr($titleTemplate, ['\'{nameAttribute}\'' => $nameAttributeTemplate]); |
|
|
$title = strtr($titleTemplate, ['\'{nameAttribute}\'' => $nameAttributeTemplate]); |
|
|
} else { |
|
|
} else { |
|
|