From 22a6a35a241b34f17936b1f32bcdaab1a86f7feb Mon Sep 17 00:00:00 2001 From: timur Date: Mon, 20 Nov 2017 15:59:57 +0200 Subject: [PATCH] seo3 --- common/messages/ru/app.php | 5 ++++- frontend/views/site/about.php | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/common/messages/ru/app.php b/common/messages/ru/app.php index e3b6834..2cad3b4 100755 --- a/common/messages/ru/app.php +++ b/common/messages/ru/app.php @@ -1,2 +1,5 @@ "Контакты", + 'About us' => 'О нас', + ]; \ No newline at end of file diff --git a/frontend/views/site/about.php b/frontend/views/site/about.php index 6d08110..eb15204 100755 --- a/frontend/views/site/about.php +++ b/frontend/views/site/about.php @@ -9,7 +9,8 @@ * @var SeoComponent $seo */ $seo = \Yii::$app->get('seo'); - $this->params[ 'breadcrumbs' ][] = $seo->title; + $this->title = \Yii::t('app', 'About us'); + $this->params[ 'breadcrumbs' ][] = isset($seo->title)?$seo->title:$this->title; ?>
-- libgit2 0.21.4