L
L
Leopandro2016-05-10 21:49:38
Yii
Leopandro, 2016-05-10 21:49:38

How to translate this text using i18n Yii2?

The framework generates such a file for me in the view:

$this->title = Yii::t('app', 'Update {modelClass}: ', [
    'modelClass' => 'Driver',
]) . $model->name;

How to translate this? 'Update Driver' => 'Update Driver' doesn't work, didn't find anything in the docks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Никита, 2016-05-10
@bitver

Нужно символ в символ
При чём modelClass не переводится, т.к. фигурные скобки для того и предназначены, а вообще посмотрите документацию, там всё ясно написано.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question