Commit 0941e2a5 authored by gbyte.co's avatar gbyte.co

Spell "Sitemap" in "Simple XML Sitemap" with capital letter.

parent 80eb6800
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
......
......@@ -2,7 +2,7 @@
/**
* @file
* Hooks provided by the Simple XML sitemap module.
* Hooks provided by the Simple XML Sitemap module.
*/
/**
......
......@@ -16,9 +16,9 @@ function simple_sitemap_requirements($phase) {
if (!extension_loaded('xmlwriter')) {
$requirements['simple_sitemap_php_extensions'] = [
'title' => t('Simple XML sitemap PHP extensions'),
'title' => t('Simple XML Sitemap PHP extensions'),
'value' => t('Missing PHP xmlwriter extension'),
'description' => t('In order to be able to generate sitemaps, the Simple XML sitemap module requires the <em>xmlwriter</em> PHP extension to be enabled.'),
'description' => t('In order to be able to generate sitemaps, the Simple XML Sitemap module requires the <em>xmlwriter</em> PHP extension to be enabled.'),
'severity' => REQUIREMENT_ERROR,
];
}
......@@ -57,7 +57,7 @@ function simple_sitemap_requirements($phase) {
// }
//
// $requirements['simple_sitemap_generated'] = [
// 'title' => 'Simple XML sitemap',
// 'title' => 'Simple XML Sitemap',
// 'value' => $value,
// 'description' => $description,
// 'severity' => $severity,
......
simple_sitemap.settings:
title: 'Simple XML sitemap'
title: 'Simple XML Sitemap'
description: 'Configure and generate the XML sitemap, add custom links to it.'
parent: system.admin_config_search
route_name: simple_sitemap.settings
......@@ -43,7 +43,7 @@ function simple_sitemap_form_alter(&$form, FormStateInterface $form_state, $form
$form['simple_sitemap'] = [
'#type' => 'details',
'#group' => isset($form['additional_settings']) ? 'additional_settings' : 'advanced',
'#title' => t('Simple XML sitemap'),
'#title' => t('Simple XML Sitemap'),
'#description' => $f->getEntityCategory() === 'instance' ? t('Settings for this entity can be overridden here.') : '',
'#weight' => 10,
];
......
administer sitemap settings:
title: 'Administer sitemap settings'
description: 'Administer Simple XML sitemap settings, alter inclusion settings of content and generate the sitemap on demand.'
description: 'Administer Simple XML Sitemap settings, alter inclusion settings of content and generate the sitemap on demand.'
restrict access: false
......@@ -81,7 +81,7 @@ class SimplesitemapController extends ControllerBase {
// Replace custom tokens in the XSL content with appropriate values.
$replacements = [
'[title]' => $this->t('Sitemap file'),
'[generated-by]' => $this->t('Generated by the <a href="@link">@module_name</a> Drupal module.', ['@link' => 'https://www.drupal.org/project/simple_sitemap', '@module_name' => 'Simple XML sitemap']),
'[generated-by]' => $this->t('Generated by the <a href="@link">@module_name</a> Drupal module.', ['@link' => 'https://www.drupal.org/project/simple_sitemap', '@module_name' => 'Simple XML Sitemap']),
'[number-of-sitemaps]' => $this->t('Number of sitemaps in this index'),
'[sitemap-url]' => $this->t('Sitemap URL'),
'[number-of-urls]' => $this->t('Number of URLs in this sitemap'),
......
......@@ -64,7 +64,7 @@ class SimplesitemapEntitiesForm extends SimplesitemapFormBase {
$form['simple_sitemap_entities']['entities'] = [
'#title' => $this->t('Sitemap entities'),
'#type' => 'fieldset',
'#markup' => '<div class="description">' . $this->t('Simple XML sitemap settings will be added only to entity forms of entity types enabled here. For all entity types featuring bundles (e.g. <em>node</em>) sitemap settings have to be set on their bundle pages (e.g. <em>page</em>).') . '</div>',
'#markup' => '<div class="description">' . $this->t('Simple XML Sitemap settings will be added only to entity forms of entity types enabled here. For all entity types featuring bundles (e.g. <em>node</em>) sitemap settings have to be set on their bundle pages (e.g. <em>page</em>).') . '</div>',
];
$form['#attached']['library'][] = 'simple_sitemap/sitemapEntities';
......
......@@ -10,7 +10,7 @@ use Drupal\Core\Url;
*/
class SitemapWriter extends \XMLWriter {
const GENERATED_BY = 'Generated by the Simple XML sitemap Drupal module: https://drupal.org/project/simple_sitemap.';
const GENERATED_BY = 'Generated by the Simple XML Sitemap Drupal module: https://drupal.org/project/simple_sitemap.';
const XML_VERSION = '1.0';
const ENCODING = 'UTF-8';
......
......@@ -5,7 +5,7 @@ namespace Drupal\Tests\simple_sitemap\Functional;
use Drupal\Core\Url;
/**
* Tests Simple XML sitemap functional integration.
* Tests Simple XML Sitemap functional integration.
*
* @group simple_sitemap
*/
......@@ -418,7 +418,7 @@ class SimplesitemapTest extends SimplesitemapTestBase {
$this->drupalLogin($this->privilegedUser);
$this->drupalGet('admin/structure/types/manage/page');
$this->assertSession()->pageTextNotContains('Simple XML sitemap');
$this->assertSession()->pageTextNotContains('Simple XML Sitemap');
$this->generator->generateSitemap('backend');
......@@ -443,7 +443,7 @@ class SimplesitemapTest extends SimplesitemapTestBase {
$this->drupalLogin($this->privilegedUser);
$this->drupalGet('admin/structure/types/manage/page');
$this->assertSession()->pageTextContains('Simple XML sitemap');
$this->assertSession()->pageTextContains('Simple XML Sitemap');
$this->generator->generateSitemap('backend');
......
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