You are here

tmgmt-smartling-xml-template.html.twig in TMGMT Translator Smartling 8.2

<?xml version="1.0" encoding="UTF-8"?>
<!-- smartling.translate_paths = html/body/div/ -->
<!-- smartling.string_format_paths = html : html/body/div/div, @default : html/body/div/span -->

<html>
    <body>
    {% for item_key, item in items %}
        <div>
            {% for field_key, field in item %}
                {% if field['#format'] is defined %}
                    <div class="atom" id="{{ field_key }}">{{ field['#text'] }}</div>
                {% else %}
                    <span class="atom" id="{{ field_key }}">{{ field['#text'] }}</span>
                {% endif %}
            {% endfor %}
        </div>
    {% endfor %}
    </body>
</html>

File

templates/tmgmt-smartling-xml-template.html.twig
View source
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- smartling.translate_paths = html/body/div/ -->
  3. <!-- smartling.string_format_paths = html : html/body/div/div, @default : html/body/div/span -->
  4. <html>
  5. <body>
  6. {% for item_key, item in items %}
  7. <div>
  8. {% for field_key, field in item %}
  9. {% if field['#format'] is defined %}
  10. <div class="atom" id="{{ field_key }}">{{ field['#text'] }}</div>
  11. {% else %}
  12. <span class="atom" id="{{ field_key }}">{{ field['#text'] }}</span>
  13. {% endif %}
  14. {% endfor %}
  15. </div>
  16. {% endfor %}
  17. </body>
  18. </html>