Commit 22a6a35a241b34f17936b1f32bcdaab1a86f7feb

Authored by Timur Kastemirov
1 parent 5b35410a

seo3

common/messages/ru/app.php
1 1 <?php
2   - return [];
3 2 \ No newline at end of file
  3 + return [
  4 + 'Contact' => "Контакты",
  5 + 'About us' => 'О нас',
  6 + ];
4 7 \ No newline at end of file
... ...
frontend/views/site/about.php
... ... @@ -9,7 +9,8 @@
9 9 * @var SeoComponent $seo
10 10 */
11 11 $seo = \Yii::$app->get('seo');
12   - $this->params[ 'breadcrumbs' ][] = $seo->title;
  12 + $this->title = \Yii::t('app', 'About us');
  13 + $this->params[ 'breadcrumbs' ][] = isset($seo->title)?$seo->title:$this->title;
13 14 ?>
14 15 <div class="container">
15 16 <section>
... ...