Commit 3d3c2043 authored by thalles's avatar thalles Committed by pifagor

Issue #2971266 by nabiyllin, thalles, Akshay kashyap, voleger, pifagor,...

Issue #2971266 by nabiyllin, thalles, Akshay kashyap, voleger, pifagor, amit.drupal, Dave Reid: Remove t() to $this->t() used in Drupal best practices
parent cfd38951
......@@ -104,16 +104,16 @@ class XmlSitemapController extends ControllerBase {
// Make sure the strings in the XSL content are translated properly.
$replacements = [
'Sitemap file' => t('Sitemap file'),
'Generated by the <a href="https://www.drupal.org/project/xmlsitemap">Drupal XML sitemap module</a>.' => t('Generated by the <a href="@link-xmlsitemap">Drupal XML sitemap module</a>.', ['@link-xmlsitemap' => 'https://www.drupal.org/project/xmlsitemap']),
'Number of sitemaps in this index' => t('Number of sitemaps in this index'),
'Click on the table headers to change sorting.' => t('Click on the table headers to change sorting.'),
'Sitemap URL' => t('Sitemap URL'),
'Last modification date' => t('Last modification date'),
'Number of URLs in this sitemap' => t('Number of URLs in this sitemap'),
'URL location' => t('URL location'),
'Change frequency' => t('Change frequency'),
'Priority' => t('Priority'),
'Sitemap file' => $this->t('Sitemap file'),
'Generated by the <a href="https://www.drupal.org/project/xmlsitemap">Drupal XML sitemap module</a>.' => $this->t('Generated by the <a href="@link-xmlsitemap">Drupal XML sitemap module</a>.', ['@link-xmlsitemap' => 'https://www.drupal.org/project/xmlsitemap']),
'Number of sitemaps in this index' => $this->t('Number of sitemaps in this index'),
'Click on the table headers to change sorting.' => $this->t('Click on the table headers to change sorting.'),
'Sitemap URL' => $this->t('Sitemap URL'),
'Last modification date' => $this->t('Last modification date'),
'Number of URLs in this sitemap' => $this->t('Number of URLs in this sitemap'),
'URL location' => $this->t('URL location'),
'Change frequency' => $this->t('Change frequency'),
'Priority' => $this->t('Priority'),
'[jquery]' => base_path() . 'core/assets/vendor/jquery/jquery.js',
'[jquery-tablesort]' => base_path() . $module_path . '/xsl/jquery.tablesorter.min.js',
'[xsl-js]' => base_path() . $module_path . '/xsl/xmlsitemap.xsl.js',
......
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