Skip to content

Commit

Permalink
Merge pull request #643 from nikosid/master
Browse files Browse the repository at this point in the history
Small common corrections
  • Loading branch information
Eugene Terentev authored Nov 1, 2018
2 parents 546d9d0 + b3b1658 commit 4872560
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion backend/modules/content/views/article/_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<?php echo $form->field($model, 'title')->textInput(['maxlength' => true]) ?>

<?php echo $form->field($model, 'slug')
->hint(Yii::t('backend', 'If you\'ll leave this field empty, slug will be generated automatically'))
->hint(Yii::t('backend', 'If you leave this field empty, the slug will be generated automatically'))
->textInput(['maxlength' => true]) ?>

<?php echo $form->field($model, 'category_id')->dropDownList(\yii\helpers\ArrayHelper::map(
Expand Down
2 changes: 1 addition & 1 deletion backend/modules/content/views/category/_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<?php echo $form->field($model, 'title')->textInput(['maxlength' => 512]) ?>

<?php echo $form->field($model, 'slug')
->hint(Yii::t('backend', 'If you\'ll leave this field empty, slug will be generated automatically'))
->hint(Yii::t('backend', 'If you leave this field empty, the slug will be generated automatically'))
->textInput(['maxlength' => 1024]) ?>

<?php echo $form->field($model, 'parent_id')->dropDownList($categories, ['prompt' => '']) ?>
Expand Down
2 changes: 1 addition & 1 deletion common/messages/es/backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
'I18n Messages' => 'Textos I18N',
'I18n Source Messages' => 'Textos Originales I18N',
'ID' => 'ID',
'If you\'ll leave this field empty, slug will be generated automatically' => 'Si dejas este campo vacío, el slug se generará de forma automática',
'If you leave this field empty, the slug will be generated automatically' => 'Si dejas este campo vacío, el slug se generará de forma automática',
'Incorrect username or password.' => 'Nombre usuario o contraseña incorrecto',
'Internal IP' => 'IP interna',
'Invalidate tag' => 'Etiqueta no válida',
Expand Down
2 changes: 1 addition & 1 deletion common/messages/pl/backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
'I18n Messages' => 'I18n Tłumaczenia',
'I18n Source Messages' => 'I18n Teksty',
'ID' => 'ID',
'If you\'ll leave this field empty, slug will be generated automatically' => 'Jeżeli zostawisz te pole puste slug zostanie utworzony automatycznie',
'If you leave this field empty, the slug will be generated automatically' => 'Jeżeli zostawisz te pole puste slug zostanie utworzony automatycznie',
'Incorrect username or password.' => 'Nieprawidłowa nazwa użytkownika lub hasło',
'Internal IP' => 'Wewnętrzne IP',
'Invalidate tag' => 'Unieważnij tag',
Expand Down
2 changes: 1 addition & 1 deletion common/messages/pt-BR/backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
'I18n Messages' => 'Mensagens I18N',
'I18n Source Messages' => 'Fonte de Mensagens I18N',
'ID' => 'ID',
'If you\'ll leave this field empty, slug will be generated automatically' => 'Se deixar esse campo vazio, slug será gerado automaticamente',
'If you leave this field empty, the slug will be generated automatically' => 'Se deixar esse campo vazio, slug será gerado automaticamente',
'Incorrect username or password.' => 'Usuário ou senha incorreto',
'Internal IP' => 'IP interno',
'Invalidate tag' => 'Etiqueta inválida',
Expand Down
2 changes: 1 addition & 1 deletion common/messages/ru/backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
'I18n Messages' => 'I18N переводы',
'I18n Source Messages' => 'Тексты',
'ID' => 'ID',
'If you\'ll leave this field empty, slug will be generated automatically' => 'Если вы оставите это поле пустым, ЧПУ будет сгенерирован автоматически',
'If you leave this field empty, the slug will be generated automatically' => 'Если вы оставите это поле пустым, ЧПУ будет сгенерирован автоматически',
'Incorrect username or password.' => 'Неправильный логин или пароль',
'Internal IP' => 'Внутренний IP',
'Invalidate tag' => 'Сбросить тег',
Expand Down
2 changes: 1 addition & 1 deletion common/messages/uk/backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
'I18n Messages' => 'I18N переклади',
'I18n Source Messages' => 'Тексти',
'ID' => 'ID',
'If you\'ll leave this field empty, slug will be generated automatically' => 'Якщо ви залишете це поле пустим, ЧПУ буде сгенеровано автоматично',
'If you leave this field empty, the slug will be generated automatically' => 'Якщо ви залишете це поле пустим, ЧПУ буде сгенеровано автоматично',
'Incorrect username or password.' => 'Неправильні им’я користувача або пароль',
'Internal IP' => 'Внутрішній IP',
'Invalidate tag' => 'Скинути тег',
Expand Down
2 changes: 1 addition & 1 deletion common/messages/vi/backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
'I18n Messages' => 'I18N Messages',
'I18n Source Messages' => 'I18n Source Messages',
'ID' => 'ID',
'If you\'ll leave this field empty, slug will be generated automatically' => 'Nếu bạn để trống, slug sẽ được tạo tự động',
'If you leave this field empty, the slug will be generated automatically' => 'Nếu bạn để trống, slug sẽ được tạo tự động',
'Incorrect username or password.' => 'Sai tên đăng nhập hoặc mật khẩu',
'Internal IP' => 'Internal IP',
'Invalidate tag' => 'Invalidate tag',
Expand Down
2 changes: 1 addition & 1 deletion common/messages/zh/backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
'I18n Messages' => '国际化信息',
'I18n Source Messages' => '国际化源信息',
'ID' => 'ID',
'If you\'ll leave this field empty, slug will be generated automatically' => '如果该字段留空的话,系统将自动生成一个slug',
'If you leave this field empty, the slug will be generated automatically' => '如果该字段留空的话,系统将自动生成一个slug',
'Incorrect username or password.' => '用户名或密码错误',
'Internal IP' => '内网IP',
'Invalidate tag' => '无效的标签',
Expand Down
13 changes: 6 additions & 7 deletions frontend/controllers/SiteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
namespace frontend\controllers;

use cheatsheet\Time;
use common\sitemap\ArticleUrlGenerator;
use common\sitemap\PageUrlGenerator;
use common\sitemap\UrlsIterator;
use frontend\models\ContactForm;
use Sitemaped\Element\Urlset\Urlset;
Expand Down Expand Up @@ -75,12 +73,12 @@ public function actionContact()
'options' => ['class' => 'alert-success']
]);
return $this->refresh();
} else {
Yii::$app->getSession()->setFlash('alert', [
'body' => \Yii::t('frontend', 'There was an error sending email.'),
'options' => ['class' => 'alert-danger']
]);
}

Yii::$app->getSession()->setFlash('alert', [
'body' => \Yii::t('frontend', 'There was an error sending email.'),
'options' => ['class' => 'alert-danger']
]);
}

return $this->render('contact', [
Expand All @@ -92,6 +90,7 @@ public function actionContact()
* @param string $format
* @param bool $gzip
* @return string
* @throws BadRequestHttpException
*/
public function actionSitemap($format = Sitemap::FORMAT_XML, $gzip = false)
{
Expand Down

0 comments on commit 4872560

Please sign in to comment.