You are here

locale.translate_strings.html.twig in Drupal 9

---
label: 'Translating user interface text'
related:
  - core.translations
  - locale.import
  - locale.translation_status
  - language.add
---
{% set translate = render_var(url('locale.translate_page')) %}
<h2>{% trans %}Goal{% endtrans %}</h2>
<p>{% trans %}Translate user interface text strings from English into a non-English language that is configured on your site.{% endtrans %}</p>
<h2>{% trans %}Steps{% endtrans %}</h2>
<ol>
  <li>{% trans %}In the <em>Manage</em> administrative menu, navigate to <em>Configuration</em> &gt; <em>Regional and language</em> &gt; <a href="{{ translate }}"><em>User interface translation</em></a>.{% endtrans %}</li>
  <li>{% trans %}Using the filters, search for a string or set of strings that you want to translate; make sure to select the correct <em>Translation language</em> if you have more than one non-English language on your site.{% endtrans %}</li>
  <li>{% trans %}Enter new translations and click <em>Save translations</em>.{% endtrans %}</li>
  <li>{% trans %}Repeat these steps until all of the desired user interface text is translated for all languages on your site.{% endtrans %}</li>
</ol>

File

core/modules/help_topics/help_topics/locale.translate_strings.html.twig
View source
  1. ---
  2. label: 'Translating user interface text'
  3. related:
  4. - core.translations
  5. - locale.import
  6. - locale.translation_status
  7. - language.add
  8. ---
  9. {% set translate = render_var(url('locale.translate_page')) %}
  10. <h2>{% trans %}Goal{% endtrans %}</h2>
  11. <p>{% trans %}Translate user interface text strings from English into a non-English language that is configured on your site.{% endtrans %}</p>
  12. <h2>{% trans %}Steps{% endtrans %}</h2>
  13. <ol>
  14. <li>{% trans %}In the <em>Manage</em> administrative menu, navigate to <em>Configuration</em> &gt; <em>Regional and language</em> &gt; <a href="{{ translate }}"><em>User interface translation</em></a>.{% endtrans %}</li>
  15. <li>{% trans %}Using the filters, search for a string or set of strings that you want to translate; make sure to select the correct <em>Translation language</em> if you have more than one non-English language on your site.{% endtrans %}</li>
  16. <li>{% trans %}Enter new translations and click <em>Save translations</em>.{% endtrans %}</li>
  17. <li>{% trans %}Repeat these steps until all of the desired user interface text is translated for all languages on your site.{% endtrans %}</li>
  18. </ol>