Commit 80eb6800 authored by gbyte.co's avatar gbyte.co

Improve views UI text

parent b4a4ea50
name: 'Simple XML Sitemap (Views)'
type: module
description: 'Provides integration of the Simple XML Sitemap module with the Views module.'
description: 'Provides integration of the Simple XML sitemap module with the Views module.'
configure: simple_sitemap.settings_views
package: SEO
core: 8.x
......
......@@ -58,7 +58,7 @@ class SimpleSitemapViewsController extends ControllerBase {
$this->t('Arguments'),
$this->t('Operations'),
],
'#empty' => $this->t('No displays are set to be indexed yet.'),
'#empty' => $this->t('No view displays are set to be indexed yet. <a href="@url">Edit a view.</a>', ['@url' => $GLOBALS['base_url'] . '/admin/structure/views']),
];
foreach ($this->sitemapViews->getIndexableViews() as $index => $view) {
......
......@@ -140,7 +140,7 @@ class SimpleSitemapDisplayExtender extends DisplayExtenderPluginBase {
$form['main']['variant'] = [
'#type' => 'select',
'#title' => $this->t('Sitemap variant'),
'#description' => $this->t('The sitemap variant display is to be indexed in.'),
'#description' => $this->t('The sitemap variant this display is to be indexed in.'),
'#options' => $this->formHelper->getVariantSelectValues(),
'#default_value' => $this->formHelper->getVariantSelectValuesDefault($settings['variant']),
'#required' => TRUE,
......@@ -149,7 +149,7 @@ class SimpleSitemapDisplayExtender extends DisplayExtenderPluginBase {
$form['main']['priority'] = [
'#type' => 'select',
'#title' => $this->t('Priority'),
'#description' => $this->t('The priority displays will have in the eyes of search engine bots.'),
'#description' => $this->t('The priority this display will have in the eyes of search engine bots.'),
'#default_value' => $settings['priority'],
'#options' => $this->formHelper->getPrioritySelectValues(),
];
......@@ -180,8 +180,8 @@ class SimpleSitemapDisplayExtender extends DisplayExtenderPluginBase {
// Max links with arguments.
$form['arguments']['max_links'] = [
'#type' => 'number',
'#title' => $this->t('Maximum links in a sitemap'),
'#description' => $this->t('The maximum number of links with different argument values ​​for this display, which will be included in the sitemap. If left blank, all links will be included in the sitemap. Use with caution, since a large number of argument values ​​can lead to a significant increase in the number of links in the sitemap.'),
'#title' => $this->t('Maximum display variations'),
'#description' => $this->t('The maximum number of link variations to be indexed for this display. If left blank, each argument will create link variations for this display. Use with caution, as a large number of argument values​can significantly increase the number of sitemap links.'),
'#default_value' => $settings['max_links'],
'#min' => 1,
];
......
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