Commit e91a8e2c authored by APolitsin's avatar APolitsin
Browse files

localize t()

parent b02d2fb2
......@@ -44,8 +44,8 @@ class Settings extends ConfigFormBase {
'#open' => TRUE,
];
$form["general"]['no-index'] = [
'#title' => $this->t('Индексация запрещена'),
'#description' => $this->t('Не забываем снимать при старте сайта!'),
'#title' => $this->t('Search engines indexing is forbidden'),
'#description' => $this->t('Make sure to remove the production site'),
'#type' => 'checkbox',
'#maxlength' => 20,
'#required' => FALSE,
......@@ -53,8 +53,8 @@ class Settings extends ConfigFormBase {
'#default_value' => $config->get('no-index'),
];
$form["general"]['fz152'] = [
'#title' => $this->t('Галочка ФЗ-152'),
'#description' => $this->t('Галочка появится под каждой формой модуля `contact`'),
'#title' => $this->t('FZ-152 checkbox'),
'#description' => $this->t('Consent checkbox will displayed with all contact-module forms'),
'#type' => 'checkbox',
'#maxlength' => 20,
'#required' => FALSE,
......@@ -68,25 +68,25 @@ class Settings extends ConfigFormBase {
'#open' => TRUE,
];
$form['contact']['ya_counter'] = [
'#title' => 'Счетчик',
'#title' => $this->t('Counter ID'),
'#default_value' => $config->get('ya-counter'),
'#maxlength' => 20,
'#size' => 15,
'#type' => 'textfield',
];
$form['contact']['ya_goals'] = [
'#title' => 'Цели',
'#title' => $this->t('Goals'),
'#default_value' => $config->get('ya-goals'),
'#type' => 'textarea',
'#description' => 'goal|form id',
];
$form['contact']['show_form_id'] = [
'#title' => 'Показать id форм',
'#title' => $this->t('Display form id'),
'#default_value' => $config->get('show-ids'),
'#type' => 'checkbox',
];
$form['contact']['show_debug'] = [
'#title' => 'Debug',
'#title' => $this->t('Debug mode'),
'#default_value' => $config->get('debug'),
'#type' => 'checkbox',
];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment