Skip to content

12 · Header text and footer titles in theme settings are not translatable

Project Eureka (theme of the Archimedes site template)
Component Code
Category Bug report
Priority Normal
Status Reported upstream as #3595538

Problem/Motivation

config/schema/eureka.schema.yml declares header_info ("Emergency contact: 01234 567891") and the footer titles (footer_contact_title, footer_times_title, footer_quicklinks_title) as type: string, so they cannot be translated. On a German site the header keeps showing "Emergency contact".

Steps to reproduce

  1. Install Drupal CMS with Archimedes in German.
  2. The header shows "Emergency contact: 01234 567891"; the setting is not offered for translation.

Proposed resolution

Use type: label for these keys.

Additional information

Workaround in dcle (schema alter + direct translation).

Copy to drupal.org

Issue title:

Header text and footer titles in theme settings are not translatable

Issue summary (paste it into the "Issue summary" field; project, component, category and priority are in the table above):

<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p><code>config/schema/eureka.schema.yml</code> declares <code>header_info</code> ("Emergency contact: 01234 567891") and the footer titles (<code>footer_contact_title</code>, <code>footer_times_title</code>, <code>footer_quicklinks_title</code>) as <code>type: string</code>, so they cannot be translated. On a German site the header keeps showing "Emergency contact".</p>
<h3 id="summary-steps-reproduce">Steps to reproduce</h3>
<ol>
<li>Install Drupal CMS with Archimedes in German.</li>
<li>The header shows "Emergency contact: 01234 567891"; the setting is not offered for translation.</li>
</ol>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Use <code>type: label</code> for these keys.</p>
<h3>Additional information</h3>
<p>Workaround in <code>dcle</code> (schema alter + direct translation).</p>