tmgmt-smartling-xml-template.html.twig in TMGMT Translator Smartling 8
<?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>
1 theme call to tmgmt-smartling-xml-template.html.twig
- Xml::export in src/Plugin/tmgmt_file/Format/Xml.php
- .
File
templates/tmgmt-smartling-xml-template.html.twig
View source
- <?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>